[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More info: 2.1.108 page cache performance on low memory
Hi,
On 23 Jul 1998 16:07:23 +0200, Zlatko Calusic <Zlatko.Calusic@CARNet.hr>
said:
> Strangely enough, I think I never explained why do *I* think
> integrating buffer cache functionality into page cache would (in my
> thought) be a good thing. Since both caches are very different, I'm
> not sure memory management can be fair enough in some cases.
> Take a simple example: two applications, I/O bound, where one is
> accessing raw partition (e.g. fsck) and other uses filesystem (web,
> ftp...). Question is, how do I know that MM is fair. Maybe page cache
> grows too large on behalf of buffer cache, so fsck runs much slower
> than it could. Or if buffer cache grows faster (which is not the case,
> IMO) then web would be fast, but fsck (or some database accessing raw
> partition) could take a penalty.
There's a single loop in shrink_mmap() which treats both buffer-cache
pages and page-cache pages identically. It just propogates the buffer
referenced bits into the page's PG_referenced bit before doing any
ageing on the page. It should be fair enough. There are other issues
concerning things like locked and dirty buffers which complicate the
issue, but they are not sufficient reason to throw away the buffer
cache!
--Stephen
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org