[PATCH 1/3] Documentation: fix echo command in cgroups/cpuacct.txt

From: Randy Dunlap
Date: Sat Jul 23 2011 - 13:46:28 EST

From: Wanlong Gao <gaowanlong@xxxxxxxxxxxxxx>

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

Signed-off-by: Wanlong Gao <gaowanlong@xxxxxxxxxxxxxx>
Acked-by: Paul Menage <menage@xxxxxxxxxx>
Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Documentation/cgroups/cpuacct.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-300.orig/Documentation/cgroups/cpuacct.txt
+++ lnx-300/Documentation/cgroups/cpuacct.txt
@@ -23,7 +23,7 @@ New accounting groups can be created und

# 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
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/