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
test/ctr.bats: fix wrt new CPU units to weight conversion
It's a long story (see [1], [2], [3], [4]) but both runc and crun is
changing the formula to convert cgroup v1 CPU shares to cgroup v2 CPU
weight, and it causes a failure in "ctr update resources" test, because
it relies on the old conversion formula.
Let's modify it so it works either the old or the new conversion.
(Ultimately, with cgroup v2 we should switch to setting
unified.cpu.weight directly).
[1]: kubernetes/kubernetes#131216
[2]: opencontainers/runc#4772
[3]: opencontainers/cgroups#20
[4]: containers/crun#1767
Signed-off-by: Kir Kolyshkin <[email protected]>
0 commit comments