Show Table of Contents
2.4. 卸載階層
您可透過執行
umount 指令來卸載控制群組的階層:
~]# umount /cgroup/name
例如:
~]# umount /cgroup/cpu_and_mem
若階層目前是空的(也就是說它只包含了 root 控制群組),該階層將會在卸載時被停用。若階層包含任何其它控制群組,儘管該階層已卸載,它在 kernel 中也會保持為啟用狀態。
若要移除階層,請在卸載階層之前,確認所有子群組皆已移除,或使用
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.