aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
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.