Skip to contentSkip to conversation

cgroup : cgroups/cpuacct.txt : Add how to remove accouting group

PATCH New Masanari Iida 1 participant 1 message Aug 4, 2010 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cgroup : cgroups/cpuacct.txt : Add how to remove accouting group

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

---
 Documentation/cgroups/cpuacct.txt |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/cgroups/cpuacct.txt +9 -0
index 152350b..cb14664 100644
@@ -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
Signature · 1 line
1.6.2.5