From 3fe8660a9aa73eab5c326d67fff4c1a1b5fda6f4 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Tue, 11 Jun 2019 13:12:23 -0500 Subject: [PATCH] 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 --- design/cpu-constraints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/design/cpu-constraints.md b/design/cpu-constraints.md index 98b88b03dd..4b7da6840b 100644 --- a/design/cpu-constraints.md +++ b/design/cpu-constraints.md @@ -130,7 +130,7 @@ more vCPUs, you can add more using [docker update][4]. ## Container with CPU constraint 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 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