[Devel] [PATCH] cgroup : cgroups/cpuacct.txt : Add how to remove accouting group

Masanari Iida standby24x7 at gmail.com
Wed Aug 4 09:38:42 PDT 2010


This patch adds an exmaple of how to remove accounting group
in Documentations/cgroup/cpuacct.txt

Signed-off-by: Masanari Iida <standby24x7 at gmail.com>

---
 Documentation/cgroups/cpuacct.txt |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/Documentation/cgroups/cpuacct.txt b/Documentation/cgroups/cpuacct.txt
index 152350b..cb14664 100644
--- a/Documentation/cgroups/cpuacct.txt
+++ b/Documentation/cgroups/cpuacct.txt
@@ -48,3 +48,12 @@ system times. This has two side effects:
   against concurrent writes.
 - It is possible to see slightly outdated values for user and system times
   due to the batch processing nature of percpu_counter.
+
+To remove the accounting group, move back the shell process to the parent
+accounting group. Then use rmdir to remove the group.
+
+# cat /cgroups/g1/tasks
+5961
+
+# echo 5961 > /cgroups/tasks 
+# rmdir /cgroups/g1
-- 
1.6.2.5

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list