[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090302120052.6FEC.A69D9226@jp.fujitsu.com>
Date: Mon, 2 Mar 2009 12:08:01 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Balbir Singh <balbir@...ux.vnet.ibm.com>
Cc: kosaki.motohiro@...fujitsu.com, linux-mm@...ck.org,
Sudhir Kumar <skumar@...ux.vnet.ibm.com>,
YAMAMOTO Takashi <yamamoto@...inux.co.jp>,
Bharata B Rao <bharata@...ibm.com>,
Paul Menage <menage@...gle.com>, lizf@...fujitsu.com,
linux-kernel@...r.kernel.org, David Rientjes <rientjes@...gle.com>,
Pavel Emelianov <xemul@...nvz.org>,
Dhaval Giani <dhaval@...ux.vnet.ibm.com>,
Rik van Riel <riel@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Subject: Re: [PATCH 4/4] Memory controller soft limit reclaim on contention (v3)
Hi Balbir,
> @@ -2015,9 +2016,12 @@ static int kswapd(void *p)
> finish_wait(&pgdat->kswapd_wait, &wait);
>
> if (!try_to_freeze()) {
> + struct zonelist *zl = pgdat->node_zonelists;
> /* We can speed up thawing tasks if we don't call
> * balance_pgdat after returning from the refrigerator
> */
> + if (!order)
> + mem_cgroup_soft_limit_reclaim(zl, GFP_KERNEL);
> balance_pgdat(pgdat, order);
> }
> }
kswapd's roll is increasing free pages until zone->pages_high in "own node".
mem_cgroup_soft_limit_reclaim() free one (or more) exceed page in any node.
Oh, well.
I think it is not consistency.
if mem_cgroup_soft_limit_reclaim() is aware to target node and its pages_high,
I'm glad.
--
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