login
Header Space

 
 

Re: [00/17] [RFC] Virtual Compound Page Support

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: Christoph Hellwig <hch@...>, Mel Gorman <mel@...>, <linux-fsdevel@...>, <linux-kernel@...>
Date: Wednesday, September 19, 2007 - 4:24 am

Christoph Lameter <clameter@sgi.com> writes:

It seems like a good idea simply because the same functionality
is already open coded in a couple of places and unifying
that would be a good thing. But ...
 

Is there a reason this needs to be a GFP flag versus a wrapper
around alloc_page/free_page ?  page_alloc.c is already too complicated
and it's better to keep new features separated. The only drawback
would be that free_pages would need a different call, but that
doesn't seem like a big problem.

Especially integrating it into slab would seem wrong to me.
slab is already too complicated and for users who need that
large areas page granuality rounding to pages is probably fine.

Also such a wrapper could do the old alloc_page_exact() trick:
instead of always rounding up to next order return the left over
pages to the VM. In some cases this can save significant memory.

I'm also a little dubious about your attempts to do vmalloc in
interrupt context. Is that really needed? GFP_ATOMIC allocations of
large areas seem to be extremly unreliable to me and not design. Even
if it works sometimes free probably wouldn't work there due to the
flushes, which is very nasty. It would be better to drop that.

-Andi



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[00/17] [RFC] Virtual Compound Page Support, Christoph Lameter, (Tue Sep 18, 11:36 pm)
Re: [00/17] [RFC] Virtual Compound Page Support, Andi Kleen, (Wed Sep 19, 4:24 am)
Re: [00/17] [RFC] Virtual Compound Page Support, Christoph Lameter, (Wed Sep 19, 1:36 pm)
Re: [00/17] [RFC] Virtual Compound Page Support, Anton Altaparmakov, (Wed Sep 19, 3:34 am)
Re: [00/17] [RFC] Virtual Compound Page Support, Eric Dumazet, (Wed Sep 19, 4:34 am)
Re: [00/17] [RFC] Virtual Compound Page Support, Christoph Lameter, (Wed Sep 19, 1:33 pm)
speck-geostationary