[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080605110925.9C29.KOSAKI.MOTOHIRO@jp.fujitsu.com>
Date: Thu, 05 Jun 2008 11:23:08 +0900
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Cc: kosaki.motohiro@...fujitsu.com,
LKML <linux-kernel@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH 0/5] page reclaim throttle v7
Hi kame-san,
> I like this series and I'd like to support this under memcg when
> this goes to mainline. (it seems better to test this for a while
> before adding some memcg-related changes.)
>
> Then, please give me inputs.
> What do you think do I have to do for supporting this in memcg ?
> Handling the case of scan_global_lru(sc)==false is enough ?
my patch have 2 improvement.
1. ristrict reclaiming parallerism of #task (throttle)
2. reclaiming cut off if other task already freed enough memory.
we already consider #1 on memcg and works well.
but we doesn't support #2 on memcg because balbir-san's said
"memcg doesn't need it".
if you need improvement of #2, please change blow portion of my patch.
> + /* reclaim still necessary? */
> + if (scan_global_lru(sc) &&
> + freed - sc->was_freed >= threshold) {
> + if (zone_watermark_ok(zone, sc->order, zone->pages_high,
> + gfp_zone(sc->gfp_mask), 0)) {
> + ret = -EAGAIN;
> + goto out;
> + }
> + sc->was_freed = freed;
> + }
>
--
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