Show Table of Contents
2.4. 卸载层级
您还可以使用
umount 命令卸载 cgroup 中的层级:
~]# umount /cgroup/name
例如:
~]# umount /cgroup/cpu_and_mem
如果该层级目前为空(即它只包含 root cgroup),则在卸载它时会取消激活该层级。如果该层级包含任意其他 cgroup,该层级在内核中仍保持活跃,即使不再挂载它也是如此。
要删除层级,请确定您在卸载该层级前删除所有子 cgroup ,或者使用
cgclear 命令,它可在层级非空时也可取消激活层级 -- 请参考 第 2.11 节 “卸载控制组群”。

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.