Skip to content

Commit caa790b

Browse files
chrissamuelJiri Kosina
authored andcommitted
trivial: cgroups: documentation typo and spelling corrections
Minor typo and spelling corrections fixed whilst reading to learn about cgroups capabilities. Signed-off-by: Chris Samuel <chris@csamuel.org> Acked-by: Paul Menage <menage@google.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent c0496f4 commit caa790b

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎Documentation/cgroups/cgroups.txt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ hierarchy, and a set of subsystems; each subsystem has system-specific
5656
state attached to each cgroup in the hierarchy. Each hierarchy has
5757
an instance of the cgroup virtual filesystem associated with it.
5858

59-
At any one time there may be multiple active hierachies of task
59+
At any one time there may be multiple active hierarchies of task
6060
cgroups. Each hierarchy is a partition of all tasks in the system.
6161

6262
User level code may create and destroy cgroups by name in an
@@ -124,10 +124,10 @@ following lines:
124124
/ \
125125
Prof (15%) students (5%)
126126

127-
Browsers like firefox/lynx go into the WWW network class, while (k)nfsd go
127+
Browsers like Firefox/Lynx go into the WWW network class, while (k)nfsd go
128128
into NFS network class.
129129

130-
At the same time firefox/lynx will share an appropriate CPU/Memory class
130+
At the same time Firefox/Lynx will share an appropriate CPU/Memory class
131131
depending on who launched it (prof/student).
132132

133133
With the ability to classify tasks differently for different resources
@@ -325,7 +325,7 @@ and then start a subshell 'sh' in that cgroup:
325325
Creating, modifying, using the cgroups can be done through the cgroup
326326
virtual filesystem.
327327

328-
To mount a cgroup hierarchy will all available subsystems, type:
328+
To mount a cgroup hierarchy with all available subsystems, type:
329329
# mount -t cgroup xxx /dev/cgroup
330330

331331
The "xxx" is not interpreted by the cgroup code, but will appear in
@@ -521,7 +521,7 @@ always handled well.
521521
void post_clone(struct cgroup_subsys *ss, struct cgroup *cgrp)
522522
(cgroup_mutex held by caller)
523523

524-
Called at the end of cgroup_clone() to do any paramater
524+
Called at the end of cgroup_clone() to do any parameter
525525
initialization which might be required before a task could attach. For
526526
example in cpusets, no task may attach before 'cpus' and 'mems' are set
527527
up.

‎Documentation/cgroups/cpusets.txt‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Cpusets extends these two mechanisms as follows:
131131
- The hierarchy of cpusets can be mounted at /dev/cpuset, for
132132
browsing and manipulation from user space.
133133
- A cpuset may be marked exclusive, which ensures that no other
134-
cpuset (except direct ancestors and descendents) may contain
134+
cpuset (except direct ancestors and descendants) may contain
135135
any overlapping CPUs or Memory Nodes.
136136
- You can list all the tasks (by pid) attached to any cpuset.
137137

@@ -226,7 +226,7 @@ nodes with memory--using the cpuset_track_online_nodes() hook.
226226
--------------------------------
227227

228228
If a cpuset is cpu or mem exclusive, no other cpuset, other than
229-
a direct ancestor or descendent, may share any of the same CPUs or
229+
a direct ancestor or descendant, may share any of the same CPUs or
230230
Memory Nodes.
231231

232232
A cpuset that is mem_exclusive *or* mem_hardwall is "hardwalled",
@@ -427,7 +427,7 @@ child cpusets have this flag enabled.
427427
When doing this, you don't usually want to leave any unpinned tasks in
428428
the top cpuset that might use non-trivial amounts of CPU, as such tasks
429429
may be artificially constrained to some subset of CPUs, depending on
430-
the particulars of this flag setting in descendent cpusets. Even if
430+
the particulars of this flag setting in descendant cpusets. Even if
431431
such a task could use spare CPU cycles in some other CPUs, the kernel
432432
scheduler might not consider the possibility of load balancing that
433433
task to that underused CPU.
@@ -531,9 +531,9 @@ be idle.
531531

532532
Of course it takes some searching cost to find movable tasks and/or
533533
idle CPUs, the scheduler might not search all CPUs in the domain
534-
everytime. In fact, in some architectures, the searching ranges on
534+
every time. In fact, in some architectures, the searching ranges on
535535
events are limited in the same socket or node where the CPU locates,
536-
while the load balance on tick searchs all.
536+
while the load balance on tick searches all.
537537

538538
For example, assume CPU Z is relatively far from CPU X. Even if CPU Z
539539
is idle while CPU X and the siblings are busy, scheduler can't migrate
@@ -601,7 +601,7 @@ its new cpuset, then the task will continue to use whatever subset
601601
of MPOL_BIND nodes are still allowed in the new cpuset. If the task
602602
was using MPOL_BIND and now none of its MPOL_BIND nodes are allowed
603603
in the new cpuset, then the task will be essentially treated as if it
604-
was MPOL_BIND bound to the new cpuset (even though its numa placement,
604+
was MPOL_BIND bound to the new cpuset (even though its NUMA placement,
605605
as queried by get_mempolicy(), doesn't change). If a task is moved
606606
from one cpuset to another, then the kernel will adjust the tasks
607607
memory placement, as above, the next time that the kernel attempts

‎Documentation/cgroups/devices.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ suffice, but we can decide the best way to adequately restrict
4242
movement as people get some experience with this. We may just want
4343
to require CAP_SYS_ADMIN, which at least is a separate bit from
4444
CAP_MKNOD. We may want to just refuse moving to a cgroup which
45-
isn't a descendent of the current one. Or we may want to use
45+
isn't a descendant of the current one. Or we may want to use
4646
CAP_MAC_ADMIN, since we really are trying to lock down root.
4747

4848
CAP_SYS_ADMIN is needed to modify the whitelist or move another

‎Documentation/cgroups/memory.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ will be charged as a new owner of it.
302302
unevictable - # of pages cannot be reclaimed.(mlocked etc)
303303

304304
Below is depend on CONFIG_DEBUG_VM.
305-
inactive_ratio - VM inernal parameter. (see mm/page_alloc.c)
305+
inactive_ratio - VM internal parameter. (see mm/page_alloc.c)
306306
recent_rotated_anon - VM internal parameter. (see mm/vmscan.c)
307307
recent_rotated_file - VM internal parameter. (see mm/vmscan.c)
308308
recent_scanned_anon - VM internal parameter. (see mm/vmscan.c)

0 commit comments

Comments
 (0)