Commit 0527b6903b2838e214c895d527806aefd61b3c8f
Committed by
Linus Torvalds
1 parent
d66c1ce7df
Exists in
master
and in
6 other branches
memcg: fix pgpgin/pgpgout documentation
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@google.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 5 additions and 2 deletions Side-by-side Diff
Documentation/cgroups/memory.txt
... | ... | @@ -410,8 +410,11 @@ |
410 | 410 | cache - # of bytes of page cache memory. |
411 | 411 | rss - # of bytes of anonymous and swap cache memory. |
412 | 412 | mapped_file - # of bytes of mapped file (includes tmpfs/shmem) |
413 | -pgpgin - # of pages paged in (equivalent to # of charging events). | |
414 | -pgpgout - # of pages paged out (equivalent to # of uncharging events). | |
413 | +pgpgin - # of charging events to the memory cgroup. The charging | |
414 | + event happens each time a page is accounted as either mapped | |
415 | + anon page(RSS) or cache page(Page Cache) to the cgroup. | |
416 | +pgpgout - # of uncharging events to the memory cgroup. The uncharging | |
417 | + event happens each time a page is unaccounted from the cgroup. | |
415 | 418 | swap - # of bytes of swap usage |
416 | 419 | inactive_anon - # of bytes of anonymous memory and swap cache memory on |
417 | 420 | LRU list. |