Re: [PATCH 3/3] Zone reclaim V3: Frequency of failed reclaim attempts

From: Christoph Lameter
Date: Thu Dec 08 2005 - 16:08:52 EST


Patch:

Index: linux-2.6.15-rc4/mm/vmscan.c
===================================================================
--- linux-2.6.15-rc4.orig/mm/vmscan.c 2005-12-08 12:31:56.000000000 -0800
+++ linux-2.6.15-rc4/mm/vmscan.c 2005-12-08 13:07:05.000000000 -0800
@@ -1386,7 +1386,7 @@ int zone_reclaim(struct zone *zone, gfp_
* will be a waste of time. Continue off node allocations for the
* duration of this tick.
*/
- if (zone->last_unsuccessful_zone_reclaim == get_jiffies_64())
+ if (zone->last_unsuccessful_zone_reclaim == jiffies)
return 0;

sc.gfp_mask = gfp_mask;
@@ -1408,7 +1408,7 @@ int zone_reclaim(struct zone *zone, gfp_
p->reclaim_state = NULL;
current->flags &= ~PF_MEMALLOC;
if (sc.nr_reclaimed == 0)
- zone->last_unsuccessful_zone_reclaim = get_jiffies_64();
+ zone->last_unsuccessful_zone_reclaim = jiffies;
cond_resched();
return sc.nr_reclaimed >= (1 << order);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/