Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e47f9d84 authored by Wanlong Gao's avatar Wanlong Gao Committed by Linus Torvalds
Browse files

Documentation: fix echo command in cgroups/cpuacct.txt



Must echo a task id to the cgroups' tasks file, but not to a directory.

Signed-off-by: default avatarWanlong Gao <gaowanlong@cn.fujitsu.com>
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 b4db920c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ New accounting groups can be created under the parent group /sys/fs/cgroup.

# cd /sys/fs/cgroup
# mkdir g1
# echo $$ > g1
# echo $$ > g1/tasks

The above steps create a new group g1 and move the current shell
process (bash) into it. CPU time consumed by this bash and its children