diff options
author | Odin Ugedal <odin@ugedal.com> | 2019-05-29 18:24:25 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2019-05-30 17:02:43 -0400 |
commit | 8cfeb385e9ebda784dccd447fe0f784464ca6ee1 (patch) | |
tree | 04b7457cfed1b48ae86dcb09447e5f88f40ccea6 | |
parent | 18fa84a2db0e15b02baa5d94bdb5bd509175d2f6 (diff) |
docs cgroups: add another example size for hugetlb
Add another example to clarify that HugePages smaller than 1MB will
be displayed using "KB", with an uppercased K (eg. 20KB), and not the
normal SI prefix kilo (small k).
Because of a misunderstanding/copy-paste error inside runc
(see https://github.com/opencontainers/runc/pull/2065), it tried
accessing the cgroup control file of a 64kB HugePage using
"hugetlb.64kB._____" instead of the correct "hugetlb.64KB._____".
Adding a new example will make it clear how sizes smaller than 1MB are
handled.
Signed-off-by: Odin Ugedal <odin@ugedal.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | Documentation/cgroup-v1/hugetlb.txt | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Documentation/cgroup-v1/hugetlb.txt b/Documentation/cgroup-v1/hugetlb.txt index 106245c3aecc..1260e5369b9b 100644 --- a/Documentation/cgroup-v1/hugetlb.txt +++ b/Documentation/cgroup-v1/hugetlb.txt | |||
@@ -32,14 +32,18 @@ Brief summary of control files | |||
32 | hugetlb.<hugepagesize>.usage_in_bytes # show current usage for "hugepagesize" hugetlb | 32 | hugetlb.<hugepagesize>.usage_in_bytes # show current usage for "hugepagesize" hugetlb |
33 | hugetlb.<hugepagesize>.failcnt # show the number of allocation failure due to HugeTLB limit | 33 | hugetlb.<hugepagesize>.failcnt # show the number of allocation failure due to HugeTLB limit |
34 | 34 | ||
35 | For a system supporting two hugepage size (16M and 16G) the control | 35 | For a system supporting three hugepage sizes (64k, 32M and 1G), the control |
36 | files include: | 36 | files include: |
37 | 37 | ||
38 | hugetlb.16GB.limit_in_bytes | 38 | hugetlb.1GB.limit_in_bytes |
39 | hugetlb.16GB.max_usage_in_bytes | 39 | hugetlb.1GB.max_usage_in_bytes |
40 | hugetlb.16GB.usage_in_bytes | 40 | hugetlb.1GB.usage_in_bytes |
41 | hugetlb.16GB.failcnt | 41 | hugetlb.1GB.failcnt |
42 | hugetlb.16MB.limit_in_bytes | 42 | hugetlb.64KB.limit_in_bytes |
43 | hugetlb.16MB.max_usage_in_bytes | 43 | hugetlb.64KB.max_usage_in_bytes |
44 | hugetlb.16MB.usage_in_bytes | 44 | hugetlb.64KB.usage_in_bytes |
45 | hugetlb.16MB.failcnt | 45 | hugetlb.64KB.failcnt |
46 | hugetlb.32MB.limit_in_bytes | ||
47 | hugetlb.32MB.max_usage_in_bytes | ||
48 | hugetlb.32MB.usage_in_bytes | ||
49 | hugetlb.32MB.failcnt | ||