diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/cgroups/cpusets.txt | 6 | ||||
-rw-r--r-- | Documentation/cgroups/memory.txt | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/cgroups/cpusets.txt b/Documentation/cgroups/cpusets.txt index 3c94ff3f9693..f2235a162529 100644 --- a/Documentation/cgroups/cpusets.txt +++ b/Documentation/cgroups/cpusets.txt | |||
@@ -445,7 +445,7 @@ across partially overlapping sets of CPUs would risk unstable dynamics | |||
445 | that would be beyond our understanding. So if each of two partially | 445 | that would be beyond our understanding. So if each of two partially |
446 | overlapping cpusets enables the flag 'cpuset.sched_load_balance', then we | 446 | overlapping cpusets enables the flag 'cpuset.sched_load_balance', then we |
447 | form a single sched domain that is a superset of both. We won't move | 447 | form a single sched domain that is a superset of both. We won't move |
448 | a task to a CPU outside it cpuset, but the scheduler load balancing | 448 | a task to a CPU outside its cpuset, but the scheduler load balancing |
449 | code might waste some compute cycles considering that possibility. | 449 | code might waste some compute cycles considering that possibility. |
450 | 450 | ||
451 | This mismatch is why there is not a simple one-to-one relation | 451 | This mismatch is why there is not a simple one-to-one relation |
@@ -552,8 +552,8 @@ otherwise initial value -1 that indicates the cpuset has no request. | |||
552 | 1 : search siblings (hyperthreads in a core). | 552 | 1 : search siblings (hyperthreads in a core). |
553 | 2 : search cores in a package. | 553 | 2 : search cores in a package. |
554 | 3 : search cpus in a node [= system wide on non-NUMA system] | 554 | 3 : search cpus in a node [= system wide on non-NUMA system] |
555 | ( 4 : search nodes in a chunk of node [on NUMA system] ) | 555 | 4 : search nodes in a chunk of node [on NUMA system] |
556 | ( 5 : search system wide [on NUMA system] ) | 556 | 5 : search system wide [on NUMA system] |
557 | 557 | ||
558 | The system default is architecture dependent. The system default | 558 | The system default is architecture dependent. The system default |
559 | can be changed using the relax_domain_level= boot parameter. | 559 | can be changed using the relax_domain_level= boot parameter. |
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 | ||
329 | 2.7.3 Common use cases | 329 | 2.7.2 Common use cases |
330 | 330 | ||
331 | Because the "kmem" counter is fed to the main user counter, kernel memory can | 331 | Because the "kmem" counter is fed to the main user counter, kernel memory can |
332 | never be limited completely independently of user memory. Say "U" is the user | 332 | never be limited completely independently of user memory. Say "U" is the user |
@@ -354,19 +354,19 @@ set: | |||
354 | 354 | ||
355 | 3. User Interface | 355 | 3. User Interface |
356 | 356 | ||
357 | 0. Configuration | 357 | 3.0. Configuration |
358 | 358 | ||
359 | a. Enable CONFIG_CGROUPS | 359 | a. Enable CONFIG_CGROUPS |
360 | b. Enable CONFIG_MEMCG | 360 | b. Enable CONFIG_MEMCG |
361 | c. Enable CONFIG_MEMCG_SWAP (to use swap extension) | 361 | c. Enable CONFIG_MEMCG_SWAP (to use swap extension) |
362 | d. Enable CONFIG_MEMCG_KMEM (to use kmem extension) | 362 | d. Enable CONFIG_MEMCG_KMEM (to use kmem extension) |
363 | 363 | ||
364 | 1. Prepare the cgroups (see cgroups.txt, Why are cgroups needed?) | 364 | 3.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 | ||
369 | 2. Make the new group and move bash into it | 369 | 3.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 | ||