mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] selftests/cgroup: add settings file with a longer timeout
@ 2026-09-28 20:00 Vishal Chourasia
  2026-09-28 20:17 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Vishal Chourasia @ 2026-09-28 20:00 UTC (permalink / raw)
  To: tj, hannes, mkoutny
  Cc: cgroups, linux-kselftest, linux-kernel, Vishal Chourasia

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.

Signed-off-by: Vishal Chourasia <vishalc@linux.ibm.com>
---
 tools/testing/selftests/cgroup/settings | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/cgroup/settings

diff --git a/tools/testing/selftests/cgroup/settings b/tools/testing/selftests/cgroup/settings
new file mode 100644
index 000000000000..6091b45d226b
--- /dev/null
+++ b/tools/testing/selftests/cgroup/settings
@@ -0,0 +1 @@
+timeout=120
-- 
2.54.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-28 20:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 20:00 [PATCH] selftests/cgroup: add settings file with a longer timeout Vishal Chourasia
2026-09-28 20:17 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®