From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id C6F786B0012 for ; Fri, 20 May 2011 00:23:45 -0400 (EDT) Date: Fri, 20 May 2011 13:20:46 +0900 From: Daisuke Nishimura Subject: Re: [PATCH V4 3/3] memcg: add memory.numastat api for numa statistics Message-Id: <20110520132046.bbfd9aa0.nishimura@mxp.nes.nec.co.jp> In-Reply-To: <1305861891-26140-3-git-send-email-yinghan@google.com> References: <1305861891-26140-1-git-send-email-yinghan@google.com> <1305861891-26140-3-git-send-email-yinghan@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Ying Han Cc: KOSAKI Motohiro , Minchan Kim , Balbir Singh , Tejun Heo , Pavel Emelyanov , KAMEZAWA Hiroyuki , Andrew Morton , Li Zefan , Mel Gorman , Christoph Lameter , Johannes Weiner , Rik van Riel , Hugh Dickins , Michal Hocko , Dave Hansen , Zhu Yanhai , linux-mm@kvack.org, Daisuke Nishimura On Thu, 19 May 2011 20:24:51 -0700 Ying Han wrote: > The new API exports numa_maps per-memcg basis. This is a piece of useful > information where it exports per-memcg page distribution across real numa > nodes. > > One of the usecase is evaluating application performance by combining this > information w/ the cpu allocation to the application. > > The output of the memory.numastat tries to follow w/ simiar format of numa_maps > like: > > total= N0= N1= ... > file= N0= N1= ... > anon= N0= N1= ... > unevictable= N0= N1= ... > > And we have per-node: > total = file + anon + unevictable > > $ cat /dev/cgroup/memory/memory.numa_stat > total=250020 N0=87620 N1=52367 N2=45298 N3=64735 > file=225232 N0=83402 N1=46160 N2=40522 N3=55148 > anon=21053 N0=3424 N1=6207 N2=4776 N3=6646 > unevictable=3735 N0=794 N1=0 N2=0 N3=2941 > > change v4..v3: > 1. add per-node "unevictable" value. > 2. change the functions to be static. > > change v3..v2: > 1. calculate the "total" based on the per-memcg lru size instead of rss+cache. > this makes the "total" value to be consistant w/ the per-node values follows > after. > > change v2..v1: > 1. add also the file and anon pages on per-node distribution. > > Signed-off-by: Ying Han Acked-by: Daisuke Nishimura -- 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