Re: Q: PAGE_CACHE_SIZE?

Stephen C. Tweedie (sct@redhat.com)
Sat, 29 May 1999 02:59:00 +0100 (BST)


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/