Re: replacing the page replacement algo.

Rik van Riel (riel@conectiva.com.br)
Fri, 28 Dec 2001 10:22:15 -0200 (BRST)


On Fri, 28 Dec 2001, Daniel Phillips wrote:
> On November 19, 2001 03:51 am, Shaya Potter wrote:
> > ok, but if what I'm interested in playing with right now is playing
> > around with which pages get swapped out, and not with the actual
> > reclamation procedure, is it ok to just play with swap_out and having it
> > do the thing it does, and let the rest of the kernel behave as is, or
> > will this cause problems?
>
> No, it's quite a bit more complex than you imagine. I'll do a *very
> quick* trip through it.

[snip complex interaction in standard kernel]

Shaya, if you want a VM where you can easily change the page
replacement algorithm, you probably want to work on top of my
'rmap' patch. The VM in that patch uses reverse mappings to
determine which process uses a page, so you could put normal
clock, lru, ... algorithms on top of it.

Things like swap_out() are completely gone in my patch, it's
just one selection based on physical page.

regards,

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/