]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Allow task switch if load imbalance improves
authorRik van Riel <riel@redhat.com>
Wed, 14 May 2014 17:22:21 +0000 (13:22 -0400)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 May 2014 09:16:38 +0000 (11:16 +0200)
commitc4b33d9199729c2e6b7d8d4d0ee44f38e0db8b7a
treecc25bdae654b1f3e3318e9564763e1f69799c832
parent71bd56a83d97a940371ef72150b61d654cc76380
sched/numa: Allow task switch if load imbalance improves

Currently the NUMA balancing code only allows moving tasks between NUMA
nodes when the load on both nodes is in balance. This breaks down when
the load was imbalanced to begin with.

Allow tasks to be moved between NUMA nodes if the imbalance is small,
or if the new imbalance is be smaller than the original one.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: mgorman@suse.de
Cc: chegu_vinod@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/20140514132221.274b3463@annuminas.surriel.com
kernel/sched/fair.c