mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-27 20:18:57 +00:00
docs: cpu: resources: fix vcpu calculation formula
The formula is not updated according on how is done in kata-runtime. Fixes: #489 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
16efde2004
commit
3fe8660a9a
@ -130,7 +130,7 @@ more vCPUs, you can add more using [docker update][4].
|
|||||||
## Container with CPU constraint
|
## Container with CPU constraint
|
||||||
|
|
||||||
The runtime calculates the number of vCPUs required by a container with CPU
|
The runtime calculates the number of vCPUs required by a container with CPU
|
||||||
constraints using the following formula: `(quota + (period -1)) / period`, where
|
constraints using the following formula: `vCPUs = ceiling( quota / period )`, where
|
||||||
`quota` specifies the number of microseconds per CPU Period that the container is
|
`quota` specifies the number of microseconds per CPU Period that the container is
|
||||||
guaranteed CPU access and `period` specifies the CPU CFS scheduler period of time
|
guaranteed CPU access and `period` specifies the CPU CFS scheduler period of time
|
||||||
in microseconds. The result determines the number of vCPU to hot plug into the
|
in microseconds. The result determines the number of vCPU to hot plug into the
|
||||||
|
Loading…
Reference in New Issue
Block a user