Quoting Balbir Singh (bsinghar...@gmail.com): > On Fri, Aug 19, 2011 at 12:49 AM, Serge E. Hallyn > <serge.hal...@canonical.com> wrote: > > Hi, > > > > cgclear seems to assume that the system is frozen while it does its thing. > > I need the following patch in order to get cgclear to both catch all tasks, > > and not spuriously fail bc some task exited. > > > > The patch seems reasonable, has it been tested? If so, I'd be excited > to add an appropriate test case to our test suite. > > Balbir
Hi Balbir, I've tested it on our package in oneiric. Without the patch, running cgclear on any busy system without having it exit with error is basically impossible. Since cgclear must run successfully before the package is willing to remove itself, that prevents people from being able to remove the package. Test case should be pretty simple - start a task in a child of the default cgroup; have that task do a slow forkbomb; start cgclear; have the child exit; cgclear should return an error. To maximize the chances of the timing working out, you could have it be the only child cgroup, and make sure there are a lot of tasks. The bug where this was originally reported is at: https://bugs.launchpad.net/ubuntu/+source/libcgroup/+bug/827279 thanks, -serge ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel