diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2012-10-04 01:50:47 +0200 |
---|---|---|
committer | Mel Gorman <mgorman@suse.de> | 2012-12-11 14:42:36 +0000 |
commit | be3a728427a605990a7a0b6dbf9e29b68e266146 (patch) | |
tree | 878fb07cca478c4444d85fc26fc16c9f574034a3 /include/asm-generic/statfs.h | |
parent | dbe4d2035a5b273c910f8f7eb0b7189ee76f63ad (diff) |
mm: numa: pte_numa() and pmd_numa()
Implement pte_numa and pmd_numa.
We must atomically set the numa bit and clear the present bit to
define a pte_numa or pmd_numa.
Once a pte or pmd has been set as pte_numa or pmd_numa, the next time
a thread touches a virtual address in the corresponding virtual range,
a NUMA hinting page fault will trigger. The NUMA hinting page fault
will clear the NUMA bit and set the present bit again to resolve the
page fault.
The expectation is that a NUMA hinting page fault is used as part
of a placement policy that decides if a page should remain on the
current node or migrated to a different node.
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Diffstat (limited to 'include/asm-generic/statfs.h')
0 files changed, 0 insertions, 0 deletions