Skip to contentSkip to conversation

kswapd eating too much CPU on ac16/ac18

DISCUSSION Roger Larsson 1 participant 1 message Jun 16, 2000 Memory management

lore
Share & tools
lore
#0 lore raw

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;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/