From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from m6.gw.fujitsu.co.jp ([10.0.50.76]) by fgwmail7.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id mB1CJAhX001869 for (envelope-from kosaki.motohiro@jp.fujitsu.com); Mon, 1 Dec 2008 21:19:10 +0900 Received: from smail (m6 [127.0.0.1]) by outgoing.m6.gw.fujitsu.co.jp (Postfix) with ESMTP id 9AEB745DE52 for ; Mon, 1 Dec 2008 21:19:09 +0900 (JST) Received: from s6.gw.fujitsu.co.jp (s6.gw.fujitsu.co.jp [10.0.50.96]) by m6.gw.fujitsu.co.jp (Postfix) with ESMTP id 6F19C45DE51 for ; Mon, 1 Dec 2008 21:19:09 +0900 (JST) Received: from s6.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s6.gw.fujitsu.co.jp (Postfix) with ESMTP id 2A9BF1DB8046 for ; Mon, 1 Dec 2008 21:19:09 +0900 (JST) Received: from ml13.s.css.fujitsu.com (ml13.s.css.fujitsu.com [10.249.87.103]) by s6.gw.fujitsu.co.jp (Postfix) with ESMTP id D01991DB8040 for ; Mon, 1 Dec 2008 21:19:08 +0900 (JST) From: KOSAKI Motohiro Subject: [PATCH 10/11] memcg: show inactive_ratio In-Reply-To: <20081201205810.1CCA.KOSAKI.MOTOHIRO@jp.fujitsu.com> References: <20081201205810.1CCA.KOSAKI.MOTOHIRO@jp.fujitsu.com> Message-Id: <20081201211817.1CE8.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 1 Dec 2008 21:19:08 +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. it is useful for memcg reclam debugging. 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 @@ -1796,6 +1796,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