linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* nice vmm test case
@ 2000-07-05 17:06 Roman Zippel
  0 siblings, 0 replies; 5+ messages in thread
From: Roman Zippel @ 2000-07-05 17:06 UTC (permalink / raw)
  To: linux-mm

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: nice vmm test case
@ 2000-07-05 17:20 Benjamin Redelings
  2000-07-06  8:40 ` Roman Zippel
  2000-07-06 16:37 ` John Fremlin
  0 siblings, 2 replies; 5+ messages in thread
From: Benjamin Redelings @ 2000-07-05 17:20 UTC (permalink / raw)
  To: linux-mm

> Anyway, the swap_cnt in vmscan.c looks suspicious, maybe it's
> initiliazed too high?

The swap_cnt in vmscan.c is almost meaningless.  It is basically the
number of pages in a process that have not been scanned in the current
iteration. (where one iteration means that we scan all processes).

However, as (I think) John Fremlin has pointed out, sorting processes to
swap by this value is pointless.  

vmscan.c goes through all the pages (at least on my machine) pretty
fast, and that not all pages are found on the first iteration. If that
were NOT the case we would be in BIG trouble, because it would never
scan small processes until all the big ones had been scanned.  Also,
swap_cnt is not update when the RSS changes...
	This indicates that John's patch should be worth trying out...

We are eagerly awaiting patches for active/inactive lists :) :)

-BenRI
P.S. Please correct me if I'm wrong...
--
"For nature does not give virtue,
 It is an art to become good." - Seneca
Benjamin Redelings I      <><     http://www.bol.ucla.edu/~bredelin
--
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-07-07  9:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-05 17:06 nice vmm test case Roman Zippel
2000-07-05 17:20 Benjamin Redelings
2000-07-06  8:40 ` Roman Zippel
2000-07-06 16:37 ` John Fremlin
2000-07-07  9:37   ` Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox