Re: [PATCH 4/5] sched/deadline: Don't charge core-sched forced idle to the DL servers
From: Karl Mehltretter
Date: Tue Nov 24 2026 - 03:07:52 EST
On Thu, 12 Nov 2026 18:15:47 +0200, Fernand Sieber wrote:
> + /*
> + * Forced idle was not time available to any class on this rq, so
> + * don't let the deferred servers consume their runtime on it.
> + */
> + if (forced_idle_rq(rq))
> + return;
When forced idle ends because the sibling's cookied task blocks,
pick_next_task() clears core_forceidle_count before the idle CPU runs
update_curr_idle() in put_prev_task_idle().
forced_idle_rq(rq) sees 0 and charges the forced-idle time since
idle->se.exec_start to the server.
cs_dl_server_test passes because its FIFO child never blocks.
With a 1000 Hz tick on tip/sched/core c47af8566706 in a 2-core, 2-thread KVM
guest, letting the FIFO task spin 800 us and sleep 10 us drops the CFS share
from 5.0% to 1.7%.
Thanks,
Karl