]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, numa: Retry failed page migrations
authorRik van Riel <riel@redhat.com>
Thu, 26 Jul 2012 17:54:25 +0000 (13:54 -0400)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Sep 2012 17:18:06 +0000 (19:18 +0200)
commit7eaffe9d688041a66acac719aa7eaec23fb1f437
treed316e51c6bb59aed60c005ee22b1da55b16d03a1
parent835e3cf29f4eeba6c5c8bcc188b2138029157938
mm, numa: Retry failed page migrations

Keep track of how many NUMA page migrations succeeded and
failed (in a way that wants retrying later) per process.

If a lot of the page migrations of a process fail, unmap the
process pages some point later, so the migration can be tried
again at the next fault.

Signed-off-by: Rik van Riel <riel@redhat.com>
[ Fwd ported several times as the code changed, added some wrappers
  to aid compilability for certain CONFIG variants.
  Also need to note that the lack of atomics means we can go all funny
  but since its decaying stats it should recover eventually. If it
  goes funny too often we could look at improving this. ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20120726135425.48820aae@cuia.bos.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/mm_types.h
kernel/sched/core.c
kernel/sched/fair.c
mm/memory.c