Show Table of Contents
2.6. 删除控制组群
使用
cgdelete 删除 cgroup,其语法与 cgcreate 类似。运行 cgdelete subsystems:path,其中:
- subsystems 是用逗号分开的子系统列表。
- path 是到与该层级相对 root 的 cgroup 的路径。
例如:
~]# cgdelete cpu,net_cls:/test-subgroupcgdelete 还可使用 -r 选项递归删除所有子组群。
删除 cgroup 时,将其所有任务都移动到它的父组群中。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.