Re: replacing the page replacement algo.

From: Rik van Riel (riel@conectiva.com.br)
Date: Sun Nov 18 2001 - 21:38:33 EST


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/



This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:18 EST