Re: kswapd eating too much CPU on ac16/ac18

Roger Larsson
2000-06-16T09:56:20Z

Ohh,

This code was new at that time...

I have found out that most pages are not freed due to this check.
See "instrumentation patch for shrink_mmap to find cause of failures - it did :-)"

Please try to remove only this test to get a comparable result.
It might lead to infinite loops...

/RogerL

@@ -317,28 +326,34 @@
goto cache_unlock_continue;

/*
+ * Page is from a zone we don't care about.
+ * Don't drop page cache entries in vain.
+ */
+ if (page->zone->free_pages > page->zone->pages_high)
+ goto cache_unlock_continue;