diff options
| author | David Rientjes <rientjes@google.com> | 2013-05-07 19:18:09 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-07 21:38:26 -0400 |
| commit | b070e65c0bb58d90fa1ac693dc85e239a6b16872 (patch) | |
| tree | 8738b57c68ca2bb655dee5a152ed0152222ecfe5 /Documentation/cgroups | |
| parent | 70affe4520c6f22f5b22b58b589c6ebbe3f8cbc9 (diff) | |
mm, memcg: add rss_huge stat to memory.stat
This exports the amount of anonymous transparent hugepages for each
memcg via the new "rss_huge" stat in memory.stat. The units are in
bytes.
This is helpful to determine the hugepage utilization for individual
jobs on the system in comparison to rss and opportunities where
MADV_HUGEPAGE may be helpful.
The amount of anonymous transparent hugepages is also included in "rss"
for backwards compatibility.
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/cgroups')
| -rw-r--r-- | Documentation/cgroups/memory.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index 09027a9fece5..ddf4f93967a9 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt | |||
| @@ -480,7 +480,9 @@ memory.stat file includes following statistics | |||
| 480 | 480 | ||
| 481 | # per-memory cgroup local status | 481 | # per-memory cgroup local status |
| 482 | cache - # of bytes of page cache memory. | 482 | cache - # of bytes of page cache memory. |
| 483 | rss - # of bytes of anonymous and swap cache memory. | 483 | rss - # of bytes of anonymous and swap cache memory (includes |
| 484 | transparent hugepages). | ||
| 485 | rss_huge - # of bytes of anonymous transparent hugepages. | ||
| 484 | mapped_file - # of bytes of mapped file (includes tmpfs/shmem) | 486 | mapped_file - # of bytes of mapped file (includes tmpfs/shmem) |
| 485 | pgpgin - # of charging events to the memory cgroup. The charging | 487 | pgpgin - # of charging events to the memory cgroup. The charging |
| 486 | event happens each time a page is accounted as either mapped | 488 | event happens each time a page is accounted as either mapped |
