]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/mpol: Use special PROT_NONE to migrate pages
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 17 Jul 2012 20:54:51 +0000 (22:54 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 28 Oct 2012 16:31:07 +0000 (17:31 +0100)
commit02743c9c03f1cc36f87a967c04fa71baa9720bee
treeb7a406d5e36df3a51dce70d01f9e390fa91fc40b
parentb33467764d8a734f836482c552880ae53d2c967f
mm/mpol: Use special PROT_NONE to migrate pages

Combine our previous PROT_NONE, 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.

Suggested-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Paul Turner <pjt@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Link: http://lkml.kernel.org/n/tip-e98gyl8kr9jzooh2s4piuils@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
mm/huge_memory.c
mm/memory.c