Show Table of Contents
3.4. 删除控制群组
可以用与
cgcreate 句法相似的 cgdelete 指令来移除 cgroup。请以 root 身份运行以下指令:
cgdelete controllers:path
其中:
- controller 是管控器的逗号分隔清单。
- path 是与该层级的根相对的 cgroup 路径。
例如:
~]# cgdelete net_prio:/test-subgroup
指定
-r 选项时,cgdelete 也可以递归式移除所有子群组。
请注意,当您删除一个 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.