summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorFernand Sieber <sieberf@amazon.com>2026-11-12 18:15:48 +0200
committerIngo Molnar <mingo@kernel.org>2026-11-23 10:38:26 +0100
commit6d6fca38f51f414b75201d07b9ad4003f714551e (patch)
tree308b990aca8394243af0f2dc0f70ed23a19607de /tools/lib/python/kdoc/parse_data_structs.py
parentf4626e1c3c14306453e89bfc7799bd295f38b402 (diff)
selftests/sched: Add a core-sched forced-idle DL server test
Nothing in selftests notices a deferred DL server that is charged for core-sched forced idle and so never activates: the fair server keeps its reservation in debugfs while the CFS tasks it reserves for get a few hundredths of a percent of a CPU. Add cs_dl_server_test. It pins a SCHED_FIFO 50 spinner with its own core cookie to one SMT sibling and an uncookied CFS spinner to the other, so the second sibling is forced idle whenever the FIFO task runs, then checks the CFS task's share of that CPU over five seconds against the fair server's reservation under /sys/kernel/debug/sched/. The floor is half the reservation, 2.5% by default, since every slice the server gets costs a forced-idle hand-over. It skips without SMT, without core scheduling, or without the debugfs reservation. At 2 cores x 2 threads the share measures 4.0-5.2% once both this idle charge and the core-wide DL server pick are fixed, and 0.0% with either missing, so it passes only with both. Signed-off-by: Fernand Sieber <sieberf@amazon.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://patch.msgid.link/20261112161548.78189-6-sieberf@amazon.com
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions