]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched, numa, mm/mpol: Make mempolicy home-node aware
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 3 Mar 2012 16:05:54 +0000 (17:05 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 28 Oct 2012 16:31:09 +0000 (17:31 +0100)
commit70bc6583401e9a8ad946e9a80df5cb2627c879b5
treec8671a1f9b3d3cc19bfb6002098909b9309c39aa
parentdfb3cc6a0b22497fdcc94ad18799560edb818bd5
sched, numa, mm/mpol: Make mempolicy home-node aware

Add another layer of fallback policy to make the home node concept
useful from a memory allocation PoV.

This changes the mpol order to:

 - vma->vm_ops->get_policy [if applicable]
 - vma->vm_policy [if applicable]
 - task->mempolicy
 - tsk_home_node() preferred [NEW]
 - default_policy

Note that the tsk_home_node() policy has Migrate-on-Fault enabled to
facilitate efficient on-demand memory migration.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Turner <pjt@google.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-ybn5oygsqXZa6jtwpwjywmdu@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
mm/mempolicy.c