Re: [PATCH] swapin readahead v3 + kswapd fixes

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Tue, 1 Dec 1998 16:28:13 +0100 (CET)


On Tue, 1 Dec 1998, Andrea Arcangeli wrote:
> On Tue, 1 Dec 1998, Rik van Riel wrote:
>
> >--- ./mm/vmscan.c.orig Thu Nov 26 11:26:50 1998
> >+++ ./mm/vmscan.c Tue Dec 1 07:12:28 1998
> >@@ -431,6 +431,8 @@
> > kmem_cache_reap(gfp_mask);
> >
> > if (buffer_over_borrow() || pgcache_over_borrow())
> >+ state = 0;
>
> This _my_ patch should be enough. Did you tried it without the other
> stuff?

Yes, I tried the other stuff but something broke without
the little piece I added. All my piece added to vmscan.c
does is make sure that we actually free memory when we
have done some swap_out()s.

Otherwise kswapd won't stop swapping when things 'go well'.

cheers,

Rik -- now completely used to dvorak kbd layout...
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/