scx_bpfland: tune default settings

Adjust some default settings after the rework done with commit 112a5d4
("scx_bpfland: rework lowlatency mode to adjust tasks priority").

Signed-off-by: Andrea Righi <andrea.righi@linux.dev>
This commit is contained in:
Andrea Righi 2024-10-11 00:18:36 +02:00
parent 4d68133f3b
commit 48bbcd24dd
2 changed files with 7 additions and 7 deletions

View File

@ -34,7 +34,7 @@ const volatile bool debug;
/*
* Default task time slice.
*/
const volatile u64 slice_max = 5ULL * NSEC_PER_MSEC;
const volatile u64 slice_max = 20ULL * NSEC_PER_MSEC;
/*
* Time slice used when system is over commissioned.
@ -48,7 +48,7 @@ const volatile u64 slice_min = 1ULL * NSEC_PER_MSEC;
* tasks at the cost of making regular and newly created tasks less responsive
* (0 = disabled).
*/
const volatile s64 slice_lag = 5ULL * NSEC_PER_MSEC;
const volatile s64 slice_lag = 20ULL * NSEC_PER_MSEC;
/*
* When enabled always dispatch all kthreads directly.
@ -103,7 +103,7 @@ volatile s64 cpufreq_perf_lvl;
* consuming a task, the scheduler will be forced to consume a task from the
* corresponding DSQ.
*/
const volatile u64 starvation_thresh_ns = 5000ULL * NSEC_PER_MSEC;
const volatile u64 starvation_thresh_ns = 1000ULL * NSEC_PER_MSEC;
static u64 starvation_shared_ts;
/*

View File

@ -120,11 +120,11 @@ struct Opts {
exit_dump_len: u32,
/// Maximum scheduling slice duration in microseconds.
#[clap(short = 's', long, default_value = "5000")]
#[clap(short = 's', long, default_value = "20000")]
slice_us: u64,
/// Minimum scheduling slice duration in microseconds.
#[clap(short = 'S', long, default_value = "500")]
#[clap(short = 'S', long, default_value = "1000")]
slice_us_min: u64,
/// Maximum time slice lag in microseconds.
@ -135,7 +135,7 @@ struct Opts {
/// A negative value can make performance more consistent, but it can also reduce the
/// responsiveness of interactive tasks (by smoothing the effect of the vruntime scheduling and
/// making the task ordering closer to a FIFO).
#[clap(short = 'l', long, allow_hyphen_values = true, default_value = "0")]
#[clap(short = 'l', long, allow_hyphen_values = true, default_value = "20000")]
slice_us_lag: i64,
/// With lowlatency enabled, instead of classifying tasks as interactive or non-interactive,
@ -183,7 +183,7 @@ struct Opts {
/// Prevent starvation by making sure that at least one lower priority task is scheduled every
/// starvation_thresh_us (0 = disable starvation prevention).
#[clap(short = 't', long, default_value = "5000")]
#[clap(short = 't', long, default_value = "1000")]
starvation_thresh_us: u64,
/// Enable stats monitoring with the specified interval.