Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932806Ab2HVPCH (ORCPT ); Wed, 22 Aug 2012 11:02:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19561 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757416Ab2HVPBb (ORCPT ); Wed, 22 Aug 2012 11:01:31 -0400 From: Andrea Arcangeli 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 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2092 Lines: 70 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/