From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972Ab2GBE7L (ORCPT ); Mon, 2 Jul 2012 00:59:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63595 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752034Ab2GBE7K (ORCPT ); Mon, 2 Jul 2012 00:59:10 -0400 Message-ID: <4FF12A69.3010705@redhat.com> Date: Mon, 02 Jul 2012 00:58:17 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Andrea Arcangeli CC: linux-kernel@vger.kernel.org, linux-mm@kvack.org, 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 , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt Subject: Re: [PATCH 34/40] autonuma: add CONFIG_AUTONUMA and CONFIG_AUTONUMA_DEFAULT_ENABLED References: <1340888180-15355-1-git-send-email-aarcange@redhat.com> <1340888180-15355-35-git-send-email-aarcange@redhat.com> In-Reply-To: <1340888180-15355-35-git-send-email-aarcange@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/28/2012 08:56 AM, Andrea Arcangeli wrote: > 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 The Makefile changes could be merged into this patch > 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 How about having the x86 architecture export a HAVE_AUTONUMA flag, and testing for that? > + help > + Automatic NUMA CPU scheduling and memory migration. This could be expanded to list advantages and disadvantages of having autonuma enabled. -- All rights reversed