Re: [RFC 0/2] Delay initializing of large sections of memory
From: H. Peter Anvin
Date: Tue Jun 25 2013 - 14:18:15 EST
On 06/25/2013 10:35 AM, Mike Travis wrote:
>
> The two params that I couldn't figure out how to provide except via kernel
> param option was the memory block size (128M or 2G) and the physical
> address space per node. The other 3 params can be automatically
> setup by a script when the total system size is known. As soon as we
> verify on the 32TB system and surmise what will be needed for 64TB,
> then those 3 params can probably disappear.
>
"Setup by script" is a no-go. You *have* the total system size already,
it is in the e820 tables (anything which isn't in e820 is hotplug, that
automagically gets deferred.)
However, please consider Ingo's counterproposal of doing this via the
buddy allocator, i.e. hugepages being broken on demand. That is a
*very* powerful model, although would require more infrastructure.
-hpa
--
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/