aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups/memory.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/cgroups/memory.txt')
-rw-r--r--Documentation/cgroups/memory.txt22
1 files changed, 2 insertions, 20 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
index 6922b6cb58e3..4d8774f6f48a 100644
--- a/Documentation/cgroups/memory.txt
+++ b/Documentation/cgroups/memory.txt
@@ -44,9 +44,8 @@ Features:
44 - oom-killer disable knob and oom-notifier 44 - oom-killer disable knob and oom-notifier
45 - Root cgroup has no limit controls. 45 - Root cgroup has no limit controls.
46 46
47 Hugepages is not under control yet. We just manage pages on LRU. To add more 47 Kernel memory support is work in progress, and the current version provides
48 controls, we have to take care of performance. Kernel memory support is work 48 basically functionality. (See Section 2.7)
49 in progress, and the current version provides basically functionality.
50 49
51Brief summary of control files. 50Brief summary of control files.
52 51
@@ -57,11 +56,8 @@ Brief summary of control files.
57 (See 5.5 for details) 56 (See 5.5 for details)
58 memory.memsw.usage_in_bytes # show current res_counter usage for memory+Swap 57 memory.memsw.usage_in_bytes # show current res_counter usage for memory+Swap
59 (See 5.5 for details) 58 (See 5.5 for details)
60 memory.kmem.usage_in_bytes # show current res_counter usage for kmem only.
61 (See 2.7 for details)
62 memory.limit_in_bytes # set/show limit of memory usage 59 memory.limit_in_bytes # set/show limit of memory usage
63 memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage 60 memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage
64 memory.kmem.limit_in_bytes # if allowed, set/show limit of kernel memory
65 memory.failcnt # show the number of memory usage hits limits 61 memory.failcnt # show the number of memory usage hits limits
66 memory.memsw.failcnt # show the number of memory+Swap hits limits 62 memory.memsw.failcnt # show the number of memory+Swap hits limits
67 memory.max_usage_in_bytes # show max memory usage recorded 63 memory.max_usage_in_bytes # show max memory usage recorded
@@ -76,8 +72,6 @@ Brief summary of control files.
76 memory.oom_control # set/show oom controls. 72 memory.oom_control # set/show oom controls.
77 memory.numa_stat # show the number of memory usage per numa node 73 memory.numa_stat # show the number of memory usage per numa node
78 74
79 memory.independent_kmem_limit # select whether or not kernel memory limits are
80 independent of user limits
81 memory.kmem.tcp.limit_in_bytes # set/show hard limit for tcp buf memory 75 memory.kmem.tcp.limit_in_bytes # set/show hard limit for tcp buf memory
82 memory.kmem.tcp.usage_in_bytes # show current tcp buf memory allocation 76 memory.kmem.tcp.usage_in_bytes # show current tcp buf memory allocation
83 77
@@ -271,21 +265,9 @@ the amount of kernel memory used by the system. Kernel memory is fundamentally
271different than user memory, since it can't be swapped out, which makes it 265different than user memory, since it can't be swapped out, which makes it
272possible to DoS the system by consuming too much of this precious resource. 266possible to DoS the system by consuming too much of this precious resource.
273 267
274Some kernel memory resources may be accounted and limited separately from the
275main "kmem" resource. For instance, a slab cache that is considered important
276enough to be limited separately may have its own knobs.
277
278Kernel memory limits are not imposed for the root cgroup. Usage for the root 268Kernel memory limits are not imposed for the root cgroup. Usage for the root
279cgroup may or may not be accounted. 269cgroup may or may not be accounted.
280 270
281Memory limits as specified by the standard Memory Controller may or may not
282take kernel memory into consideration. This is achieved through the file
283memory.independent_kmem_limit. A Value different than 0 will allow for kernel
284memory to be controlled separately.
285
286When kernel memory limits are not independent, the limit values set in
287memory.kmem files are ignored.
288
289Currently no soft limit is implemented for kernel memory. It is future work 271Currently no soft limit is implemented for kernel memory. It is future work
290to trigger slab reclaim when those limits are reached. 272to trigger slab reclaim when those limits are reached.
291 273