From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx112.postini.com [74.125.245.112]) by kanga.kvack.org (Postfix) with SMTP id E77766B0032 for ; Wed, 14 Aug 2013 19:20:07 -0400 (EDT) Received: by mail-oa0-f44.google.com with SMTP id l20so82729oag.3 for ; Wed, 14 Aug 2013 16:20:07 -0700 (PDT) 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 Message-ID: Subject: Re: [RFC][PATCH] drivers: base: dynamic memory block creation From: Yinghai Lu Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: 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 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, 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