From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx137.postini.com [74.125.245.137]) by kanga.kvack.org (Postfix) with SMTP id 265A96B009E for ; Wed, 22 Aug 2012 11:00:19 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 27/36] autonuma: add CONFIG_AUTONUMA and CONFIG_AUTONUMA_DEFAULT_ENABLED Date: Wed, 22 Aug 2012 16:59:11 +0200 Message-Id: <1345647560-30387-28-git-send-email-aarcange@redhat.com> In-Reply-To: <1345647560-30387-1-git-send-email-aarcange@redhat.com> References: <1345647560-30387-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Hillf Danton , Dan Smith , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Rik van Riel , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt Add the config options to allow building the kernel with AutoNUMA. If CONFIG_AUTONUMA_DEFAULT_ENABLED is "=y", then /sys/kernel/mm/autonuma/enabled will be equal to 1, and AutoNUMA will be enabled automatically at boot. Signed-off-by: Andrea Arcangeli --- arch/Kconfig | 3 +++ arch/x86/Kconfig | 1 + mm/Kconfig | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 72f2fa1..ee3ed89 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -281,4 +281,7 @@ config SECCOMP_FILTER See Documentation/prctl/seccomp_filter.txt for details. +config HAVE_ARCH_AUTONUMA + bool + source "kernel/gcov/Kconfig" diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 8ec3a1a..4cbdfce 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -97,6 +97,7 @@ config X86 select KTIME_SCALAR if X86_32 select GENERIC_STRNCPY_FROM_USER select GENERIC_STRNLEN_USER + select HAVE_ARCH_AUTONUMA config INSTRUCTION_DECODER def_bool (KPROBES || PERF_EVENTS || UPROBES) diff --git a/mm/Kconfig b/mm/Kconfig index d5c8019..f00a0cd 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -211,6 +211,23 @@ config MIGRATION pages as migration can relocate pages to satisfy a huge page allocation instead of reclaiming. +config AUTONUMA + bool "AutoNUMA" + select MIGRATION + depends on NUMA && HAVE_ARCH_AUTONUMA + help + Automatic NUMA CPU scheduling and memory migration. + + Avoids the administrator to manually setup hard NUMA + bindings in order to achieve optimal performance on NUMA + hardware. + +config AUTONUMA_DEFAULT_ENABLED + bool "Auto NUMA default enabled" + depends on AUTONUMA + help + Automatic NUMA CPU scheduling and memory migration enabled at boot. + config PHYS_ADDR_T_64BIT def_bool 64BIT || ARCH_PHYS_ADDR_T_64BIT -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org