linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* swapout frenzy quick-fix
@ 1998-03-09 19:54 Rik van Riel
  0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 1998-03-09 19:54 UTC (permalink / raw)
  To: jasons; +Cc: linux-mm, Linus Torvalds

Hi Jason and Linus,

I made a quick-fix for the swapout frenzy occurring in
2.1.89...
It's far from perfect, but until the changes from Ben
and Stephen are merged, it'll have to do :-(

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/ |
+-----------------------------+------------------------------+

--- linux/mm/vmscan.c.orig	Mon Mar  9 20:51:44 1998
+++ linux/mm/vmscan.c	Mon Mar  9 20:51:44 1998
@@ -573,6 +573,8 @@
 
 			if (free_memory_available())
 				break;
+			if (nr_free_pages + atomic_read(&nr_async_pages) > free_pages_high * 4)
+				break;
 			gfp_mask = __GFP_IO;
 			try_to_free_page(gfp_mask);
 			/*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-03-09 21:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-09 19:54 swapout frenzy quick-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