Commit 67de0162 authored by Jörg Sommer's avatar Jörg Sommer Committed by Linus Torvalds

Documentation: fix cgroup typos and formatting

Fix format and spelling.
Signed-off-by: default avatarJörg Sommer <joerg@alea.gnuu.de>
Acked-by: default avatarPaul Menage <menage@google.com>
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f6e07d38
...@@ -111,7 +111,7 @@ Hierarchical Cgroups ...@@ -111,7 +111,7 @@ Hierarchical Cgroups
CFQ and throttling will practically treat all groups at same level. CFQ and throttling will practically treat all groups at same level.
pivot pivot
/ | \ \ / / \ \
root test1 test2 test3 root test1 test2 test3
Down the line we can implement hierarchical accounting/control support Down the line we can implement hierarchical accounting/control support
......
...@@ -142,7 +142,7 @@ and depending on who is launching the browser he can ...@@ -142,7 +142,7 @@ and depending on who is launching the browser he can
With only a single hierarchy, he now would potentially have to create With only a single hierarchy, he now would potentially have to create
a separate cgroup for every browser launched and associate it with a separate cgroup for every browser launched and associate it with
approp network and other resource class. This may lead to appropriate network and other resource class. This may lead to
proliferation of such cgroups. proliferation of such cgroups.
Also lets say that the administrator would like to give enhanced network Also lets say that the administrator would like to give enhanced network
......
Memory Resource Controller Memory Resource Controller
NOTE: The Memory Resource Controller has been generically been referred NOTE: The Memory Resource Controller has generically been referred to as the
to as the memory controller in this document. Do not confuse memory memory controller in this document. Do not confuse memory controller
controller used here with the memory controller that is used in hardware. used here with the memory controller that is used in hardware.
(For editors) (For editors)
In this document: In this document:
...@@ -182,7 +182,7 @@ behind this approach is that a cgroup that aggressively uses a shared ...@@ -182,7 +182,7 @@ behind this approach is that a cgroup that aggressively uses a shared
page will eventually get charged for it (once it is uncharged from page will eventually get charged for it (once it is uncharged from
the cgroup that brought it in -- this will happen on memory pressure). the cgroup that brought it in -- this will happen on memory pressure).
Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used.. Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used.
When you do swapoff and make swapped-out pages of shmem(tmpfs) to When you do swapoff and make swapped-out pages of shmem(tmpfs) to
be backed into memory in force, charges for pages are accounted against the be backed into memory in force, charges for pages are accounted against the
caller of swapoff rather than the users of shmem. caller of swapoff rather than the users of shmem.
...@@ -214,7 +214,7 @@ affecting global LRU, memory+swap limit is better than just limiting swap from ...@@ -214,7 +214,7 @@ affecting global LRU, memory+swap limit is better than just limiting swap from
OS point of view. OS point of view.
* What happens when a cgroup hits memory.memsw.limit_in_bytes * What happens when a cgroup hits memory.memsw.limit_in_bytes
When a cgroup his memory.memsw.limit_in_bytes, it's useless to do swap-out When a cgroup hits memory.memsw.limit_in_bytes, it's useless to do swap-out
in this cgroup. Then, swap-out will not be done by cgroup routine and file in this cgroup. Then, swap-out will not be done by cgroup routine and file
caches are dropped. But as mentioned above, global LRU can do swapout memory caches are dropped. But as mentioned above, global LRU can do swapout memory
from it for sanity of the system's memory management state. You can't forbid from it for sanity of the system's memory management state. You can't forbid
...@@ -491,13 +491,13 @@ The hierarchy is created by creating the appropriate cgroups in the ...@@ -491,13 +491,13 @@ The hierarchy is created by creating the appropriate cgroups in the
cgroup filesystem. Consider for example, the following cgroup filesystem cgroup filesystem. Consider for example, the following cgroup filesystem
hierarchy hierarchy
root root
/ | \ / | \
/ | \ / | \
a b c a b c
| \ | \
| \ | \
d e d e
In the diagram above, with hierarchical accounting enabled, all memory In the diagram above, with hierarchical accounting enabled, all memory
usage of e, is accounted to its ancestors up until the root (i.e, c and root), usage of e, is accounted to its ancestors up until the root (i.e, c and root),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment