* [PATCH] memcg: fix a typo in documentation
@ 2011-12-10 0:15 Ying Han
2011-12-10 5:16 ` Rik van Riel
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Ying Han @ 2011-12-10 0:15 UTC (permalink / raw)
To: Michal Hocko, Balbir Singh, Rik van Riel, Hugh Dickins,
Johannes Weiner, Mel Gorman, KAMEZAWA Hiroyuki, Pavel Emelyanov
Cc: linux-mm
A tiny typo on mapped_file stat.
Signed-off-by: Ying Han <yinghan@google.com>
---
Documentation/cgroups/memory.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
index 070c016..c0f409e 100644
--- a/Documentation/cgroups/memory.txt
+++ b/Documentation/cgroups/memory.txt
@@ -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"
--
1.7.3.1
--
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 related [flat|nested] 8+ messages in thread* Re: [PATCH] memcg: fix a typo in documentation 2011-12-10 0:15 [PATCH] memcg: fix a typo in documentation Ying Han @ 2011-12-10 5:16 ` Rik van Riel 2011-12-10 9:48 ` Michal Hocko ` (2 subsequent siblings) 3 siblings, 0 replies; 8+ messages in thread From: Rik van Riel @ 2011-12-10 5:16 UTC (permalink / raw) To: Ying Han Cc: Michal Hocko, Balbir Singh, Hugh Dickins, Johannes Weiner, Mel Gorman, KAMEZAWA Hiroyuki, Pavel Emelyanov, linux-mm On 12/09/2011 07:15 PM, Ying Han wrote: > A tiny typo on mapped_file stat. > > Signed-off-by: Ying Han<yinghan@google.com> Reviewed-by: Rik van Riel <riel@redhat.com> -- All rights reversed -- 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] 8+ messages in thread
* Re: [PATCH] memcg: fix a typo in documentation 2011-12-10 0:15 [PATCH] memcg: fix a typo in documentation Ying Han 2011-12-10 5:16 ` Rik van Riel @ 2011-12-10 9:48 ` Michal Hocko 2011-12-12 0:50 ` KAMEZAWA Hiroyuki 2011-12-12 10:51 ` Johannes Weiner 3 siblings, 0 replies; 8+ messages in thread From: Michal Hocko @ 2011-12-10 9:48 UTC (permalink / raw) To: Ying Han Cc: Balbir Singh, Rik van Riel, Hugh Dickins, Johannes Weiner, Mel Gorman, KAMEZAWA Hiroyuki, Pavel Emelyanov, linux-mm On Fri 09-12-11 16:15:20, Ying Han wrote: > A tiny typo on mapped_file stat. > > Signed-off-by: Ying Han <yinghan@google.com> Thanks Acked-by: Michal Hocko <mhocko@suse.cz> > --- > Documentation/cgroups/memory.txt | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt > index 070c016..c0f409e 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -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" > -- > 1.7.3.1 > > -- > 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> -- 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 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] 8+ messages in thread
* Re: [PATCH] memcg: fix a typo in documentation 2011-12-10 0:15 [PATCH] memcg: fix a typo in documentation Ying Han 2011-12-10 5:16 ` Rik van Riel 2011-12-10 9:48 ` Michal Hocko @ 2011-12-12 0:50 ` KAMEZAWA Hiroyuki 2011-12-12 10:51 ` Johannes Weiner 3 siblings, 0 replies; 8+ messages in thread From: KAMEZAWA Hiroyuki @ 2011-12-12 0:50 UTC (permalink / raw) To: Ying Han Cc: Michal Hocko, Balbir Singh, Rik van Riel, Hugh Dickins, Johannes Weiner, Mel Gorman, Pavel Emelyanov, linux-mm On Fri, 9 Dec 2011 16:15:20 -0800 Ying Han <yinghan@google.com> wrote: > A tiny typo on mapped_file stat. > > Signed-off-by: Ying Han <yinghan@google.com> > --- > Documentation/cgroups/memory.txt | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt > index 070c016..c0f409e 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -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, Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> -- 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] 8+ messages in thread
* Re: [PATCH] memcg: fix a typo in documentation 2011-12-10 0:15 [PATCH] memcg: fix a typo in documentation Ying Han ` (2 preceding siblings ...) 2011-12-12 0:50 ` KAMEZAWA Hiroyuki @ 2011-12-12 10:51 ` Johannes Weiner 2011-12-12 11:23 ` Michal Hocko ` (2 more replies) 3 siblings, 3 replies; 8+ messages in thread From: Johannes Weiner @ 2011-12-12 10:51 UTC (permalink / raw) To: Ying Han Cc: Michal Hocko, Balbir Singh, Rik van Riel, Hugh Dickins, Mel Gorman, KAMEZAWA Hiroyuki, Pavel Emelyanov, linux-mm On Fri, Dec 09, 2011 at 04:15:20PM -0800, Ying Han wrote: > A tiny typo on mapped_file stat. > > Signed-off-by: Ying Han <yinghan@google.com> > --- > Documentation/cgroups/memory.txt | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt > index 070c016..c0f409e 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -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 <hannes@cmpxchg.org> 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. Signed-off-by: Johannes Weiner <hannes@cmpxchg.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 06eb6d9..a858675 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt @@ -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. -- 1.7.7.3 -- 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 related [flat|nested] 8+ messages in thread
* Re: [PATCH] memcg: fix a typo in documentation 2011-12-12 10:51 ` Johannes Weiner @ 2011-12-12 11:23 ` Michal Hocko 2011-12-12 17:49 ` KOSAKI Motohiro 2011-12-12 17:58 ` Ying Han 2 siblings, 0 replies; 8+ messages in thread From: Michal Hocko @ 2011-12-12 11:23 UTC (permalink / raw) To: Johannes Weiner Cc: Ying Han, Balbir Singh, Rik van Riel, Hugh Dickins, Mel Gorman, KAMEZAWA Hiroyuki, Pavel Emelyanov, linux-mm On Mon 12-12-11 11:51:34, Johannes Weiner wrote: [...] > From: Johannes Weiner <hannes@cmpxchg.org> > 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. > > Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Yes, makes sense for the future maintenance. Acked-by: Michal Hocko <mhocko@suse.cz> Thanks > --- > 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 06eb6d9..a858675 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -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. > > -- > 1.7.7.3 > -- 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 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] 8+ messages in thread
* Re: [PATCH] memcg: fix a typo in documentation 2011-12-12 10:51 ` Johannes Weiner 2011-12-12 11:23 ` Michal Hocko @ 2011-12-12 17:49 ` KOSAKI Motohiro 2011-12-12 17:58 ` Ying Han 2 siblings, 0 replies; 8+ messages in thread From: KOSAKI Motohiro @ 2011-12-12 17:49 UTC (permalink / raw) To: Johannes Weiner Cc: Ying Han, Michal Hocko, Balbir Singh, Rik van Riel, Hugh Dickins, Mel Gorman, KAMEZAWA Hiroyuki, Pavel Emelyanov, linux-mm (12/12/11 5:51 AM), Johannes Weiner wrote: > On Fri, Dec 09, 2011 at 04:15:20PM -0800, Ying Han wrote: >> A tiny typo on mapped_file stat. >> >> Signed-off-by: Ying Han<yinghan@google.com> >> --- >> Documentation/cgroups/memory.txt | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt >> index 070c016..c0f409e 100644 >> --- a/Documentation/cgroups/memory.txt >> +++ b/Documentation/cgroups/memory.txt >> @@ -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<hannes@cmpxchg.org> > 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. > > Signed-off-by: Johannes Weiner<hannes@cmpxchg.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 06eb6d9..a858675 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -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 > I like this. Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> -- 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] 8+ messages in thread
* Re: [PATCH] memcg: fix a typo in documentation 2011-12-12 10:51 ` Johannes Weiner 2011-12-12 11:23 ` Michal Hocko 2011-12-12 17:49 ` KOSAKI Motohiro @ 2011-12-12 17:58 ` Ying Han 2 siblings, 0 replies; 8+ messages in thread From: Ying Han @ 2011-12-12 17:58 UTC (permalink / raw) To: Johannes Weiner Cc: Michal Hocko, Balbir Singh, Rik van Riel, Hugh Dickins, Mel Gorman, KAMEZAWA Hiroyuki, Pavel Emelyanov, linux-mm On Mon, Dec 12, 2011 at 2:51 AM, Johannes Weiner <hannes@cmpxchg.org> wrote: > On Fri, Dec 09, 2011 at 04:15:20PM -0800, Ying Han wrote: >> A tiny typo on mapped_file stat. >> >> Signed-off-by: Ying Han <yinghan@google.com> >> --- >> Documentation/cgroups/memory.txt | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt >> index 070c016..c0f409e 100644 >> --- a/Documentation/cgroups/memory.txt >> +++ b/Documentation/cgroups/memory.txt >> @@ -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 <hannes@cmpxchg.org> > 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. > > Signed-off-by: Johannes Weiner <hannes@cmpxchg.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 06eb6d9..a858675 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -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. Yes, make sense to me :) Acked-by: Ying Han <yinghan@google.com> --Ying > > -- > 1.7.7.3 > -- 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] 8+ messages in thread
end of thread, other threads:[~2011-12-12 17:58 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-12-10 0:15 [PATCH] memcg: fix a typo in documentation Ying Han 2011-12-10 5:16 ` Rik van Riel 2011-12-10 9:48 ` Michal Hocko 2011-12-12 0:50 ` KAMEZAWA Hiroyuki 2011-12-12 10:51 ` Johannes Weiner 2011-12-12 11:23 ` Michal Hocko 2011-12-12 17:49 ` KOSAKI Motohiro 2011-12-12 17:58 ` Ying Han
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).