lkml.org 
[lkml]   [2007]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateSat, 21 Apr 2007 14:06:55 -0400
FromRik van Riel <>
SubjectRe: [PATCH] lazy freeing of memory through MADV_FREE
Hugh Dickins wrote:
> On Fri, 20 Apr 2007, Rik van Riel wrote:
>> Andrew Morton wrote:
>>
>>> I do go on about that. But we're adding page flags at about one per
>>> year, and when we run out we're screwed - we'll need to grow the
>>> pageframe.
>> If you want, I can take a look at folding this into the
>> ->mapping pointer. I can guarantee you it won't be
>> pretty, though :)
>
> Please don't. If we're going to stuff another pageflag into there,
> let it be PageSwapCache the natural partner of PageAnon, rather than
> whatever our latest pageflag happens to be.

I looked at doing what Andrew wanted, and it did indeed not
look like the right thing to do. The locking on page->mapping
is the kind of locking we want to avoid during zap_page_range
and in the pageout code.

I like your suggestion better.

--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is. Each group
calls the other unpatriotic.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-04-21 20:11    [from the cache]
©2003-2010