* [patch] Documentation: memcg: future proof hierarchical statistics documentation
@ 2012-04-24 19:33 Johannes Weiner
2012-04-24 20:08 ` Randy Dunlap
[not found] ` <1335296038-29297-1-git-send-email-hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
0 siblings, 2 replies; 4+ messages in thread
From: Johannes Weiner @ 2012-04-24 19:33 UTC (permalink / raw)
To: Andrew Morton
Cc: Michal Hocko, KOSAKI Motohiro, Ying Han, KAMEZAWA Hiroyuki,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg, cgroups-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
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-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
Acked-by: Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org>
Acked-by: KOSAKI Motohiro <kosaki.motohiro-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
Acked-by: Ying Han <yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
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
# The following additional stats are dependent on CONFIG_DEBUG_VM.
--
1.7.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [patch] Documentation: memcg: future proof hierarchical statistics documentation 2012-04-24 19:33 [patch] Documentation: memcg: future proof hierarchical statistics documentation Johannes Weiner @ 2012-04-24 20:08 ` Randy Dunlap 2012-04-24 21:26 ` Johannes Weiner [not found] ` <1335296038-29297-1-git-send-email-hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org> 1 sibling, 1 reply; 4+ messages in thread From: Randy Dunlap @ 2012-04-24 20:08 UTC (permalink / raw) To: Johannes Weiner Cc: Andrew Morton, Michal Hocko, KOSAKI Motohiro, Ying Han, KAMEZAWA Hiroyuki, linux-mm, cgroups, linux-kernel 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@cmpxchg.org> > Acked-by: Michal Hocko <mhocko@suse.cz> > Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > Acked-by: Ying Han <yinghan@google.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)? > # The following additional stats are dependent on CONFIG_DEBUG_VM. > -- ~Randy -- 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] Documentation: memcg: future proof hierarchical statistics documentation 2012-04-24 20:08 ` Randy Dunlap @ 2012-04-24 21:26 ` Johannes Weiner 0 siblings, 0 replies; 4+ messages in thread From: Johannes Weiner @ 2012-04-24 21:26 UTC (permalink / raw) To: Randy Dunlap Cc: Andrew Morton, Michal Hocko, KOSAKI Motohiro, Ying Han, KAMEZAWA Hiroyuki, linux-mm, cgroups, linux-kernel 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@cmpxchg.org> > > Acked-by: Michal Hocko <mhocko@suse.cz> > > Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > > Acked-by: Ying Han <yinghan@google.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, 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1335296038-29297-1-git-send-email-hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>]
* Re: [patch] Documentation: memcg: future proof hierarchical statistics documentation [not found] ` <1335296038-29297-1-git-send-email-hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org> @ 2012-04-24 23:51 ` KAMEZAWA Hiroyuki 0 siblings, 0 replies; 4+ messages in thread From: KAMEZAWA Hiroyuki @ 2012-04-24 23:51 UTC (permalink / raw) To: Johannes Weiner Cc: Andrew Morton, Michal Hocko, KOSAKI Motohiro, Ying Han, linux-mm-Bw31MaZKKs3YtjvyW6yDsg, cgroups-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA (2012/04/25 4:33), 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-druUgvl0LCNAfugRpC6u6w@public.gmane.org> > Acked-by: Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org> > Acked-by: KOSAKI Motohiro <kosaki.motohiro-+CUm20s59erQFUHtdCDX3A@public.gmane.org> > Acked-by: Ying Han <yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> I'm fine with this. Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org> ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-24 23:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24 19:33 [patch] Documentation: memcg: future proof hierarchical statistics documentation Johannes Weiner
2012-04-24 20:08 ` Randy Dunlap
2012-04-24 21:26 ` Johannes Weiner
[not found] ` <1335296038-29297-1-git-send-email-hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
2012-04-24 23:51 ` KAMEZAWA Hiroyuki
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).