From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx198.postini.com [74.125.245.198]) by kanga.kvack.org (Postfix) with SMTP id 1417E6B00C2 for ; Wed, 3 Oct 2012 19:51:55 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 28/33] autonuma: add CONFIG_AUTONUMA and CONFIG_AUTONUMA_DEFAULT_ENABLED Date: Thu, 4 Oct 2012 01:51:10 +0200 Message-Id: <1349308275-2174-29-git-send-email-aarcange@redhat.com> In-Reply-To: <1349308275-2174-1-git-send-email-aarcange@redhat.com> References: <1349308275-2174-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: Linus Torvalds , Andrew Morton , Peter Zijlstra , Ingo Molnar , Mel Gorman , Hugh Dickins , Rik van Riel , Johannes Weiner , Hillf Danton , Andrew Jones , Dan Smith , Thomas Gleixner , Paul Turner , Christoph Lameter , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Srivatsa Vaddagiri , 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 50a1d1f..06575bc 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