Skip to content

Commit

Permalink
Merge pull request ipfs-force-community#153 from ipfs-force-community…
Browse files Browse the repository at this point in the history
…/feat/dtynn/cgroup_cleanup

chore: add a script for cleaning up orphan sub-groups in cgroup:cpuset
  • Loading branch information
dtynn authored May 10, 2022
2 parents 2fbfa1b + 88b3ed0 commit 90f6ed0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions venus-worker/cleanup_orphan.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 90f6ed0

Please sign in to comment.