mirror of
https://github.com/containers/podman.git
synced 2025-09-27 00:34:32 +08:00
podman: add new cgroup mode split
When running under systemd there is no need to create yet another cgroup for the container. With conmon-delegated the current cgroup will be split in two sub cgroups: - supervisor - container The supervisor cgroup will hold conmon and the podman process, while the container cgroup is used by the OCI runtime (using the cgroupfs backend). Closes: https://github.com/containers/libpod/issues/6400 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -78,9 +78,12 @@ If the host uses cgroups v1, the default is set to **host**. On cgroups v2 the
|
||||
**--cgroups**=*mode*
|
||||
|
||||
Determines whether the container will create CGroups.
|
||||
Valid values are *enabled*, *disabled*, *no-conmon*, which the default being *enabled*.
|
||||
Valid values are *enabled*, *disabled*, *no-conmon*, *split*, which the default being *enabled*.
|
||||
|
||||
The *enabled* option will create a new cgroup under the cgroup-parent.
|
||||
The *disabled* option will force the container to not create CGroups, and thus conflicts with CGroup options (**--cgroupns** and **--cgroup-parent**).
|
||||
The *no-conmon* option disables a new CGroup only for the conmon process.
|
||||
The *split* option splits the current cgroup in two sub-cgroups: one for conmon and one for the container payload. It is not possible to set *--cgroup-parent* with *split*.
|
||||
|
||||
**--cgroup-parent**=*path*
|
||||
|
||||
|
@ -89,14 +89,16 @@ Set the cgroup namespace mode for the container.
|
||||
|
||||
If the host uses cgroups v1, the default is set to **host**. On cgroups v2, the default is **private**.
|
||||
|
||||
**--cgroups**=**enabled**|**disabled**|**no-conmon**
|
||||
**--cgroups**=**enabled**|**disabled**|**no-conmon**|**split**
|
||||
|
||||
Determines whether the container will create CGroups.
|
||||
|
||||
Default is **enabled**. The **disabled** option will force the container
|
||||
to not create CGroups, and thus conflicts with CGroup options
|
||||
(**--cgroupns** and **--cgroup-parent**).
|
||||
Default is **enabled**.
|
||||
|
||||
The **enabled** option will create a new cgroup under the cgroup-parent.
|
||||
The **disabled** option will force the container to not create CGroups, and thus conflicts with CGroup options (**--cgroupns** and **--cgroup-parent**).
|
||||
The **no-conmon** option disables a new CGroup only for the **conmon** process.
|
||||
The **split** option splits the current cgroup in two sub-cgroups: one for conmon and one for the container payload. It is not possible to set **--cgroup-parent** with **split**.
|
||||
|
||||
**--cgroup-parent**=*path*
|
||||
|
||||
|
Reference in New Issue
Block a user