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.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
index 46b2b5080317..a22df3ad35ff 100644
--- a/Documentation/cgroups/memory.txt
+++ b/Documentation/cgroups/memory.txt
@@ -326,7 +326,7 @@ per cgroup, instead of globally.
326 326
327* tcp memory pressure: sockets memory pressure for the tcp protocol. 327* tcp memory pressure: sockets memory pressure for the tcp protocol.
328 328
3292.7.3 Common use cases 3292.7.2 Common use cases
330 330
331Because the "kmem" counter is fed to the main user counter, kernel memory can 331Because the "kmem" counter is fed to the main user counter, kernel memory can
332never be limited completely independently of user memory. Say "U" is the user 332never be limited completely independently of user memory. Say "U" is the user
@@ -354,19 +354,19 @@ set:
354 354
3553. User Interface 3553. User Interface
356 356
3570. Configuration 3573.0. Configuration
358 358
359a. Enable CONFIG_CGROUPS 359a. Enable CONFIG_CGROUPS
360b. Enable CONFIG_MEMCG 360b. Enable CONFIG_MEMCG
361c. Enable CONFIG_MEMCG_SWAP (to use swap extension) 361c. Enable CONFIG_MEMCG_SWAP (to use swap extension)
362d. Enable CONFIG_MEMCG_KMEM (to use kmem extension) 362d. Enable CONFIG_MEMCG_KMEM (to use kmem extension)
363 363
3641. Prepare the cgroups (see cgroups.txt, Why are cgroups needed?) 3643.1. Prepare the cgroups (see cgroups.txt, Why are cgroups needed?)
365# mount -t tmpfs none /sys/fs/cgroup 365# mount -t tmpfs none /sys/fs/cgroup
366# mkdir /sys/fs/cgroup/memory 366# mkdir /sys/fs/cgroup/memory
367# mount -t cgroup none /sys/fs/cgroup/memory -o memory 367# mount -t cgroup none /sys/fs/cgroup/memory -o memory
368 368
3692. Make the new group and move bash into it 3693.2. Make the new group and move bash into it
370# mkdir /sys/fs/cgroup/memory/0 370# mkdir /sys/fs/cgroup/memory/0
371# echo $$ > /sys/fs/cgroup/memory/0/tasks 371# echo $$ > /sys/fs/cgroup/memory/0/tasks
372 372