From: Masanari Iida Subject: [PATCH] cgroup : cgroups/cpuacct.txt : Add how to remove accouting group Date: Thu, 5 Aug 2010 01:26:43 +0900 Message-ID: <1280939203-19199-1-git-send-email-standby24x7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Cc: Masanari Iida List-Id: containers.vger.kernel.org This patch adds an exmaple of how to remove accounting group in Documentations/cgroup/cpuacct.txt Signed-off-by: Masanari Iida --- 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