cade04d3f6
This PR tweaks the TestCpusetManager_AddAlloc unit test to not break when being run on a machine using cgroupsv2. The behavior of writing an empty cpuset.cpu changes in cgroupv2, where such a group now inherits the value of its parent group, rather than remaining empty. The test in question was written such that a task would consume all available cores shared on an alloc, causing the empty set to be written to the shared group, which works fine on cgroupsv1 but breaks on cgroupsv2. By adjusting the test to consume only 1 core instead of all cores, it no longer triggers that edge case. The actual fix for the new cgroupsv2 behavior will be in #11933 |
||
---|---|---|
.. | ||
cgutil_default.go | ||
cgutil_linux.go | ||
cpuset_manager.go | ||
cpuset_manager_default.go | ||
cpuset_manager_linux.go | ||
cpuset_manager_linux_test.go |