mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
helpers.bats: cgroups_cpu_burst: check kernel version
On cgroup v2, cpu burst needs kernel >= 5.14 https://github.com/torvalds/linux/commit/f4183717b370ad28dd0c0d74760142b20e6e7931 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -465,6 +465,8 @@ function requires() {
|
||||
p="$CGROUP_CPU_BASE_PATH"
|
||||
f="cpu.cfs_burst_us"
|
||||
elif [ -v CGROUP_V2 ]; then
|
||||
# https://github.com/torvalds/linux/commit/f4183717b370ad28dd0c0d74760142b20e6e7931
|
||||
requires_kernel 5.14
|
||||
p="$CGROUP_BASE_PATH"
|
||||
f="cpu.max.burst"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user