]> git.baikalelectronics.ru Git - kernel.git/commit
mm: numa: pte_numa() and pmd_numa()
authorAndrea Arcangeli <aarcange@redhat.com>
Wed, 3 Oct 2012 23:50:47 +0000 (01:50 +0200)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:42:36 +0000 (14:42 +0000)
commiteb76a12693111ac352b40cce3c0a143b88e055f7
tree878fb07cca478c4444d85fc26fc16c9f574034a3
parent3a36a9e3a97c3e66261333a35e257e5a29ff691c
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>
arch/x86/include/asm/pgtable.h
include/asm-generic/pgtable.h
init/Kconfig