|
From: Bart V. A. <bva...@ac...> - 2011-11-11 14:19:26
|
On Thu, Nov 10, 2011 at 10:41 PM, Philippe Waroquiers <phi...@sk...> wrote: > If I understand well, the idea would be that the CFS should handle specially > a process made of multiple threads, all burning CPUs, but only one thread > at a time burning CPU. The CFS would have to avoid switching them from > cpu, as this interacts badly with cpu frequency scaling. There is already a "cpu.shares" variable that allows to configure the relative scheduling priority of a group of processes. It's probably not that hard to add a cgroup variable that tells the scheduler to schedule all threads of a cgroup on the same CPU. $ uname -r 3.1.0-rc10+ $ mount -t cgroup none /sys/fs/cgroup $ mkdir /sys/fs/cgroup/valgrind $ cat /sys/fs/cgroup/valgrind/cpu.shares 1024 Bart. |