Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 18 Nov 2001 21:39:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 18 Nov 2001 21:39:01 -0500 Received: from garrincha.netbank.com.br ([200.203.199.88]:65038 "HELO netbank.com.br") by vger.kernel.org with SMTP id ; Sun, 18 Nov 2001 21:38:53 -0500 Date: Mon, 19 Nov 2001 00:38:33 -0200 (BRST) From: Rik van Riel X-X-Sender: To: Shaya Potter Cc: Shaya Potter , Subject: Re: replacing the page replacement algo. In-Reply-To: <1006137133.604.8.camel@zaphod> 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 On 18 Nov 2001, Shaya Potter wrote: > On Sun, 2001-11-18 at 20:44, Rik van Riel wrote: > > On 18 Nov 2001, Shaya Potter wrote: > > > > > If I wanted to experiment with different algorithms that chose which > > > page to replace (say on a page fault) what functions would I have to > > > replace? > > > > try_to_free_pages() and all the functions it calls. > > I was looking at vmscan.c and it appears that swap_out() is what I > want. You're missing the fact here that swap_out() only unmaps pages from processes' page tables, actual reclaiming of the pages is done elsewhere. Rik -- Shortwave goes a long way: irc.starchat.net #swl 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/