[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090211220044.C3D9.KOSAKI.MOTOHIRO@jp.fujitsu.com>
Date: Wed, 11 Feb 2009 22:03:09 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: MinChan Kim <minchan.kim@...il.com>
Cc: kosaki.motohiro@...fujitsu.com,
Johannes Weiner <hannes@...xchg.org>,
Rik van Riel <riel@...hat.com>,
"Rafael J. Wysocki" <rjw@...k.pl>,
William Lee Irwin III <wli@...ementarian.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] shrink_all_memory() use sc.nr_reclaimed
> > I mean here.
> >
> > '
> > NR_LRU_BASE + l));
> > ret += shrink_list(l, nr_to_scan, zone,
> > sc, prio);
> > if (ret >= nr_pages)
> > return ret;
> > }
> > '
> >
> > I have to make patch again so that it will keep on old bale-out behavior.
>
> Sure.
> thanks.
As I mean,
@@ -2082,15 +2082,14 @@ static unsigned long shrink_all_zones(unsigned long nr_pages, int prio,
nr_to_scan = min(nr_pages,
zone_page_state(zone,
NR_LRU_BASE + l));
nr_reclaimed += shrink_list(l, nr_to_scan, zone,
sc, prio);
- if (nr_reclaimed >= nr_pages)
- if (nr_reclaimed > sc.swap_cluster_max)
break;
}
}
this is keep old behavior and consist shrink_zone(), I think.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists