lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120424212633.GK2536@cmpxchg.org>
Date:	Tue, 24 Apr 2012 23:26:33 +0200
From:	Johannes Weiner <hannes@...xchg.org>
To:	Randy Dunlap <rdunlap@...otime.net>
Cc:	Andrew Morton <akpm@...ux-foundation.org>,
	Michal Hocko <mhocko@...e.cz>,
	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
	Ying Han <yinghan@...gle.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
	linux-mm@...ck.org, cgroups@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [patch] Documentation: memcg: future proof hierarchical
 statistics documentation

On Tue, Apr 24, 2012 at 01:08:06PM -0700, Randy Dunlap wrote:
> On 04/24/2012 12:33 PM, Johannes Weiner wrote:
> 
> > The hierarchical versions of per-memcg counters in memory.stat are all
> > calculated the same way and are all named total_<counter>.
> > 
> > Documenting the pattern is easier for maintenance than listing each
> > counter twice.
> > 
> > Signed-off-by: Johannes Weiner <hannes@...xchg.org>
> > Acked-by: Michal Hocko <mhocko@...e.cz>
> > Acked-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
> > Acked-by: Ying Han <yinghan@...gle.com>
> > ---
> >  Documentation/cgroups/memory.txt |   15 ++++-----------
> >  1 files changed, 4 insertions(+), 11 deletions(-)
> > 
> > diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
> > index ab34ae5..6a066a2 100644
> > --- a/Documentation/cgroups/memory.txt
> > +++ b/Documentation/cgroups/memory.txt
> > @@ -432,17 +432,10 @@ hierarchical_memory_limit - # of bytes of memory limit with regard to hierarchy
> >  hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to
> >  			hierarchy under which memory cgroup is.
> >  
> > -total_cache		- sum of all children's "cache"
> > -total_rss		- sum of all children's "rss"
> > -total_mapped_file	- sum of all children's "cache"
> > -total_pgpgin		- sum of all children's "pgpgin"
> > -total_pgpgout		- sum of all children's "pgpgout"
> > -total_swap		- sum of all children's "swap"
> > -total_inactive_anon	- sum of all children's "inactive_anon"
> > -total_active_anon	- sum of all children's "active_anon"
> > -total_inactive_file	- sum of all children's "inactive_file"
> > -total_active_file	- sum of all children's "active_file"
> > -total_unevictable	- sum of all children's "unevictable"
> > +total_<counter>		- # hierarchical version of <counter>, which in
> > +			addition to the cgroup's own value includes the
> > +			sum of all hierarchical children's values of
> > +			<counter>, i.e. total_cache
> 
> 			           e.g., total_cache
> 
> But how is a user or an admin supposed to know what all of the valid
> total_<counter> names are?  Is the entire list documented anywhere
> else other than here (which is being deleted)?

Yes, right above where the context of this patch ends is the original
list of counters, documenting cache, rss, mapped_file, etc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ