From: Rik van Riel <riel@conectiva.com.br>
To: John Fremlin <vii@penguinpowered.com>
Cc: linux-mm@kvack.org
Subject: Re: Long time spent in swap_out &co
Date: Sat, 3 Jun 2000 22:28:43 -0300 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.21.0006032219070.17414-100000@duckman.distro.conectiva> (raw)
In-Reply-To: <m2snuuz3bg.fsf@boreas.southchinaseas>
On 4 Jun 2000, John Fremlin wrote:
> (a) The entire list of processes is scanned through each time
> at least once. (Slow, and holding a lock.)
This is not very slow, since it only looks at something like
3 or 4 numbers and flags per process.
> (b) The biggest rss is chosen. Admittedly the swap_cnt
> heuristics help a bit but it means that a large process that
> is on touching its pages will keep distracting attention from
> more smaller processes that may or may not be more wasteful.
Please look at the 'assign' variable. We will chose the process
with the biggest swap_cnt until swap_cnt for *all* processes is
0.
Then we will reassign swap_cnt. This ensures that all processes
get scanned fairly.
Also, note the counter variable, we'll only scan up to a few
processes, and we'll return after we have freed just one page.
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies
http://www.conectiva.com/ http://www.surriel.com/
--
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 prev parent reply other threads:[~2000-06-04 1:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-04 0:40 John Fremlin
2000-06-04 1:28 ` Rik van Riel [this message]
2000-06-04 13:54 ` John Fremlin
2000-06-04 15:43 ` PATCH: swap_out mega (100+ times) speedboost John Fremlin
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=Pine.LNX.4.21.0006032219070.17414-100000@duckman.distro.conectiva \
--to=riel@conectiva.com.br \
--cc=linux-mm@kvack.org \
--cc=vii@penguinpowered.com \
/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