Re: [PATCH] Allocate memory cgroup structures in local nodes

From: David Rientjes
Date: Wed May 04 2011 - 16:10:50 EST


On Wed, 4 May 2011, Andi Kleen wrote:

> > The vmalloc_node() calls ensure that the nid is actually set in
> > N_HIGH_MEMORY and fails otherwise (we don't fallback to using vmalloc()),
> > so it looks like the failures for alloc_pages_exact_node() and
> > vmalloc_node() would be different? Why do we want to fallback for one and
> > not the other?
>
> The right order would be to try everything (alloc_pages + vmalloc)
> to get it node local, before trying everything else. Right now that's
> not how it's done.
>

Completely agreed, I think that's how it should be patched instead of only
touching the alloc_pages() allocation; we care much more about local node
than whether we're using vmalloc.
--
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/