You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cgroup v1, the default CPU shares is 1024.
In cgroup v2, the default CPU weight is 100.
When creating a container with 1024 CPU shares, the current formula translates the value to 39, resulting in ~39% of the actual CPU weight it should receive.
To preserve the default values, we should use a different formula: CPUWeight = 1 + ((CPUShares – 2) * 99) / (1024 - 2)