diff options
author | Ying Han <yinghan@google.com> | 2011-06-15 18:08:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-06-15 23:03:59 -0400 |
commit | 50c35e5ba255fd8428cef8ff076da8d23bfd4909 (patch) | |
tree | 308942cb6ba8c2679de60f0b598a11e06906e5b2 /Documentation/cgroups | |
parent | d7911ef30cb7bec52234c2b7a5c275ac8f07905a (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/cgroups')
-rw-r--r-- | Documentation/cgroups/memory.txt | 19 |
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 | ||
74 | 1. History | 75 | 1. History |
75 | 76 | ||
@@ -464,6 +465,24 @@ value for efficient access. (Of course, when necessary, it's synchronized.) | |||
464 | If you want to know more exact memory usage, you should use RSS+CACHE(+SWAP) | 465 | If you want to know more exact memory usage, you should use RSS+CACHE(+SWAP) |
465 | value in memory.stat(see 5.2). | 466 | value in memory.stat(see 5.2). |
466 | 467 | ||
468 | 5.6 numa_stat | ||
469 | |||
470 | This is similar to numa_maps but operates on a per-memcg basis. This is | ||
471 | useful for providing visibility into the numa locality information within | ||
472 | an memcg since the pages are allowed to be allocated from any physical | ||
473 | node. One of the usecases is evaluating application performance by | ||
474 | combining this information with the application's cpu allocation. | ||
475 | |||
476 | We export "total", "file", "anon" and "unevictable" pages per-node for | ||
477 | each memcg. The ouput format of memory.numa_stat is: | ||
478 | |||
479 | total=<total pages> N0=<node 0 pages> N1=<node 1 pages> ... | ||
480 | file=<total file pages> N0=<node 0 pages> N1=<node 1 pages> ... | ||
481 | anon=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ... | ||
482 | unevictable=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ... | ||
483 | |||
484 | And we have total = file + anon + unevictable. | ||
485 | |||
467 | 6. Hierarchy support | 486 | 6. Hierarchy support |
468 | 487 | ||
469 | The memory controller supports a deep hierarchy and hierarchical accounting. | 488 | The memory controller supports a deep hierarchy and hierarchical accounting. |