cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] memcg: fix the document of pgpgin/pgpgout
@ 2011-11-22  0:48 Ying Han
       [not found] ` <1321922925-14930-1-git-send-email-yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Ying Han @ 2011-11-22  0:48 UTC (permalink / raw)
  To: Andrew Morton, KAMEZAWA Hiroyuki, Wanlong Gao
  Cc: cgroups-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg

The two memcg stats pgpgin/pgpgout have different meaning than the ones in
vmstat, which indicates that we picked a bad naming for them. It might be late
to change the stat name, but better documentation is always helpful.

Signed-off-by: Ying Han <yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
 Documentation/cgroups/memory.txt |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
index cc0ebc5..eb6a911 100644
--- a/Documentation/cgroups/memory.txt
+++ b/Documentation/cgroups/memory.txt
@@ -386,8 +386,11 @@ memory.stat file includes following statistics
 cache		- # of bytes of page cache memory.
 rss		- # of bytes of anonymous and swap cache memory.
 mapped_file	- # of bytes of mapped file (includes tmpfs/shmem)
-pgpgin		- # of pages paged in (equivalent to # of charging events).
-pgpgout		- # of pages paged out (equivalent to # of uncharging events).
+pgpgin		- # of charging events to the memory cgroup. The charging
+		event happens each time a page is accounted as either mapped
+		anon page(RSS) or cache page(Page Cache) to the cgroup.
+pgpgout		- # of uncharging events to the memory cgroup. The uncharging
+		event happens each time a page is unaccounted from the cgroup.
 swap		- # of bytes of swap usage
 inactive_anon	- # of bytes of anonymous memory and swap cache memory on
 		LRU list.
-- 
1.7.3.1

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] memcg: fix the document of pgpgin/pgpgout
       [not found] ` <1321922925-14930-1-git-send-email-yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
@ 2011-11-22  1:06   ` KAMEZAWA Hiroyuki
  2011-11-22  7:05   ` Johannes Weiner
  2011-11-28 14:03   ` Michal Hocko
  2 siblings, 0 replies; 4+ messages in thread
From: KAMEZAWA Hiroyuki @ 2011-11-22  1:06 UTC (permalink / raw)
  To: Ying Han
  Cc: Andrew Morton, Wanlong Gao, cgroups-u79uwXL29TY76Z2rM5mHXA,
	linux-mm-Bw31MaZKKs3YtjvyW6yDsg

On Mon, 21 Nov 2011 16:48:45 -0800
Ying Han <yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> wrote:

> The two memcg stats pgpgin/pgpgout have different meaning than the ones in
> vmstat, which indicates that we picked a bad naming for them. It might be late
> to change the stat name, but better documentation is always helpful.
> 
> Signed-off-by: Ying Han <yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] memcg: fix the document of pgpgin/pgpgout
       [not found] ` <1321922925-14930-1-git-send-email-yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
  2011-11-22  1:06   ` KAMEZAWA Hiroyuki
@ 2011-11-22  7:05   ` Johannes Weiner
  2011-11-28 14:03   ` Michal Hocko
  2 siblings, 0 replies; 4+ messages in thread
From: Johannes Weiner @ 2011-11-22  7:05 UTC (permalink / raw)
  To: Ying Han
  Cc: Andrew Morton, KAMEZAWA Hiroyuki, Wanlong Gao,
	cgroups-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg

On Mon, Nov 21, 2011 at 04:48:45PM -0800, Ying Han wrote:
> The two memcg stats pgpgin/pgpgout have different meaning than the ones in
> vmstat, which indicates that we picked a bad naming for them. It might be late
> to change the stat name, but better documentation is always helpful.
> 
> Signed-off-by: Ying Han <yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>

Acked-by: Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] memcg: fix the document of pgpgin/pgpgout
       [not found] ` <1321922925-14930-1-git-send-email-yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
  2011-11-22  1:06   ` KAMEZAWA Hiroyuki
  2011-11-22  7:05   ` Johannes Weiner
@ 2011-11-28 14:03   ` Michal Hocko
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Hocko @ 2011-11-28 14:03 UTC (permalink / raw)
  To: Ying Han
  Cc: Andrew Morton, KAMEZAWA Hiroyuki, Wanlong Gao,
	cgroups-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg

On Mon 21-11-11 16:48:45, Ying Han wrote:
> The two memcg stats pgpgin/pgpgout have different meaning than the ones in
> vmstat, which indicates that we picked a bad naming for them. It might be late
> to change the stat name, but better documentation is always helpful.
> 
> Signed-off-by: Ying Han <yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>

If not too late
Acked-by: Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org>

> ---
>  Documentation/cgroups/memory.txt |    7 +++++--
>  1 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
> index cc0ebc5..eb6a911 100644
> --- a/Documentation/cgroups/memory.txt
> +++ b/Documentation/cgroups/memory.txt
> @@ -386,8 +386,11 @@ memory.stat file includes following statistics
>  cache		- # of bytes of page cache memory.
>  rss		- # of bytes of anonymous and swap cache memory.
>  mapped_file	- # of bytes of mapped file (includes tmpfs/shmem)
> -pgpgin		- # of pages paged in (equivalent to # of charging events).
> -pgpgout		- # of pages paged out (equivalent to # of uncharging events).
> +pgpgin		- # of charging events to the memory cgroup. The charging
> +		event happens each time a page is accounted as either mapped
> +		anon page(RSS) or cache page(Page Cache) to the cgroup.
> +pgpgout		- # of uncharging events to the memory cgroup. The uncharging
> +		event happens each time a page is unaccounted from the cgroup.
>  swap		- # of bytes of swap usage
>  inactive_anon	- # of bytes of anonymous memory and swap cache memory on
>  		LRU list.
> -- 
> 1.7.3.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe cgroups" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-28 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22  0:48 [PATCH] memcg: fix the document of pgpgin/pgpgout Ying Han
     [not found] ` <1321922925-14930-1-git-send-email-yinghan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2011-11-22  1:06   ` KAMEZAWA Hiroyuki
2011-11-22  7:05   ` Johannes Weiner
2011-11-28 14:03   ` Michal Hocko

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).