diff -puN mm/vmscan.c~reclaim_mapped-pressure mm/vmscan.c
--- i386/mm/vmscan.c~reclaim_mapped-pressure Wed Jul 9 12:24:53 2003
+++ i386-god/mm/vmscan.c Wed Jul 9 12:24:53 2003
@@ -95,6 +95,11 @@ static void zone_adj_pressure(struct zon
zone->pressure = expavg(zone->pressure, pass << 10, 1);
}
+static int pressure_to_priority(int pressure)
+{
+ return DEF_PRIORITY - (pressure >> 10);
+}
+
/*
* The list of shrinker callbacks used by to apply pressure to
* ageable caches.
@@ -685,7 +690,7 @@ refill_inactive_zone(struct zone *zone,
* `distress' is a measure of how much trouble we're having reclaiming
* pages. 0 -> no problems. 100 -> great trouble.
*/
- distress = 100 >> priority;
+ distress = 100 >> pressure_to_priority(zone->pressure);
/*
* The point of this algorithm is to decide when to start reclaiming
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/