Re: [PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v3)

2014-05-29 Thread Marcelo Tosatti
On Wed, May 28, 2014 at 06:45:04PM -0500, Christoph Lameter wrote: Much cleaner, sent v4 with your suggestions. > Why call __alloc_pages_nodemask at all if you want to skip the node > handling? Punt to alloc_pages() - __alloc_pages_nodemask ignored GFP_DMA32 on older kernels, so the

Re: [PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v3)

2014-05-29 Thread Marcelo Tosatti
On Wed, May 28, 2014 at 06:45:04PM -0500, Christoph Lameter wrote: snip Much cleaner, sent v4 with your suggestions. Why call __alloc_pages_nodemask at all if you want to skip the node handling? Punt to alloc_pages() - __alloc_pages_nodemask ignored GFP_DMA32 on older kernels, so the

Re: [PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v3)

2014-05-28 Thread Christoph Lameter
On Wed, 28 May 2014, Marcelo Tosatti wrote: > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 5dba293..dfea3dc 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -2698,6 +2698,7 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int > order, > unsigned int

[PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v3)

2014-05-28 Thread Marcelo Tosatti
Zone specific allocations, such as GFP_DMA32, should not be restricted to cpusets allowed node list: the zones which such allocations demand might be contained in particular nodes outside the cpuset node list. Necessary for the following usecase: - driver which requires zone specific memory

[PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v3)

2014-05-28 Thread Marcelo Tosatti
Zone specific allocations, such as GFP_DMA32, should not be restricted to cpusets allowed node list: the zones which such allocations demand might be contained in particular nodes outside the cpuset node list. Necessary for the following usecase: - driver which requires zone specific memory

Re: [PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v3)

2014-05-28 Thread Christoph Lameter
On Wed, 28 May 2014, Marcelo Tosatti wrote: diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5dba293..dfea3dc 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2698,6 +2698,7 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, unsigned int cpuset_mems_cookie;