linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* swapout frenzy solution
@ 1998-03-05 21:22 Rik van Riel
  1998-03-05 21:49 ` Rik van Riel
  0 siblings, 1 reply; 2+ messages in thread
From: Rik van Riel @ 1998-03-05 21:22 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-mm

Hi Linus,

I've just come up with a simple 'solution' for the swapout
frenzy experienced by the recent free_memory_available()
test in kswapd.

We simply stop kswapd when nr_free_pages > free_pages_high * 4.
Since page allocation always assigns a page from the smallest
possible unit, the larger free areas are extremely likely to
grow bigger and bigger, especially when nr_free_pages is very
large, say > 3 * free_pages_high.

Since my vmscan.c is somewhat different from yours, and since
I don't know what you have done to it in the last week, I
won't send you a diff.

(trying to merge a faulty diff is _far_ more work than
doing the 30 second edit yourself :-)

I'm trying it now, and I don't see any swapout frenzies
occurring anymore...

Rik.
+-----------------------------+------------------------------+
| For Linux mm-patches, go to | "I'm busy managing memory.." |
| my homepage (via LinuxHQ).  | H.H.vanRiel@fys.ruu.nl       |
| ...submissions welcome...   | http://www.fys.ruu.nl/~riel/ |
+-----------------------------+------------------------------+

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-05 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-05 21:22 swapout frenzy solution Rik van Riel
1998-03-05 21:49 ` 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