]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: Adding test_cpucg_nested_weight_overprovisioned() testcase
authorDavid Vernet <void@manifault.com>
Sat, 23 Apr 2022 12:30:50 +0000 (05:30 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 25 Apr 2022 17:27:31 +0000 (07:27 -1000)
commit296e2e294812565867b5cd969c21945a0ce15d4c
tree4752431f50df11f5cffea0b012f5ae9d96f087a6
parent79c62bfec3f8f16952c4e71099090e630aec6f2c
cgroup: Adding test_cpucg_nested_weight_overprovisioned() testcase

The cgroup cpu controller tests in
tools/testing/selftests/cgroup/test_cpu.c have some testcases that validate
the expected behavior of setting cpu.weight on cgroups, and then hogging
CPUs. What is still missing from the suite is a testcase that validates
nested cgroups. This patch adds test_cpucg_nested_weight_overprovisioned(),
which validates that a parent's cpu.weight will override its children if
they overcommit a host, and properly protect any sibling groups of that
parent.

Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/test_cpu.c