* vmscan.c loop fix.
@ 1998-03-23 20:24 Rik van Riel
0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 1998-03-23 20:24 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-mm
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> |
+-------------------------------------------+--------------------------+
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-03-23 20:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-23 20:24 vmscan.c loop fix Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox