linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch] 2.4.0-test4 filemap.c
@ 2000-07-15 18:35 Rik van Riel
  2000-07-15 20:16 ` Arjan van de Ven
  0 siblings, 1 reply; 2+ messages in thread
From: Rik van Riel @ 2000-07-15 18:35 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-mm

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/

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

end of thread, other threads:[~2000-07-15 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-15 18:35 [patch] 2.4.0-test4 filemap.c Rik van Riel
2000-07-15 20:16 ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox