linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Rik van Riel <H.H.vanRiel@fys.ruu.nl>
To: jasons@usemail.com
Cc: linux-mm <linux-mm@kvack.org>, Linus Torvalds <torvalds@transmeta.com>
Subject: swapout frenzy quick-fix
Date: Mon, 9 Mar 1998 20:54:56 +0100 (MET)	[thread overview]
Message-ID: <Pine.LNX.3.91.980309205216.2479A-100000@mirkwood.dummy.home> (raw)

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);
 			/*

                 reply	other threads:[~1998-03-09 21:04 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.980309205216.2479A-100000@mirkwood.dummy.home \
    --to=h.h.vanriel@fys.ruu.nl \
    --cc=jasons@usemail.com \
    --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