On Wed, Apr 10, 2013 at 04:47:31PM +0900, Kamezawa Hiroyuki wrote:
> > @@ -2811,8 +2814,16 @@ loop_again:
> >   
> >                     if ((buffer_heads_over_limit && is_highmem_idx(i)) ||
> >                         !zone_balanced(zone, testorder,
> > -                                      balance_gap, end_zone))
> > -                           kswapd_shrink_zone(zone, &sc, lru_pages);
> > +                                      balance_gap, end_zone)) {
> > +                           /*
> > +                            * There should be no need to raise the
> > +                            * scanning priority if enough pages are
> > +                            * already being scanned that high
> > +                            * watermark would be met at 100% efficiency.
> > +                            */
> > +                           if (kswapd_shrink_zone(zone, &sc, lru_pages))
> > +                                   raise_priority = false;
> 
> priority will be raised up enough to scan the amount of "high" watermark
> and will not get larger than that if some pages are reclaimed ?
> 

Yes.

-- 
Mel Gorman
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to