Skip to content

Commit

Permalink
scx_rlfifo: operate in a more work-conserving way
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
arighi committed Oct 16, 2024
1 parent 9d31499 commit ff41cae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scheds/rust/scx_rlfifo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ff41cae

Please sign in to comment.