aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 16:00:36 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 16:00:36 -0500
commit78a45c6f067824cf5d0a9fedea7339ac2e28603c (patch)
treeb4f78c8b6b9059ddace0a18c11629b8d2045f793 /Documentation/cgroups
parentf96fe225677b3efb74346ebd56fafe3997b02afa (diff)
parent29d293b6007b91a4463f05bc8d0b26e0e65c5816 (diff)
Merge branch 'akpm' (second patch-bomb from Andrew)
Merge second patchbomb from Andrew Morton: - the rest of MM - misc fs fixes - add execveat() syscall - new ratelimit feature for fault-injection - decompressor updates - ipc/ updates - fallocate feature creep - fsnotify cleanups - a few other misc things * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (99 commits) cgroups: Documentation: fix trivial typos and wrong paragraph numberings parisc: percpu: update comments referring to __get_cpu_var percpu: update local_ops.txt to reflect this_cpu operations percpu: remove __get_cpu_var and __raw_get_cpu_var macros fsnotify: remove destroy_list from fsnotify_mark fsnotify: unify inode and mount marks handling fallocate: create FAN_MODIFY and IN_MODIFY events mm/cma: make kmemleak ignore CMA regions slub: fix cpuset check in get_any_partial slab: fix cpuset check in fallback_alloc shmdt: use i_size_read() instead of ->i_size ipc/shm.c: fix overly aggressive shmdt() when calls span multiple segments ipc/msg: increase MSGMNI, remove scaling ipc/sem.c: increase SEMMSL, SEMMNI, SEMOPM ipc/sem.c: change memory barrier in sem_lock() to smp_rmb() lib/decompress.c: consistency of compress formats for kernel image decompress_bunzip2: off by one in get_next_block() usr/Kconfig: make initrd compression algorithm selection not expert fault-inject: add ratelimit option ratelimit: add initialization macro ...
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r--Documentation/cgroups/cpusets.txt6
-rw-r--r--Documentation/cgroups/memory.txt8
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
445that would be beyond our understanding. So if each of two partially 445that would be beyond our understanding. So if each of two partially
446overlapping cpusets enables the flag 'cpuset.sched_load_balance', then we 446overlapping cpusets enables the flag 'cpuset.sched_load_balance', then we
447form a single sched domain that is a superset of both. We won't move 447form a single sched domain that is a superset of both. We won't move
448a task to a CPU outside it cpuset, but the scheduler load balancing 448a task to a CPU outside its cpuset, but the scheduler load balancing
449code might waste some compute cycles considering that possibility. 449code might waste some compute cycles considering that possibility.
450 450
451This mismatch is why there is not a simple one-to-one relation 451This 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
558The system default is architecture dependent. The system default 558The system default is architecture dependent. The system default
559can be changed using the relax_domain_level= boot parameter. 559can 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
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