From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 9954D5F0001 for ; Wed, 8 Apr 2009 02:16:44 -0400 (EDT) Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail6.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id n386GwFn027839 for (envelope-from kamezawa.hiroyu@jp.fujitsu.com); Wed, 8 Apr 2009 15:16:58 +0900 Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id F378045DE55 for ; Wed, 8 Apr 2009 15:16:57 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id D2E2445DD79 for ; Wed, 8 Apr 2009 15:16:57 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id AD7DE1DB803B for ; Wed, 8 Apr 2009 15:16:57 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 62B951DB803C for ; Wed, 8 Apr 2009 15:16:57 +0900 (JST) Date: Wed, 8 Apr 2009 15:15:29 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [RFI] Shared accounting for memory resource controller Message-Id: <20090408151529.fd6626c2.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20090408052904.GY7082@balbir.in.ibm.com> References: <20090407063722.GQ7082@balbir.in.ibm.com> <20090407160014.8c545c3c.kamezawa.hiroyu@jp.fujitsu.com> <20090407071825.GR7082@balbir.in.ibm.com> <20090407163331.8e577170.kamezawa.hiroyu@jp.fujitsu.com> <20090407080355.GS7082@balbir.in.ibm.com> <20090407172419.a5f318b9.kamezawa.hiroyu@jp.fujitsu.com> <20090408052904.GY7082@balbir.in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: balbir@linux.vnet.ibm.com Cc: "linux-mm@kvack.org" , Andrew Morton , "lizf@cn.fujitsu.com" , Rik van Riel , Bharata B Rao , Dhaval Giani , KOSAKI Motohiro , "linux-kernel@vger.kernel.org" List-ID: On Wed, 8 Apr 2009 10:59:04 +0530 Balbir Singh wrote: > > no serious intention. > > Just because you wrote "expect the user to account all cached pages as shared" ;) > > > > OK, I noticed another thing, our RSS accounting is not RSS per-se, it > includes only anon RSS, file backed pages are accounted as cached. > I'll send out a patch to see if we can include anon RSS as well. > I think we can't do it in memcg layer without new-hook because file caches are added to radix-tree before mapped. mm struct has anon_rss and file_rss coutners. Then, you can show sum of total maps of file pages. maybe. Thanks, -Kame -- 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