]> git.karo-electronics.de Git - linux-beck.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)
commite63da03639cc9e6e83b62e7ef8ffdbb92421416a
treecc25bdae654b1f3e3318e9564763e1f69799c832
parent4027d080854d1be96ef134a1c3024d5276114db6
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