scx/rust
Andrea Righi e10f8a2d8e scx_rustland_core: introduce per-task time slice
Provide a way to set a different time slice per-task, by adding a new
attribute slice_ns to the DispatchedTask struct.

This attribute determines the time slice assigned to the task, if it is
set to 0 then the global time slice (either the default one or the
effective one, if set) will be used.

At the same time, remove the payload attribute, that is basically unused
(scx_rustland uses it to send the task's vruntime to the BPF dispatcher
for debugging purposes, but it's not very useful anymore at this point).

In the future we may introduce a proper interface to attach a custom
payload to each task with a proper interface.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2024-03-03 15:06:56 +01:00
..
scx_rustland_core scx_rustland_core: introduce per-task time slice 2024-03-03 15:06:56 +01:00
scx_utils Add libbpf as a submodule 2024-03-01 12:39:35 -08:00
meson.build rust: introduce scx_rustland_core crate 2024-02-28 17:49:44 +01:00