pub struct SchedulerConfig {Show 17 fields
pub aging_factor: f64,
pub p_min_ms: f64,
pub p_max_ms: f64,
pub estimate_default_ms: f64,
pub estimate_unknown_ms: f64,
pub w_min: f64,
pub w_max: f64,
pub weight_default: f64,
pub weight_unknown: f64,
pub wait_starve_ms: f64,
pub starve_boost_ratio: f64,
pub smith_enabled: bool,
pub force_fifo: bool,
pub max_queue_size: usize,
pub preemptive: bool,
pub time_quantum: f64,
pub enable_logging: bool,
}Expand description
Configuration for the scheduler.
Fields§
§aging_factor: f64Aging factor: how fast priority increases with wait time. Higher = faster aging = more fairness, less optimality. Default: 0.1.
p_min_ms: f64Minimum processing-time estimate (ms). Default: 0.05.
p_max_ms: f64Maximum processing-time estimate (ms). Default: 5000.
estimate_default_ms: f64Default estimate (ms) when estimate source is Default.
Default: 10.0.
estimate_unknown_ms: f64Default estimate (ms) when estimate source is Unknown.
Default: 1000.0.
w_min: f64Minimum weight clamp. Default: 1e-6.
w_max: f64Maximum weight clamp. Default: 100.
weight_default: f64Default weight when weight source is Default.
Default: 1.0.
weight_unknown: f64Default weight when weight source is Unknown.
Default: 1.0.
wait_starve_ms: f64Starvation guard threshold (ms). 0 disables the guard. Default: 500.
starve_boost_ratio: f64Multiplier applied to base ratio when starvation guard triggers. Default: 1.5.
smith_enabled: boolEnable Smith-rule weighting. If false, behaves like SRPT.
force_fifo: boolForce FIFO ordering (arrival sequence) regardless of other settings. Useful for safety overrides and debugging.
max_queue_size: usizeMaximum queue size. Default: 10_000.
preemptive: boolEnable preemption. Default: true.
time_quantum: f64Time quantum for round-robin fallback (when priorities are equal). Default: 10.0.
enable_logging: boolEnable logging. Default: false.
Implementations§
Source§impl SchedulerConfig
impl SchedulerConfig
Sourcepub fn mode(&self) -> SchedulingMode
pub fn mode(&self) -> SchedulingMode
Effective scheduling mode with FIFO override.
Trait Implementations§
Source§impl Clone for SchedulerConfig
impl Clone for SchedulerConfig
Source§fn clone(&self) -> SchedulerConfig
fn clone(&self) -> SchedulerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more