sched-ext / scx

sched_ext schedulers and tools
https://bit.ly/scx_slack
GNU General Public License v2.0
691 stars 48 forks source link

scx_lavd: properly check for idle CPUs in pick_cpu() #369

Closed arighi closed 2 weeks ago

arighi commented 2 weeks ago

It seems that we are not updating is_idle when we find an idle CPU with pick_cpu(), causing unnecessary rescheduling events when select_cpu() is called.

To resolve this, ensure that the is_idle state is correctly set. Additionally, always ensure that the task is dispatched to the local DSQ immediately upon finding (and reserving) an idle CPU.