NUMA memory block size
olof at austin.ibm.com
Sun Apr 4 03:48:04 EST 2004
On Sat, 3 Apr 2004, Dave Hansen wrote:
> On Fri, 2004-04-02 at 22:50, Olof Johansson wrote:
> How about using the bootmem_alloc() functions instead of the LMB ones?
> They're a bit more standard, and everyone else will realize what you're
> doing. That isn't too early, is it?
I think it is. The array is built first thing in do_init_bootmem, so I
wouldn't expect bootmem stuff to be available yet.
> > I'll take it as a later todo to look at a better data structure for this,
> > to avoid wasting too much space (but keep lookups fast).
> There's not a whole lot else you can do. In theory, each 16MB LMB could
> be going to any node. Any tree-based approach is just going to make the
> worst-case more cache misses than the 1 that it is now. I like wasting
> the space and keeping it dirt-simple.
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev