freezersubsystem suspends or resumes tasks in a cgroup.
freezer.stateis only available in non-root cgroups and has three possible values:
FROZEN— tasks in the cgroup are suspended.
FREEZING— the system is in the process of suspending tasks in the cgroup.
THAWED— tasks in the cgroup have resumed.
To suspend a specific process:
- Move that process to a cgroup in a hierarchy which has the
freezersubsystem attached to it.
- Freeze that particular cgroup to suspend the process contained in it.
It is not possible to move a process into a suspended (frozen) cgroup.
Note that while the
THAWEDvalues can be written to
FREEZINGcannot be written, only read.