cgroup: Add test_cpucg_nested_weight_underprovisioned() testcase
authorDavid Vernet <void@manifault.com>
Sat, 23 Apr 2022 12:30:51 +0000 (05:30 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 25 Apr 2022 17:27:31 +0000 (07:27 -1000)
commit89ca0efa8468f230df965257d0c03fc3664b4331
tree9cb6b5797fdbff0bcbf1c7efc9f0ddf90303b18b
parentb76ee4f576ebfbab3891e51a531ec7ad7ef10a7a
cgroup: Add test_cpucg_nested_weight_underprovisioned() testcase

The cgroup cpu controller test suite currently contains a testcase called
test_cpucg_nested_weight_underprovisioned() which verifies the expected
behavior of cpu.weight when applied to nested cgroups. That first testcase
validated the expected behavior when the processes in the leaf cgroups
overcommitted the system. This patch adds a complementary
test_cpucg_nested_weight_underprovisioned() testcase which validates
behavior when those leaf cgroups undercommit the system.

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