Andrew Morton writes:
> Nikita Danilov <Nikita@Namesys.COM> wrote:
> >
> > + if (priority < 0) {
> > + for (i = 0; i < pgdat->nr_zones; i++) {
> > + struct zone *zone = pgdat->node_zones + i;
> > +
> > + if (zone->free_pages < zone->pages_high)
> > + zone_adj_pressure(zone, -1);
> > + }
> > + }
>
> What is this bit doing?
kswapd failed to balance some zone after going up to the maximal
priority (0), increase ->pressure on this zone.
In other words: zone->pressure is average of the scanning priority
required to free enough pages in this zone. As no scanning priority was
enough to free pages, zone->pressure should be extra high.
Nikita.
-
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/
This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:30 EST