memcg: fix a typo in documentation
Subsystems (2)
PATCH 1/1 memcg: fix a typo in documentation
A tiny typo on mapped_file stat.
--- Documentation/cgroups/memory.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/cgroups/memory.txt +1 -1
@@ -410,7 +410,7 @@ hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to 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_mapped_file - sum of all children's "mapped_file" total_mlock - sum of all children's "mlock" total_pgpgin - sum of all children's "pgpgin" total_pgpgout - sum of all children's "pgpgout"
Signature · 8 lines
1.7.3.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Quoted 3 lines · Ying Han
A tiny typo on
mapped_filestat.Signed-off-by Ying Han<[email protected]>
Signature · 8 lines
All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Quoted 3 lines · Ying Han
A tiny typo on
mapped_filestat.Signed-off-by Ying Han <[email protected]>
Thanks
Quoted 26 lines
--- Documentation/cgroups/memory.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Documentation/cgroups/memory.txt +1
-1@@ -410,7 +410,7 @@ hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to 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_mapped_file - sum of all children's "mapped_file" total_mlock - sum of all children's "mlock" total_pgpgin - sum of all children's "pgpgin" total_pgpgout - sum of all children's "pgpgout"Signature · 8 lines
1.7.3.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Signature · 13 lines
Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Quoted 12 lines · On Fri, 9 Dec 2011 16:15:20 -0800 Ying Han <[email protected]> wrote:
A tiny typo on
mapped_filestat.Signed-off-by Ying Han <[email protected]>--- Documentation/cgroups/memory.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Documentation/cgroups/memory.txt +0
-0
Documentation/cgroups/memory.txt hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to · line 416
Quoted 8 lines
Documentation/cgroups/memory.txt +1
-1@@ -410,7 +410,7 @@ hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to 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_mapped_file - sum of all children's "mapped_file" total_mlock - sum of all children's "mlock" total_pgpgin - sum of all children's "pgpgin" total_pgpgout - sum of all children's "pgpgout"
Thanks,
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Quoted 12 lines · Ying Han
A tiny typo on
mapped_filestat.Signed-off-by Ying Han <[email protected]>--- Documentation/cgroups/memory.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Documentation/cgroups/memory.txt +0
-0
Documentation/cgroups/memory.txt hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to · line 416
Quoted 8 lines
Documentation/cgroups/memory.txt +1
-1@@ -410,7 +410,7 @@ hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to 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_mapped_file - sum of all children's "mapped_file" total_mlock - sum of all children's "mlock" total_pgpgin - sum of all children's "pgpgin" total_pgpgout - sum of all children's "pgpgout"
Your fix obviously makes sense, but the line is still incorrect: it's not just the sum of all children but that of the full hierarchy starting with the consulted memcg. It includes that memcg's local counter as well. Aside from that, this all seems awefully redundant.
How about this on top?
---
From: Johannes Weiner <[email protected]>
Subject: [patch] 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_<counter>.
Documenting the pattern is easier for maintenance than listing each counter twice.
--- Documentation/cgroups/memory.txt | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-)
Documentation/cgroups/memory.txt +4 -11
@@ -404,17 +404,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 "mapped_file" -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.
Signature · 8 lines
1.7.7.3 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Michal Hocko
Acked-byOn Mon 12-12-11 11:51:34, Johannes Weiner wrote:
[...]
Quoted 11 lines
From: Johannes Weiner <[email protected]>
Subject: [patch] Documentation: memcg: future proof hierarchical statistics
documentationThe 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 <[email protected]>
Yes, makes sense for the future maintenance.
Thanks
Quoted 33 lines
--- Documentation/cgroups/memory.txt | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-)Documentation/cgroups/memory.txt +4
-11@@ -404,17 +404,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 "mapped_file" -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.Signature · 1 line
1.7.7.3
Signature · 13 lines
Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. 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:"[email protected]"> [email protected] </a>
KOSAKI Motohiro
Acked-byQuoted 59 lines · Johannes Weiner
Quoted 12 lines · Ying Han
A tiny typo on
mapped_filestat.Signed-off-by Ying Han<[email protected]>--- Documentation/cgroups/memory.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Documentation/cgroups/memory.txt +0
-0Documentation/cgroups/memory.txt hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to · line 416
Quoted 8 lines
Documentation/cgroups/memory.txt +1
-1@@ -410,7 +410,7 @@ hierarchical_memsw_limit - # of bytes of memory+swap limit with regard to 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_mapped_file - sum of all children's "mapped_file" total_mlock - sum of all children's "mlock" total_pgpgin - sum of all children's "pgpgin" total_pgpgout - sum of all children's "pgpgout"Your fix obviously makes sense, but the line is still incorrect: it's not just the sum of all children but that of the full hierarchy starting with the consulted memcg. It includes that memcg's local counter as well. Aside from that, this all seems awefully redundant.
How about this on top?
---
From: Johannes Weiner<[email protected]>
Subject: [patch] Documentation: memcg: future proof hierarchical statistics
documentationThe 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<[email protected]>--- Documentation/cgroups/memory.txt | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-)Documentation/cgroups/memory.txt +0
-6@@ -404,17 +404,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 "mapped_file" -total_pgpgin - sum of all children's "pgpgin" -total_pgpgout - sum of all children's "pgpgout" -total_swap - sum of all children's "swap"
Documentation/cgroups/memory.txt hierarchical_memory_limit - # of bytes of memory limit with regard to hierarchy · line 411
Quoted 10 lines
Documentation/cgroups/memory.txt +4
-5-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
I like this.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Ying Han
Acked-byQuoted 69 lines · Johannes Weiner
Quoted 17 lines · Ying Han
A tiny typo on
mapped_filestat.Signed-off-by Ying Han <[email protected]>---
Documentation/cgroups/memory.txt | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)Documentation/cgroups/memory.txt +0
-0@@ -410,7 +410,7 @@ hierarchical_memsw_limit - # of bytes of memory+swap limit with regard tototal_cache - sum of all children's "cache"
total_rss- sum of all children's "rss"Documentation/cgroups/memory.txt +1
-1-total_mapped_file - sum of all children's "cache" +total_mapped_file - sum of all children's "mapped_file"Quoted 3 lines
total_mlock - sum of all children's "mlock"
total_pgpgin- sum of all children's "pgpgin"total_pgpgout- sum of all children's "pgpgout"Your fix obviously makes sense, but the line is still incorrect: it's not just the sum of all children but that of the full hierarchy starting with the consulted memcg. It includes that memcg's local counter as well. Aside from that, this all seems awefully redundant.
How about this on top?
---
From: Johannes Weiner <[email protected]>
Subject: [patch] Documentation: memcg: future proof hierarchical statistics documentationThe 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 <[email protected]>---
Documentation/cgroups/memory.txt | 15 ++++-----------1 files changed, 4 insertions(+), 11 deletions(-)Documentation/cgroups/memory.txt +0
-0@@ -404,17 +404,10 @@ hierarchical_memory_limit - # of bytes of memory limit with regard to hierarchyhierarchical_memsw_limit - # of bytes of memory+swap limit with regard to hierarchy under which memory cgroup is.
Documentation/cgroups/memory.txt +4
-11-total_cache - sum of all children's "cache" -total_rss - sum of all children's "rss" -total_mapped_file - sum of all children's "mapped_file" -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
Quoted 1 line
# The following additional stats are dependent on
CONFIG_DEBUG_VM.
Yes, make sense to me :)
--Ying
Quoted 4 lines
--
1.7.7.3
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. 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:"[email protected]"> [email protected] </a>