RE: About the need of a swap area

From: Rik van Riel (riel@conectiva.com.br)
Date: Sat Jul 27 2002 - 17:52:26 EST


On 28 Jul 2002, Alan Cox wrote:
> On Sat, 2002-07-27 at 23:39, Buddy Lumpkin wrote:
> > Why would you want to push *anything* to swap until you have to?
>
> To reduce the amount of disk access

> > and it's pretty relative what "long unaccessed" means ..
>
> In the Linux case the page cache is basically not discriminating too
> much about what page is (and it may be several things at once - cache,
> executing code and file data) just its access history.

There is a case to make for evicting the page cache with more
priority than process memory ...

... but frequently accessed page cache memory should definately
stay in ram, while not accessed process memory should be evicted.

I'll make a quick patch for this (for recent 2.5) today.

regards,

Rik

-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

- 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/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:27 EST