Skip to content

Commit 67de016

Browse files
jo-sotorvalds
authored andcommitted
Documentation: fix cgroup typos and formatting
Fix format and spelling. Signed-off-by: Jörg Sommer <joerg@alea.gnuu.de> Acked-by: Paul Menage <menage@google.com> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f6e07d3 commit 67de016

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎Documentation/cgroups/blkio-controller.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Hierarchical Cgroups
111111
CFQ and throttling will practically treat all groups at same level.
112112

113113
pivot
114-
/ | \ \
114+
/ / \ \
115115
root test1 test2 test3
116116

117117
Down the line we can implement hierarchical accounting/control support

‎Documentation/cgroups/cgroups.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ and depending on who is launching the browser he can
142142

143143
With only a single hierarchy, he now would potentially have to create
144144
a separate cgroup for every browser launched and associate it with
145-
approp network and other resource class. This may lead to
145+
appropriate network and other resource class. This may lead to
146146
proliferation of such cgroups.
147147

148148
Also lets say that the administrator would like to give enhanced network

‎Documentation/cgroups/memory.txt‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Memory Resource Controller
22

3-
NOTE: The Memory Resource Controller has been generically been referred
4-
to as the memory controller in this document. Do not confuse memory
5-
controller used here with the memory controller that is used in hardware.
3+
NOTE: The Memory Resource Controller has generically been referred to as the
4+
memory controller in this document. Do not confuse memory controller
5+
used here with the memory controller that is used in hardware.
66

77
(For editors)
88
In this document:
@@ -182,7 +182,7 @@ behind this approach is that a cgroup that aggressively uses a shared
182182
page will eventually get charged for it (once it is uncharged from
183183
the cgroup that brought it in -- this will happen on memory pressure).
184184

185-
Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used..
185+
Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used.
186186
When you do swapoff and make swapped-out pages of shmem(tmpfs) to
187187
be backed into memory in force, charges for pages are accounted against the
188188
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
214214
OS point of view.
215215

216216
* What happens when a cgroup hits memory.memsw.limit_in_bytes
217-
When a cgroup his memory.memsw.limit_in_bytes, it's useless to do swap-out
217+
When a cgroup hits memory.memsw.limit_in_bytes, it's useless to do swap-out
218218
in this cgroup. Then, swap-out will not be done by cgroup routine and file
219219
caches are dropped. But as mentioned above, global LRU can do swapout memory
220220
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
491491
cgroup filesystem. Consider for example, the following cgroup filesystem
492492
hierarchy
493493

494-
root
494+
root
495495
/ | \
496-
/ | \
497-
a b c
498-
| \
499-
| \
500-
d e
496+
/ | \
497+
a b c
498+
| \
499+
| \
500+
d e
501501

502502
In the diagram above, with hierarchical accounting enabled, all memory
503503
usage of e, is accounted to its ancestors up until the root (i.e, c and root),

0 commit comments

Comments
 (0)