aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorYing Han <yinghan@google.com>2011-06-15 18:08:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-06-15 23:03:59 -0400
commit50c35e5ba255fd8428cef8ff076da8d23bfd4909 (patch)
tree308942cb6ba8c2679de60f0b598a11e06906e5b2 /Documentation
parentd7911ef30cb7bec52234c2b7a5c275ac8f07905a (diff)
memcg: add documentation for the memory.numastat API
[akpm@linux-foundation.org: rework text, fit it into 80-cols] Signed-off-by: Ying Han <yinghan@google.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: Balbir Singh <bsingharora@gmail.com> Acked-by: 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')
-rw-r--r--Documentation/cgroups/memory.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
index 7c163477fcd8..510d64570d60 100644
--- a/Documentation/cgroups/memory.txt
+++ b/Documentation/cgroups/memory.txt
@@ -70,6 +70,7 @@ Brief summary of control files.
70 (See sysctl's vm.swappiness) 70 (See sysctl's vm.swappiness)
71 memory.move_charge_at_immigrate # set/show controls of moving charges 71 memory.move_charge_at_immigrate # set/show controls of moving charges
72 memory.oom_control # set/show oom controls. 72 memory.oom_control # set/show oom controls.
73 memory.numa_stat # show the number of memory usage per numa node
73 74
741. History 751. History
75 76
@@ -464,6 +465,24 @@ value for efficient access. (Of course, when necessary, it's synchronized.)
464If you want to know more exact memory usage, you should use RSS+CACHE(+SWAP) 465If you want to know more exact memory usage, you should use RSS+CACHE(+SWAP)
465value in memory.stat(see 5.2). 466value in memory.stat(see 5.2).
466 467
4685.6 numa_stat
469
470This is similar to numa_maps but operates on a per-memcg basis. This is
471useful for providing visibility into the numa locality information within
472an memcg since the pages are allowed to be allocated from any physical
473node. One of the usecases is evaluating application performance by
474combining this information with the application's cpu allocation.
475
476We export "total", "file", "anon" and "unevictable" pages per-node for
477each memcg. The ouput format of memory.numa_stat is:
478
479total=<total pages> N0=<node 0 pages> N1=<node 1 pages> ...
480file=<total file pages> N0=<node 0 pages> N1=<node 1 pages> ...
481anon=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ...
482unevictable=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ...
483
484And we have total = file + anon + unevictable.
485
4676. Hierarchy support 4866. Hierarchy support
468 487
469The memory controller supports a deep hierarchy and hierarchical accounting. 488The memory controller supports a deep hierarchy and hierarchical accounting.