Re: kswapd in tight loop 2.6.9-rc3-bk-recent

From: Chris Wright
Date: Thu Oct 07 2004 - 20:53:02 EST


* Andrew Morton (akpm@xxxxxxxx) wrote:
>
> OK, after backing out the `goto spaghetti;' patch and cleaning up a few
> thing I'll test the below. It'll make kswapd much less aggressive.

testing with this compile fix:

diff -u 25-akpm/mm/vmscan.c edited/mm/vmscan.c
--- 25-akpm/mm/vmscan.c 2004-10-07 17:38:20.348905464 -0700
+++ edited/mm/vmscan.c 2004-10-07 18:38:14 -07:00
@@ -999,7 +999,7 @@
struct zone *zone = pgdat->node_zones + i;

zone->temp_priority = DEF_PRIORITY;
- zone->pages_to_reclaim = zone->pages_high - zone->pages_free;
+ zone->pages_to_reclaim = zone->pages_high - zone->free_pages;
}

for (priority = DEF_PRIORITY; priority >= 0; priority--) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/