Re: [PATCH] slob: poor man's NUMA support.

Christoph Lameter
2007-06-26T19:11:15Z

On Tue, 26 Jun 2007, Nish Aravamudan wrote:

> > No. alloc_pages follows memory policy. alloc_pages_node does not. One of
> > the reasons that I want a new memory policy layer are these kinds of
> > strange uses.
>
> What would break by changing, in alloc_pages_node()
>
> if (nid < 0)
> nid = numa_node_id();
>
> to
>
> if (nid < 0)
> return alloc_pages_current(gfp_mask, order);
>
> beyond needing to make alloc_pages_current() defined if !NUMA too.

It would make alloc_pages_node obey memory policies instead of only
following cpuset constraints. An a memory policy may redirect the
allocation from the local node ;-).