Show Table of Contents
A.6. freezer
freezer 子系统可以暂停或者恢复 cgroup 中的任务。
- freezer.state
freezer.state只能用于非 root cgroup 中,它有三个可能的值:FROZEN—— cgroup 中的任务已被暂停。FREEZING—— 系统正在暂停 cgroup 中的任务。THAWED—— cgroup 中的任务已恢复。
如要暂停某一进程:
- 请将该进程移动到已附加
freezer子系统层级的 cgroup 中。 - 冻结此 cgroup 以便暂停其中的进程。
进程不能移至已暂停(已冻结)的 cgroup 中。
请注意:虽然
FROZEN 和 THAWED 值可写入 freezer.state,但 FREEZING 无法被写入,只能读取。

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.