[uPATCH] Re: 2.1.89 broken?

Rik van Riel (H.H.vanRiel@fys.ruu.nl)
Tue, 10 Mar 1998 14:25:22 +0100 (MET)


On Tue, 10 Mar 1998, Regis Duchesne wrote:

> > Yeah, I've noticed that everything seems to completetly stop when it's
> > swapping, interactive performance is worse when swapping it seems.
> > -Myrdraal
> Same thing here :(

Since my patch is shorter than some .sigs, I'll post
it again.

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

--- vmscan.c~ Mon Mar 9 20:51:44 1998
+++ 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);
/*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu