* [PATCH] milder kswapd
@ 1998-03-11 15:29 Rik van Riel
0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 1998-03-11 15:29 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, linux-mm
Hi there,
since many of you have complained that kswapd is a tad
agressive in 2.1.89, I've made the following patch to
counter that 'bad behaviour'.
happy hacking,
Rik.
(and don't forget your /proc/sys/vm/swapctl!)
+-------------------------------------------+--------------------------+
| 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> |
+-------------------------------------------+--------------------------+
--- linux/mm/vmscan.c.orig Wed Mar 11 16:23:17 1998
+++ linux/mm/vmscan.c Wed Mar 11 16:25:52 1998
@@ -511,7 +511,6 @@
printk ("Starting kswapd v%.*s\n", i, s);
}
-#define MAX_SWAP_FAIL 3
/*
* The background pageout daemon.
* Started as a kernel thread from the init process.
@@ -559,15 +558,8 @@
if (tries < min_free_pages) {
tries = min_free_pages;
}
- else if (nr_free_pages < (free_pages_high + free_pages_low) / 2) {
+ else if (nr_free_pages < (free_pages_low + min_free_pages) / 2)
tries <<= 1;
- if (nr_free_pages < free_pages_low) {
- tries <<= 1;
- if (nr_free_pages <= min_free_pages) {
- tries <<= 1;
- }
- }
- }
while (tries--) {
int gfp_mask;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-03-11 17:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-11 15:29 [PATCH] milder kswapd 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