sched/numa: Retry placement more frequently when misplaced
authorRik van Riel <riel@redhat.com>
Fri, 11 Apr 2014 17:00:28 +0000 (13:00 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 7 May 2014 11:33:46 +0000 (13:33 +0200)
commit5085e2a328849bdee6650b32d52c87c3788ab01c
tree315d11c9247c532c7e9800ca23380218cee64f87
parent792568ec6a31ca560ca4d528782cbc6cd2cea8b0
sched/numa: Retry placement more frequently when misplaced

When tasks have not converged on their preferred nodes yet, we want
to retry fairly often, to make sure we do not migrate a task's memory
to an undesirable location, only to have to move it again later.

This patch reduces the interval at which migration is retried,
when the task's numa_scan_period is small.

Signed-off-by: Rik van Riel <riel@redhat.com>
Tested-by: Vinod Chegu <chegu_vinod@hp.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1397235629-16328-3-git-send-email-riel@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c