Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752111Ab2F1NCl (ORCPT ); Thu, 28 Jun 2012 09:02:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25817 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752537Ab2F1NCi (ORCPT ); Thu, 28 Jun 2012 09:02:38 -0400 From: Andrea Arcangeli To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Hillf Danton , Dan Smith , Peter Zijlstra , 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 34/40] autonuma: add CONFIG_AUTONUMA and CONFIG_AUTONUMA_DEFAULT_ENABLED Date: Thu, 28 Jun 2012 14:56:14 +0200 Message-Id: <1340888180-15355-35-git-send-email-aarcange@redhat.com> In-Reply-To: <1340888180-15355-1-git-send-email-aarcange@redhat.com> References: <1340888180-15355-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: 1485 Lines: 45 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. CONFIG_AUTONUMA currently depends on X86, because no other arch implements the pte/pmd_numa yet and selecting =y would result in a failed build, but this shall be relaxed in the future. Porting AutoNUMA to other archs should be pretty simple. Signed-off-by: Andrea Arcangeli --- mm/Kconfig | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index 82fed4e..330dd51 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -207,6 +207,19 @@ config MIGRATION pages as migration can relocate pages to satisfy a huge page allocation instead of reclaiming. +config AUTONUMA + bool "Auto NUMA" + select MIGRATION + depends on NUMA && X86 + help + Automatic NUMA CPU scheduling and memory migration. + +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/