mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 05:30:24 +00:00
scx_rlfifo: operate in a more work-conserving way
Make scx_rlfifo even simpler and keep dispatching tasks even if the CPUs are all busy. This allows to better stress test the scx_rustland_core backend, by using both the per-CPU DSQs and the global shared DSQ. Signed-off-by: Andrea Righi <andrea.righi@linux.dev>
This commit is contained in:
parent
b07de1d7d5
commit
763da6ab55
@ -132,11 +132,6 @@ impl<'a> Scheduler<'a> {
|
||||
|
||||
// Dispatch the task.
|
||||
self.bpf.dispatch_task(&dispatched_task).unwrap();
|
||||
|
||||
// Stop dispatching if all the CPUs are busy (select_cpu() couldn't find an idle CPU).
|
||||
if cpu < 0 {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Notify the BPF component that tasks have been dispatched.
|
||||
|
Loading…
Reference in New Issue
Block a user