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

Re: filecache/swapcache questions [RFC] [RFT] [PATCH] kanoj-mm12-2.3.8



Hi,

On Tue, 29 Jun 1999 14:32:41 +0200 (CEST), Andrea Arcangeli
<andrea@suse.de> said:

> On Tue, 29 Jun 1999, Stephen C. Tweedie wrote:
>> Absolutely.  The important thing is to do enough swapping to make sure
>> that unused data is not kicking around in memory.  Maybe you don't want

> I know that sometime is the right thing do to.

> But think also a difference scenario. You have a machine that only reads
> all the time from a disk 10giga of data in loop. 

Absolutely.  The find|grep workload, for example.  The point is that
this memory load is different from the load imposed by a kernel build.
If you are using file IO more, you need to be turning the cache over
more.  

The old buffer cache had this property, and it worked very well indeed.
The buffer cache would try to recycle itself in preference to growing,
so for file-intensive workloads we would naturally evict cached data in
preference to swapping, but for memory-intensive compute workloads we
would be more likely to swap unused VM pages out.

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