Re: [patch] balanced highmem subsystem under pre7-9

From: Ingo Molnar (
Date: Fri May 12 2000 - 14:54:06 EST

yes, this appears to have done the trick (patch attached). A 15MB/sec
stream of pure read activity started filling up highmem first. There was
still a light spike of kswapd activity once highmem got filled up, but it
stabilized after a few seconds. Then the pagecache filled up the normal
zone just as fast as it filled up the highmem zone, and now it's in steady
state, with kswapd using up ~5% CPU time [fluctuating, sometimes as high
as 15%, sometimes zero]. (it's recycling LRU pages?) Cool!


--- linux/mm/vmscan.c.orig Fri May 12 12:28:58 2000
+++ linux/mm/vmscan.c Fri May 12 12:29:50 2000
@@ -543,13 +543,14 @@
                                 something_to_do = 1;
                                 if (tsk->need_resched)
- schedule();
+ goto sleep;
                         pgdat = pgdat->node_next;
                 } while (pgdat);
                 if (!something_to_do) {
                         tsk->state = TASK_INTERRUPTIBLE;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:21 EST