Re: [PATCH] cpuset and sched domains: sched_load_balance flag




* Paul Jackson <pj@xxxxxxx> wrote:

Add a new per-cpuset flag called 'sched_load_balance'.

When enabled in a cpuset (the default value) it tells the kernel
scheduler that the scheduler should provide the normal load balancing
on the CPUs in that cpuset, sometimes moving tasks from one CPU to a
second CPU if the second CPU is less loaded and if that task is
allowed to run there.

When disabled (write "0" to the file) then it tells the kernel
scheduler that load balancing is not required for the CPUs in that
cpuset.

i like this, this feature would be quite useful for -rt and CPU
shielding.

( a cpuset is a mandatory container for set_cpus_allowed(), so there is
a material and app-visible difference between a 4-CPU cpuset that has
balancing disabled and 4x 1-CPU cpusets. )

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [PATCH 1/2] Customize sched domain via cpuset (v2)
    ... This patch introduces new feature of cpuset - sched domain customization. ... enable us to change the searching range of scheduler, ... +When a task is woken up, scheduler try to move the task on idle CPU. ...
    (Linux-Kernel)
  • Re: [PATCH] cpuset and sched domains: sched_load_balance flag
    ... and cpusets should ask the scheduler to do the best ... But you could do that just by having the current cpuset scheme able ... In this case the admin would simply not partition the system (they ... load balancing over that set, which you could equally achieve by adding ...
    (Linux-Kernel)
  • Re: [PATCH] Fix longstanding load balancing bug in the scheduler.
    ... The scheduler currently only does one search for busiest cpu. ... its corner and retrying the load balancing by considering other ... This patch was originally developed by John Hawkes and discussed ...
    (Linux-Kernel)
  • Re: [PATCH] cpuset and sched domains: sched_load_balance flag
    ... There's no idea here of better or worse load balancing, ... root cpuset. ... You would do this with the current, single rooted cpuset (and now ... The batch scheduler can state where it is depending ...
    (Linux-Kernel)
  • Re: 2.6.X, NPTL, SCHED_FIFO and JACK
    ... William Lee Irwin III wrote: ... apart from a reduction in cpu time spent in the scheduler itself ... >> sched.c to play cpu tetris for gang scheduling or Kalman filtering ... > single CPU and load balancing is about distributing tasks/load among the ...
    (Linux-Kernel)