On Sat, 10 Feb 2001, Marcelo Tosatti wrote:
> On Sat, 10 Feb 2001, Mike Galbraith wrote:
>
> > This change makes my box swap madly under load.
>
> Swapped out pages were not being counted in the flushing limitation.
>
> Could you try the following patch?
Marcelo's patch should do the trick wrt. to making page_launder()
well-behaved again. It should fix the problems some people have
seen with bursty swap behaviour.
> --- linux.orig/mm/vmscan.c Sat Feb 10 08:26:17 2001
> +++ linux/mm/vmscan.c Sat Feb 10 09:34:20 2001
> @@ -515,6 +515,7 @@
>
> writepage(page);
> flushed_pages++;
> + max_launder--;
> page_cache_release(page);
>
> /* And re-start the thing.. */
Rik
--
Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...
http://www.surriel.com/
http://www.conectiva.com/ http://distro.conectiva.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/