linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Rik van Riel <riel@conectiva.com.br>
To: Arjan van de Ven <arjan@fenrus.demon.nl>
Cc: linux-mm@kvack.org
Subject: [patch] 2.4.0-test4 filemap.c
Date: Sat, 15 Jul 2000 15:35:21 -0300 (BRST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0007151534260.17208-100000@duckman.distro.conectiva> (raw)

Hi,

the patch below could make filemap.c better behaved.

this stuff is untested and since I don't really care
about tweaks to the old VM you shouldn't bother me
about it...

regards,

Rik
--
"What you're running that piece of shit Gnome?!?!"
       -- Miguel de Icaza, UKUUG 2000

http://www.conectiva.com/		http://www.surriel.com/



--- filemap.c.orig	Sat Jul 15 15:31:38 2000
+++ filemap.c	Sat Jul 15 15:33:26 2000
@@ -318,6 +318,14 @@
 			goto cache_unlock_continue;
 
 		/*
+		 * If we *really* have too much memory free in a zone,
+		 * we even won't drop the swap cache memory. We should
+		 * keep this limit high though, because that way balancing
+		 * between zones is faster.
+		 */
+		if (page->zone->free_pages > page->zone->pages_high * 2)
+			goto cache_unlock_continue;
+		/*
 		 * Is it a page swap page? If so, we want to
 		 * drop it if it is no longer used, even if it
 		 * were to be marked referenced..

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

             reply	other threads:[~2000-07-15 18:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-15 18:35 Rik van Riel [this message]
2000-07-15 20:16 ` Arjan van de Ven

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.4.21.0007151534260.17208-100000@duckman.distro.conectiva \
    --to=riel@conectiva.com.br \
    --cc=arjan@fenrus.demon.nl \
    --cc=linux-mm@kvack.org \
    /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