Re: [RFC][PATCH] drivers: base: dynamic memory block creation
From: Yinghai Lu
Date: Wed Aug 14 2013 - 19:20:13 EST
On Wed, Aug 14, 2013 at 2:52 PM, Seth Jennings
<sjenning@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/