Skip to content
Snippets Groups Projects
Commit 845502d2 authored by SeongJae Park's avatar SeongJae Park Committed by Jonathan Corbet
Browse files

cgroups: Documentation: fix wrong cgroupfs paths


Few paths used as example to describe cgroupfs usage have been wrong
from f6e07d38 ("Documentation: update cgroupfs mount point") by
mistake. This patch fix those trivial wrong paths.

Signed-off-by: default avatarSeongJae Park <sj38.park@gmail.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 04a3302b
No related branches found
No related tags found
No related merge requests found
...@@ -312,10 +312,10 @@ the "cpuset" cgroup subsystem, the steps are something like: ...@@ -312,10 +312,10 @@ the "cpuset" cgroup subsystem, the steps are something like:
2) mkdir /sys/fs/cgroup/cpuset 2) mkdir /sys/fs/cgroup/cpuset
3) mount -t cgroup -ocpuset cpuset /sys/fs/cgroup/cpuset 3) mount -t cgroup -ocpuset cpuset /sys/fs/cgroup/cpuset
4) Create the new cgroup by doing mkdir's and write's (or echo's) in 4) Create the new cgroup by doing mkdir's and write's (or echo's) in
the /sys/fs/cgroup virtual file system. the /sys/fs/cgroup/cpuset virtual file system.
5) Start a task that will be the "founding father" of the new job. 5) Start a task that will be the "founding father" of the new job.
6) Attach that task to the new cgroup by writing its PID to the 6) Attach that task to the new cgroup by writing its PID to the
/sys/fs/cgroup/cpuset/tasks file for that cgroup. /sys/fs/cgroup/cpuset tasks file for that cgroup.
7) fork, exec or clone the job tasks from this founding father task. 7) fork, exec or clone the job tasks from this founding father task.
For example, the following sequence of commands will setup a cgroup For example, the following sequence of commands will setup a cgroup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment