diff --git a/venus-worker/cleanup_orphan.sh b/venus-worker/cleanup_orphan.sh new file mode 100755 index 00000000..f7939e53 --- /dev/null +++ b/venus-worker/cleanup_orphan.sh @@ -0,0 +1,7 @@ +prefix="/sys/fs/cgroup/cpuset/" +for orphan in `ls -d ${prefix}vc-worker/sub-*/` +do + group=${orphan/#$prefix} + echo "rm orphan group ${group}" + cgdelete cpuset:${group} +done