Skip to contentSkip to conversation

selftests/cgroup: add settings file with a longer timeout

PATCH Applied Vishal Chourasia 2 participants 2 messages Sep 28

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/cgroup: add settings file with a longer timeout

The cgroup selftests lack a settings file, causing the kselftest runner to apply its default 45s timeout. The test_cpu binary now exceeds this limit, resulting in timeout failures that prevent the final test cases from reporting results:

not ok 2 selftests: cgroup: test_cpu # TIMEOUT 45 seconds

Test execution times:

|Test                  | Duration             |
|----------------------|--------------------  |
|cpu.weight (×4)       | ~10s each            |
|test_cpucg_stats      |  2s CPU time         |
|test_cpucg_nice       |  2s CPU time         |
|test_cpucg_max        |  1000/HZ seconds     |
|test_cpucg_max_nested |  1000/HZ seconds     |

Total runtime: ~46s at HZ=1000, ~64s at HZ=100

When executed independently, all nine test cases complete successfully (46.2s on a ppc64le HZ=1000 guest).

Introduce a settings file that increases the timeout to 120 seconds, providing sufficient margin above the HZ=100 worst-case scenario.

---
 tools/testing/selftests/cgroup/settings | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/cgroup/settings
tools/testing/selftests/cgroup/settings new file +1 -0
new file mode 100644
index 000000000000..6091b45d226b
@@ -0,0 +1 @@
+timeout=120
Signature · 1 line
2.54.0
maintainer Applied
#1 lore raw

Applied to cgroup/for-7.4.

Thanks.

--
tejun