diff options
author | Jan Safranek <jsafrane@redhat.com> | 2009-08-04 14:28:29 +0200 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-08-06 11:57:48 +0530 |
commit | 5aa993cef39ffd59eae1e363c2a731a03507b0d3 (patch) | |
tree | 65d888840ed575249972cb16d91da91ebd39d26e /src/api.c | |
parent | 7250e51016532ce918c2ac701e389283cd26cfdc (diff) | |
download | libcg-5aa993cef39ffd59eae1e363c2a731a03507b0d3.tar.gz libcg-5aa993cef39ffd59eae1e363c2a731a03507b0d3.tar.xz libcg-5aa993cef39ffd59eae1e363c2a731a03507b0d3.zip |
Refactor cgclear to use new recursive delete
Let's rework cgroup_config_unload_controller to use the brand new recursive
removal of groups. It saves *lot of* fopen() and fclose() calls:
On my (semi-broken) Fedora 11 with 196 running processes and 3 cgroup
hierarchies, the old cgclear does 668 open("*/tasks"). With the
optimized cgclear, I can see just 22 open("*/tasks") calls.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Diffstat (limited to 'src/api.c')
0 files changed, 0 insertions, 0 deletions