scx/rust
Andrea Righi e4b13b2aa6 scx_rustland_core: reduce dispatch overhead
Kick CPUs in the dispatch path only when needed (typically when tasks
are bounced to other CPUs).

Moreover, avoid to consume all the tasks dispatched at once.

This seems to reduce the BPF overhead (according to bpftop), going from
~10% CPU usage down to ~6% CPU usage of rustland_dispatch() on an over
commissioned system, without introducing any measureable performance
regression.

Tested-by: SoulHarsh007 <harsh.peshwani@outlook.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2024-06-25 14:02:39 +02:00
..
scx_rustland_core scx_rustland_core: reduce dispatch overhead 2024-06-25 14:02:39 +02:00
scx_utils topo: Return nr_cpu_ids from host Topology 2024-06-21 12:57:13 -05:00
meson.build rust: introduce scx_rustland_core crate 2024-02-28 17:49:44 +01:00