mm: mempolicy: Use _PAGE_NUMA to migrate pages
authorMel Gorman <mgorman@suse.de>
Fri, 2 Nov 2012 11:33:45 +0000 (11:33 +0000)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:42:42 +0000 (14:42 +0000)
commit4daae3b4b9e49b7e0935499a352f1c59d90287d2
tree2ac600b955c89e3b1b2070110a9b7293a4511b19
parent149c33e1c98f83050870514f380902dc6d617bd5
mm: mempolicy: Use _PAGE_NUMA to migrate pages

Note: Based on "mm/mpol: Use special PROT_NONE to migrate pages" but
sufficiently different that the signed-off-bys were dropped

Combine our previous _PAGE_NUMA, mpol_misplaced and migrate_misplaced_page()
pieces into an effective migrate on fault scheme.

Note that (on x86) we rely on PROT_NONE pages being !present and avoid
the TLB flush from try_to_unmap(TTU_MIGRATION). This greatly improves the
page-migration performance.

Based-on-work-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mel Gorman <mgorman@suse.de>
include/linux/huge_mm.h
mm/huge_memory.c
mm/memory.c