From: Johannes Weiner Date: Thu, 3 May 2012 05:43:50 +0000 (+1000) Subject: Documentation: memcg: future proof hierarchical statistics documentation X-Git-Tag: next-20120503~2^2~191 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7c13b91a61ba81299d3c14895365e2c2c1830327;p=karo-tx-linux.git Documentation: memcg: future proof hierarchical statistics documentation The hierarchical versions of per-memcg counters in memory.stat are all calculated the same way and are all named total_. Documenting the pattern is easier for maintenance than listing each counter twice. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Acked-by: KOSAKI Motohiro Acked-by: Ying Han Randy Dunlap Acked-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton --- diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index a00aa6041bac..fbc67fec6733 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt @@ -447,17 +447,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_ - # hierarchical version of , which in + addition to the cgroup's own value includes the + sum of all hierarchical children's values of + , i.e. total_cache # The following additional stats are dependent on CONFIG_DEBUG_VM.