scx_bpfland: adjust default time slice to 5ms

Reduce the default time slice down to 5ms for a faster reaction and
system responsiveness when the system is overcomissioned.

This also helps to provide a more predictable level of performance.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
Andrea Righi 2024-07-02 08:52:44 +02:00
parent 7d15e3171c
commit cef6ca93cf
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ const volatile bool debug;
/* /*
* Default task time slice. * Default task time slice.
*/ */
const volatile u64 slice_ns = SCX_SLICE_DFL; const volatile u64 slice_ns = 5000000;
/* /*
* Time slice used when system is over commissioned. * Time slice used when system is over commissioned.

View File

@ -59,7 +59,7 @@ struct Opts {
exit_dump_len: u32, exit_dump_len: u32,
/// Maximum scheduling slice duration in microseconds. /// Maximum scheduling slice duration in microseconds.
#[clap(short = 's', long, default_value = "20000")] #[clap(short = 's', long, default_value = "5000")]
slice_us: u64, slice_us: u64,
/// Minimum scheduling slice duration in microseconds. /// Minimum scheduling slice duration in microseconds.