From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from m5.gw.fujitsu.co.jp ([10.0.50.75]) by fgwnews.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id mAUB2QMH002189 for (envelope-from kosaki.motohiro@jp.fujitsu.com); Sun, 30 Nov 2008 20:02:26 +0900 Received: from smail (m5 [127.0.0.1]) by outgoing.m5.gw.fujitsu.co.jp (Postfix) with ESMTP id ACFFC2AEA81 for ; Sun, 30 Nov 2008 20:02:26 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (s5.gw.fujitsu.co.jp [10.0.50.95]) by m5.gw.fujitsu.co.jp (Postfix) with ESMTP id 82FBF1EF081 for ; Sun, 30 Nov 2008 20:02:26 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id 69BF61DB803E for ; Sun, 30 Nov 2008 20:02:26 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id 1E4171DB803F for ; Sun, 30 Nov 2008 20:02:26 +0900 (JST) From: KOSAKI Motohiro Subject: [PATCH 08/09] memcg: show inactive_ratio In-Reply-To: <20081130193502.8145.KOSAKI.MOTOHIRO@jp.fujitsu.com> References: <20081130193502.8145.KOSAKI.MOTOHIRO@jp.fujitsu.com> Message-Id: <20081130200155.815D.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sun, 30 Nov 2008 20:02:25 +0900 (JST) Sender: owner-linux-mm@kvack.org Return-Path: To: LKML , linux-mm , Andrew Morton , Balbir Singh , KAMEZAWA Hiroyuki , Rik van Riel Cc: kosaki.motohiro@jp.fujitsu.com List-ID: add inactive_ratio field to memory.stat file. Signed-off-by: KOSAKI Motohiro --- mm/memcontrol.c | 3 +++ 1 file changed, 3 insertions(+) Index: b/mm/memcontrol.c =================================================================== --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1784,6 +1784,9 @@ static int mem_control_stat_show(struct cb->fill(cb, "unevictable", unevictable * PAGE_SIZE); } + + cb->fill(cb, "inactive_ratio", mem_cont->inactive_ratio); + return 0; } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org