From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id 8C7946B0012 for ; Wed, 25 May 2011 07:36:48 -0400 (EDT) Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp09.in.ibm.com (8.14.4/8.13.1) with ESMTP id p4PBSWJ0015696 for ; Wed, 25 May 2011 16:58:32 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4PBagVE2998352 for ; Wed, 25 May 2011 17:06:42 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4PBaeN2014659 for ; Wed, 25 May 2011 21:36:42 +1000 Date: Wed, 25 May 2011 08:55:21 +0530 From: Balbir Singh Subject: Re: [PATCH V5] memcg: add memory.numastat api for numa statistics Message-ID: <20110525032521.GD3440@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: <1305928918-15207-1-git-send-email-yinghan@google.com> <20110524154644.GA3440@balbir.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Ying Han Cc: KOSAKI Motohiro , Minchan Kim , Daisuke Nishimura , 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 * Ying Han [2011-05-24 09:54:43]: > > > static struct cftype mem_cgroup_files[] = { > > > { > > > .name = "usage_in_bytes", > > > @@ -4544,6 +4693,12 @@ static struct cftype mem_cgroup_files[] = { > > > .unregister_event = mem_cgroup_oom_unregister_event, > > > .private = MEMFILE_PRIVATE(_OOM_TYPE, OOM_CONTROL), > > > }, > > > +#ifdef CONFIG_NUMA > > > + { > > > + .name = "numa_stat", > > > + .open = mem_control_numa_stat_open, > > > + }, > > > +#endif > > > > Can't we do this the way we do the stats file? Please see > > mem_control_stat_show(). > > > > I looked that earlier but can not get the formating working as well as the > seq_*. Is there a particular reason we prefer one than the other? > Fair enough, I wanted to avoid repeating what kernel/cgroup.c already does in terms of formatting output. Acked-by: Balbir Singh -- Three Cheers, Balbir -- 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