[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: PAGE_CACHE_SIZE?



Hi,

On Fri, 28 May 1999 23:33:33 +0200 (CEST), Rik van Riel
<riel@nl.linux.org> said:

>> This has a lot of really nice properties.  If we record sequential
>> accesses when setting up data in the first place, then we can
>> automatically optimise for that when doing the pageout again.  For swap,
>> it reduces fragmentation: we can allocate in multi-page chunks and keep
>> that allocation persistent.

> Since we keep pages in the page cache after swapping them out,
> we can implement this optimization very cheaply.

It should be cheap, yes, but it will require a fundamental change in the
VM: currently, all swap cache is readonly.  No exceptions.  To keep the
allocation persistent, even over write()s to otherwise unshared pages
(and we need to do to sustain good performance), we need to allow dirty
pages in the swap cache.  The current PG_Dirty work impacts on this.

--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/