sched/numa: Rework best node setting in task_numa_migrate()
authorRik van Riel <riel@redhat.com>
Mon, 23 Jun 2014 15:41:34 +0000 (11:41 -0400)
committerIngo Molnar <mingo@kernel.org>
Sat, 5 Jul 2014 09:17:39 +0000 (11:17 +0200)
commitdb015daedb56251b73f956f70b3b8813f80d8ee1
tree9883ace8d1f2edf4ae39a5f3348eea5e7c96f336
parent0132c3e1777ceabc24c7d209b7cbe78c28c03c09
sched/numa: Rework best node setting in task_numa_migrate()

Fix up the best node setting in task_numa_migrate() to deal with a task
in a pseudo-interleaved NUMA group, which is already running in the
best location.

Set the task's preferred nid to the current nid, so task migration is
not retried at a high rate.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: mgorman@suse.de
Cc: chegu_vinod@hp.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1403538095-31256-7-git-send-email-riel@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c