]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Let minimally loaded cpu balance the group
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 20 Apr 2012 14:57:22 +0000 (16:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 13:00:51 +0000 (15:00 +0200)
commit295f31e0ebb55171660933f4c2b0114f5349c563
treedba3b3dc85c1290310968ce78d36ccb9fd670366
parentc2a4c0c24c2fe6defb70d0201eec7289628e9bd0
sched/fair: Let minimally loaded cpu balance the group

Currently we let the leftmost (or first idle) cpu ascend the
sched_domain tree and perform load-balancing. The result is that the
busiest cpu in the group might be performing this function and pull
more load to itself. The next load balance pass will then try to
equalize this again.

Change this to pick the least loaded cpu to perform higher domain
balancing.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-v8zlrmgmkne3bkcy9dej1fvm@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c