* [PATCH] high/low water mark -- correct
@ 1998-04-15 0:07 Rik van Riel
0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 1998-04-15 0:07 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-mm
Hi Linus,
after doing some arithmetic, I decided that the previous
patch was a little too much for small systems...
Please apply this one instead.
I will change the freepages struct to use these values
RSN...
Rik.
+-------------------------------------------+--------------------------+
| Linux: - LinuxHQ MM-patches page | Scouting webmaster |
| - kswapd ask-him & complain-to guy | Vries cubscout leader |
| http://www.fys.ruu.nl/~riel/ | <H.H.vanRiel@fys.ruu.nl> |
+-------------------------------------------+--------------------------+
--- linux/mm/page_alloc.c.2196 Tue Apr 14 23:27:23 1998
+++ linux/mm/page_alloc.c Wed Apr 15 02:04:39 1998
@@ -134,8 +134,9 @@
* It may not be, due to fragmentation, but we
* don't want to keep on forever trying to find
* free unfragmented memory.
+ * Added low/high water marks to avoid thrashing -- Rik.
*/
- if (nr_free_pages > num_physpages >> 4)
+ if (nr_free_pages > (num_physpages >> 5) + (nr ? 0 : SWAP_CLUSTER_MAX))
return nr+1;
list = free_area + NR_MEM_LISTS;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-04-15 0:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-15 0:07 [PATCH] high/low water mark -- correct Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox