Re: [PATCH v12 42/43] selftests/sched: Test parameter changes in deadline_bw_test
From: Mathieu Desnoyers
Date: Tue Dec 01 2026 - 11:20:25 EST
> Does calling set_other(0) at the start of T's second 500ms constrained
> period cause measured() to probe before T's bandwidth is released?
Yes. T keeps its bandwidth until its third period, at about 1000ms,
and measured() probes at about 800ms. A run with timestamps shows it.
The five cases still pass because T takes 2% of the CPU. The probe
counts tasks of 10%, and T fits in the room left after the last one. So
the count does not change. With sched_rt_runtime_us at 950000, all five
cases fail.
In v13, each case will wait for the third period of T before it returns:
- reenter_pi_blocked_in_gap, reenter_asleep_in_gap and
reenter_asleep_late_in_gap, in v13;
- pi_owner_asleep_in_gap and pi_owner_wakes_in_gap_later, in the PI
series, which will follow v13.
They then pass at both values of sched_rt_runtime_us.
Thanks,
Mathieu