From 6742fa6314fdf448f814d18dac70a638587b75e6 Mon Sep 17 00:00:00 2001 From: Nicolas Vollmar Date: Mon, 27 May 2024 20:11:32 +0200 Subject: T6406: document cpu limit config option --- docs/configuration/container/index.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/configuration/container') diff --git a/docs/configuration/container/index.rst b/docs/configuration/container/index.rst index 4dacc6f4..39d7872c 100644 --- a/docs/configuration/container/index.rst +++ b/docs/configuration/container/index.rst @@ -133,6 +133,17 @@ Configuration - **always**: Restart containers when they exit, regardless of status, retrying indefinitely +.. cfgcmd:: set container name cpus + + This specifies the number of CPU resources the container can use. + + Default is 0 for unlimited. + For example, 1.25 limits the container to use up to 1.25 cores + worth of CPU time. + This can be a decimal number with up to three decimal places. + + The command translates to "--cpus=" when the container is created. + .. cfgcmd:: set container name memory Constrain the memory available to the container. -- cgit v1.2.3 From a983832d14c28888d035e774ee63c2f459b84aa4 Mon Sep 17 00:00:00 2001 From: Nicolas Vollmar Date: Tue, 28 May 2024 08:19:54 +0200 Subject: T6406: rename cpus to cpu --- docs/configuration/container/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/configuration/container') diff --git a/docs/configuration/container/index.rst b/docs/configuration/container/index.rst index 39d7872c..399f2ef5 100644 --- a/docs/configuration/container/index.rst +++ b/docs/configuration/container/index.rst @@ -133,7 +133,7 @@ Configuration - **always**: Restart containers when they exit, regardless of status, retrying indefinitely -.. cfgcmd:: set container name cpus +.. cfgcmd:: set container name cpu-quota This specifies the number of CPU resources the container can use. -- cgit v1.2.3 From a3205cd2ee142ee41239a06acdd2994a3a372de0 Mon Sep 17 00:00:00 2001 From: Nicolas Vollmar Date: Mon, 10 Jun 2024 08:48:04 +0200 Subject: T6219: Add doc for container sysctl parameter --- docs/configuration/container/index.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/configuration/container') diff --git a/docs/configuration/container/index.rst b/docs/configuration/container/index.rst index 399f2ef5..a1672aa7 100644 --- a/docs/configuration/container/index.rst +++ b/docs/configuration/container/index.rst @@ -168,6 +168,17 @@ Configuration setdomainame) - **sys-time**: Permission to set system clock +.. cfgcmd:: set container name sysctl parameter value + + Set container sysctl values. + + The subset of possible parameters are: + + - Kernel Parameters: kernel.msgmax, kernel.msgmnb, kernel.msgmni, kernel.sem, + kernel.shmall, kernel.shmmax, kernel.shmmni, kernel.shm_rmid_forced + - Parameters beginning with fs.mqueue.* + - Parameters beginning with net.* (only if user-defined network is used) + .. cfgcmd:: set container name label