Must echo a task id to the cgroups' tasks file, but not to a directory.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
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>
# cd /sys/fs/cgroup
# mkdir g1
# cd /sys/fs/cgroup
# mkdir g1
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
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