From: Rik van Riel <H.H.vanRiel@fys.ruu.nl>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-mm <linux-mm@kvack.org>
Subject: vmscan.c loop fix.
Date: Mon, 23 Mar 1998 21:24:21 +0100 (MET) [thread overview]
Message-ID: <Pine.LNX.3.91.980323211950.2526A-100000@mirkwood.dummy.home> (raw)
Hi Linus,
I think the 'proper' fix for swapout loops would be to limit
the amount of CPU used by kswapd (to 50%?).
We could do that by:
- having kswapd measure it's own CPU usage (over a 30 second period?)
- exiting after 3 jiffies (32 Alpha) max when it's usage is
above quota and setting a hard_next_swap_jiffies to jiffies + 3
Of course, this has the disadvantage that kswapd can't keep
up with allocation festivities :-(
What do you think?
Rik.
+-------------------------------------------+--------------------------+
| Linux: - LinuxHQ MM-patches page | Scouting webmaster |
| - kswapd ask-him & complain-to guy | Vries cubscout leader |
| http://www.fys.ruu.nl/~riel/ | <H.H.vanRiel@fys.ruu.nl> |
+-------------------------------------------+--------------------------+
reply other threads:[~1998-03-23 20:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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.3.91.980323211950.2526A-100000@mirkwood.dummy.home \
--to=h.h.vanriel@fys.ruu.nl \
--cc=linux-mm@kvack.org \
--cc=torvalds@transmeta.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