From: Benjamin Redelings <bredelin@ucla.edu>
To: linux-mm@kvack.org
Subject: Re: nice vmm test case
Date: Wed, 05 Jul 2000 10:20:38 -0700 [thread overview]
Message-ID: <39636E66.CE21C296@ucla.edu> (raw)
> 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/
next reply other threads:[~2000-07-05 17:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-05 17:20 Benjamin Redelings [this message]
2000-07-06 8:40 ` Roman Zippel
2000-07-06 16:37 ` John Fremlin
2000-07-07 9:37 ` Roman Zippel
-- strict thread matches above, loose matches on Subject: below --
2000-07-05 17:06 Roman Zippel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39636E66.CE21C296@ucla.edu \
--to=bredelin@ucla.edu \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox