]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: numa: Create basic numa page hinting infrastructure
authorMel Gorman <mgorman@suse.de>
Thu, 25 Oct 2012 12:16:31 +0000 (14:16 +0200)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:42:39 +0000 (14:42 +0000)
commitd10e63f29488b0f312a443f9507ea9b6fd3c9090
treeb39e3caa5d25e9e5ebad84c606a724e25c6b8e91
parent1ba6e0b50b479cbadb8f05ebde3020da9ac87201
mm: numa: Create basic numa page hinting infrastructure

Note: This patch started as "mm/mpol: Create special PROT_NONE
infrastructure" and preserves the basic idea but steals *very*
heavily from "autonuma: numa hinting page faults entry points" for
the actual fault handlers without the migration parts. The end
result is barely recognisable as either patch so all Signed-off
and Reviewed-bys are dropped. If Peter, Ingo and Andrea are ok with
this version, I will re-add the signed-offs-by to reflect the history.

In order to facilitate a lazy -- fault driven -- migration of pages, create
a special transient PAGE_NUMA variant, we can then use the 'spurious'
protection faults to drive our migrations from.

The meaning of PAGE_NUMA depends on the architecture but on x86 it is
effectively PROT_NONE. Actual PROT_NONE mappings will not generate these
NUMA faults for the reason that the page fault code checks the permission on
the VMA (and will throw a segmentation fault on actual PROT_NONE mappings),
before it ever calls handle_mm_fault.

[dhillf@gmail.com: Fix typo]
Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
include/linux/huge_mm.h
mm/huge_memory.c
mm/memory.c