Re: More thoughts on getting rid of ZONE_DMA

Andi Kleen
2006-09-23T00:39:57Z

On Saturday 23 September 2006 02:23, Christoph Lameter wrote:
> On Sat, 23 Sep 2006, Andi Kleen wrote:
>
> > The problem is that if someone has a workload with lots of pinned pages
> > (e.g. lots of mlock) then the first 16MB might fill up completely and there
> > is no chance at all to free it because it's pinned
>
> Ok. That may be a problem for i386. After the removal of the GFP_DMA
> and ZONE_DMA stuff it is then be possible to redefine ZONE_DMA (or
> whatever we may call it ZONE_RESERVE?) to an arbitrary size a the
> beginning of memory. Then alloc_pages_range() can dynamically decide to
> tap that pool if necessary.

That's should work yes. Just we need the pool.

-Andi