Re: NUMA aware slab allocator V2

Christoph Lameter
2005-05-13T11:38:16Z

On Fri, 13 May 2005, Andrew Morton wrote:

> > The definition for the number of NUMA nodes is dependent on
> > CONFIG_FLATMEM instead of CONFIG_NUMA in mm.
> > CONFIG_FLATMEM is not set on ppc64 because CONFIG_DISCONTIG is set! And
> > consequently nodes exist in a non NUMA config.
>
> I was testing 2.6.12-rc4 base.

There we still have the notion of nodes depending on CONFIG_DISCONTIG and
not on CONFIG_NUMA. The node stuff needs to be

#ifdef CONFIG_FLATMEM

or

#ifdef CONFIG_DISCONTIG

??