Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933332Ab3HNXUJ (ORCPT ); Wed, 14 Aug 2013 19:20:09 -0400 Received: from mail-ob0-f179.google.com ([209.85.214.179]:46849 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933153Ab3HNXUH (ORCPT ); Wed, 14 Aug 2013 19:20:07 -0400 MIME-Version: 1.0 In-Reply-To: <20130814215253.GC17423@variantweb.net> References: <1376508705-3188-1-git-send-email-sjenning@linux.vnet.ibm.com> <20130814194348.GB10469@kroah.com> <520BE30D.3070401@sr71.net> <20130814203546.GA6200@kroah.com> <20130814215253.GC17423@variantweb.net> Date: Wed, 14 Aug 2013 16:20:06 -0700 X-Google-Sender-Auth: lrLM662TmDFXmXX9FxvlCgPm1kM Message-ID: Subject: Re: [RFC][PATCH] drivers: base: dynamic memory block creation From: Yinghai Lu To: Seth Jennings Cc: Greg Kroah-Hartman , "H. Peter Anvin" , Dave Hansen , Nathan Fontenot , Cody P Schafer , Andrew Morton , Lai Jiangshan , "Rafael J. Wysocki" , Linux Kernel Mailing List , Linux MM Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1013 Lines: 29 On Wed, Aug 14, 2013 at 2:52 PM, Seth Jennings wrote: > On Wed, Aug 14, 2013 at 02:37:26PM -0700, Yinghai Lu wrote: > If I am understanding you correctly, you are suggesting we make the block size > a boot time tunable. It can't be a runtime tunable since the memory blocks are > currently created a boot time. yes. If could make it to be tunable at run-time, could be much better. > > On ppc64, we can't just just choose a memory block size since it must align > with the underlying LMB (logical memory block) size, set in the hardware ahead > of time. assume for x86_64, it now support 46bits physical address. so if we change to 2G, then big system will only need create (1<<15) aka 32k entries in /sys at most. Thanks Yinghai -- 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/