]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/sched_ext: Add test for DL server total_bw consistency
authorJoel Fernandes <joelagnelf@nvidia.com>
Mon, 26 Jan 2026 09:59:05 +0000 (10:59 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 3 Feb 2026 11:04:18 +0000 (12:04 +0100)
commitdd6a37e8faa723c680cb8615efa5b042691b927f
treecb63144fe0ff03a1fcb2ccdee2c9e99b9523a235
parentbe621a76341caa911ff98175114ff072618d7d4a
selftests/sched_ext: Add test for DL server total_bw consistency

Add a new kselftest to verify that the total_bw value in
/sys/kernel/debug/sched/debug remains consistent across all CPUs
under different sched_ext BPF program states:

1. Before a BPF scheduler is loaded
2. While a BPF scheduler is loaded and active
3. After a BPF scheduler is unloaded

The test runs CPU stress threads to ensure DL server bandwidth
values stabilize before checking consistency. This helps catch
potential issues with DL server bandwidth accounting during
sched_ext transitions.

Co-developed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/20260126100050.3854740-8-arighi@nvidia.com
tools/testing/selftests/sched_ext/Makefile
tools/testing/selftests/sched_ext/total_bw.c [new file with mode: 0644]