aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2012-10-03 19:50:47 -0400
committerMel Gorman <mgorman@suse.de>2012-12-11 09:42:36 -0500
commitbe3a728427a605990a7a0b6dbf9e29b68e266146 (patch)
tree878fb07cca478c4444d85fc26fc16c9f574034a3 /init
parentdbe4d2035a5b273c910f8f7eb0b7189ee76f63ad (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 'init')
-rw-r--r--init/Kconfig37
1 files changed, 37 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 6fdd6e339326..9f00f004796a 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -696,6 +696,43 @@ config LOG_BUF_SHIFT
696config HAVE_UNSTABLE_SCHED_CLOCK 696config HAVE_UNSTABLE_SCHED_CLOCK
697 bool 697 bool
698 698
699#
700# For architectures that want to enable the support for NUMA-affine scheduler
701# balancing logic:
702#
703config ARCH_SUPPORTS_NUMA_BALANCING
704 bool
705
706# For architectures that (ab)use NUMA to represent different memory regions
707# all cpu-local but of different latencies, such as SuperH.
708#
709config ARCH_WANT_NUMA_VARIABLE_LOCALITY
710 bool
711
712#
713# For architectures that are willing to define _PAGE_NUMA as _PAGE_PROTNONE
714config ARCH_WANTS_PROT_NUMA_PROT_NONE
715 bool
716
717config ARCH_USES_NUMA_PROT_NONE
718 bool
719 default y
720 depends on ARCH_WANTS_PROT_NUMA_PROT_NONE
721 depends on NUMA_BALANCING
722
723config NUMA_BALANCING
724 bool "Memory placement aware NUMA scheduler"
725 default y
726 depends on ARCH_SUPPORTS_NUMA_BALANCING
727 depends on !ARCH_WANT_NUMA_VARIABLE_LOCALITY
728 depends on SMP && NUMA && MIGRATION
729 help
730 This option adds support for automatic NUMA aware memory/task placement.
731 The mechanism is quite primitive and is based on migrating memory when
732 it is references to the node the task is running on.
733
734 This system will be inactive on UMA systems.
735
699menuconfig CGROUPS 736menuconfig CGROUPS
700 boolean "Control Group support" 737 boolean "Control Group support"
701 depends on EVENTFD 738 depends on EVENTFD