[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nice vmm test case



Hi,

I have a simple test case that is a nice example of bad mm perfomance
under load (I tested 2.2.16 and 2.4.0-test2, it makes no big
difference). I simply edit a large file with vi (25MB file on a 64MB
system) and watch the some vmm values in top. As a simple edit operation
I remove the first character of every line (or just type ":%s,^.,,").
The interesting point is when the virtual size of vi reaches the amount
of available memory, the perfomance drops immediatly and the system is
only busy with swapping. It's interesting to watch the SWAP and RSS
numbers, they constantly jump between 0 and 50MB.
This example also shows nicely which effect it has on interactive tasks,
if you watch the numbers of top itself (I changed the update delay to 1s
and sorted it by age, so it's easier to follow), top is also busy with
keeping it's own few pages in memory (under 2.4 top generates more page
faults than vi).
The right answer would be probably page aging, but I doubt to see that
in 2.4. Anyway, the swap_cnt in vmscan.c looks suspicious, maybe it's
initiliazed too high?

bye, Roman
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/