diff options
Diffstat (limited to 'Documentation')
-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. |