From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx153.postini.com [74.125.245.153]) by kanga.kvack.org (Postfix) with SMTP id A21546B005C for ; Wed, 30 May 2012 22:35:51 -0400 (EDT) Received: from m2.gw.fujitsu.co.jp (unknown [10.0.50.72]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id E95613EE0AE for ; Thu, 31 May 2012 11:35:49 +0900 (JST) Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id CBCB945DE55 for ; Thu, 31 May 2012 11:35:46 +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 B48DE45DD78 for ; Thu, 31 May 2012 11:35:46 +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 A76811DB803C for ; Thu, 31 May 2012 11:35:46 +0900 (JST) Received: from ml13.s.css.fujitsu.com (ml13.s.css.fujitsu.com [10.240.81.133]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 5FCB11DB803E for ; Thu, 31 May 2012 11:35:46 +0900 (JST) Message-ID: <4FC6D881.4090706@jp.fujitsu.com> Date: Thu, 31 May 2012 11:33:37 +0900 From: Kamezawa Hiroyuki MIME-Version: 1.0 Subject: Re: [PATCH] meminfo: show /proc/meminfo base on container's memcg References: <1338260214-21919-1-git-send-email-gaofeng@cn.fujitsu.com> <4FC6B68C.2070703@jp.fujitsu.com> <4FC6BC3E.5010807@jp.fujitsu.com> <4FC6C111.2060108@jp.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: KOSAKI Motohiro , Gao feng , hannes@cmpxchg.org, mhocko@suse.cz, bsingharora@gmail.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, containers@lists.linux-foundation.org (2012/05/31 10:31), David Rientjes wrote: > On Thu, 31 May 2012, Kamezawa Hiroyuki wrote: > >>>> My test with sysfs node's meminfo seems to work... >>>> >>>> [root@rx100-1 qqm]# mount --bind /sys/devices/system/node/node0/meminfo >>>> /proc/meminfo >>>> [root@rx100-1 qqm]# cat /proc/meminfo >>>> >>>> Node 0 MemTotal: 8379636 kB >>> >>> This doesn't seem like a good idea unless the application supports the >>> "Node 0" prefix in /proc/meminfo. >>> >> Of course, /cgroup/memory/..../memory.meminfo , a new file, will use the same >> format of /proc/meminfo. Above is just an example of bind-mount. >> > > It's not just a memcg issue, it would also be a cpusets issue. I think you can add cpuset.meminfo. 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org