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

* Re: [patch] 2.4.0-test4 filemap.c
  2000-07-15 18:35 [patch] 2.4.0-test4 filemap.c Rik van Riel
@ 2000-07-15 20:16 ` Arjan van de Ven
  0 siblings, 0 replies; 2+ messages in thread
From: Arjan van de Ven @ 2000-07-15 20:16 UTC (permalink / raw)
  To: linux-mm

On Sat, 15 Jul 2000, Rik van Riel wrote:

> Hi,
> 
> the patch below could make filemap.c better behaved.

My system with both your patches works REALLY great. No unneeded swapouts
if there is plenty of ram free (like 16Mb), no trimming of the cache until
there is only 2 Mb free, and only swapping the old stuff when I ask
Mozilla to start....

I hope these patches make it into the kernel, at least until the new VM is
ready...


Greetings,
   Arjan van de Ven


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