Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 27 Jul 2002 18:49:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 27 Jul 2002 18:49:24 -0400 Received: from garrincha.netbank.com.br ([200.203.199.88]:17417 "HELO garrincha.netbank.com.br") by vger.kernel.org with SMTP id ; Sat, 27 Jul 2002 18:49:24 -0400 Date: Sat, 27 Jul 2002 19:52:26 -0300 (BRT) From: Rik van Riel X-X-Sender: riel@imladris.surriel.com To: Alan Cox cc: Buddy Lumpkin , Austin Gonyou , , Ville Herva , DervishD , Linux-kernel Subject: RE: About the need of a swap area In-Reply-To: <1027814596.21511.5.camel@irongate.swansea.linux.org.uk> Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1114 Lines: 33 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/