[patch] excessive swapout in 2.1.130

Andrea Arcangeli (arcangel@CS.UniBO.IT)
Mon, 30 Nov 1998 15:59:00 +0100 (MET)


I can' t reproduce any kind of excessive swapout with wc /usr/bin/* or
other thing (cp /dev/zero /tmp/zero) with my tree (arca-39) with 64Mbyte
of ram. I had not time to try clean 2.1.130 to make comparison (I just
asked to some guy out there but not report yet) but I guess the trick is
done by this part of my patch :

diff -u linux/mm/vmscan.c:1.1.1.2 linux/mm/vmscan.c:1.1.1.1.2.3
--- linux/mm/vmscan.c:1.1.1.2 Fri Nov 27 11:19:11 1998
+++ linux/mm/vmscan.c Fri Nov 27 11:41:42 1998
@@ -431,7 +439,7 @@
kmem_cache_reap(gfp_mask);

if (buffer_over_borrow() || pgcache_over_borrow())
- shrink_mmap(i, gfp_mask);
+ state = 0;

switch (state) {
do {

I changed this bit some month ago because it was the right thing to do
according to me.

I am not using sct patch btw (I had not the time to understand it yet).

Andrea[s] Arcangeli

-
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/