Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions crates/scx_loader/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ gaming_mode = []
lowlatency_mode = []
powersave_mode = []
server_mode = []

[scheds.scx_eevdf]
auto_mode = []
gaming_mode = []
lowlatency_mode = []
powersave_mode = []
server_mode = []
```

**`default_sched`:**
Expand Down Expand Up @@ -188,6 +195,8 @@ The example configuration above shows how to set custom flags for different sche
* No custom flags are defined, so the default flags for each mode will be used.
* For `scx_mlfq`:
* No custom flags are defined, so the default flags for each mode will be used.
* For `scx_eevdf`:
* No custom flags are defined, so the default flags for each mode will be used.

### Fallback Behavior

Expand Down
7 changes: 7 additions & 0 deletions crates/scx_loader/default_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,10 @@ gaming_mode = []
lowlatency_mode = []
powersave_mode = []
server_mode = []

[scheds.scx_eevdf]
auto_mode = []
gaming_mode = []
lowlatency_mode = []
powersave_mode = []
server_mode = []
4 changes: 3 additions & 1 deletion crates/scx_loader/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pub fn get_default_config() -> Config {
SupportedSched::Flow,
SupportedSched::Forge,
SupportedSched::MLFQ,
SupportedSched::EEVDF,
];
let scheds_map = HashMap::from(supported_scheds.map(init_default_config_entry));
Config {
Expand Down Expand Up @@ -257,7 +258,8 @@ fn get_default_scx_flags_for_mode(
| SupportedSched::Flow
| SupportedSched::Forge
| SupportedSched::Cake
| SupportedSched::MLFQ => vec![],
| SupportedSched::MLFQ
| SupportedSched::EEVDF => vec![],
}
}

Expand Down
4 changes: 4 additions & 0 deletions crates/scx_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ pub enum SupportedSched {
Forge,
#[serde(rename = "scx_mlfq")]
MLFQ,
#[serde(rename = "scx_eevdf")]
EEVDF,
}

impl FromStr for SupportedSched {
Expand All @@ -59,6 +61,7 @@ impl FromStr for SupportedSched {
"scx_bpfland" => Ok(SupportedSched::Bpfland),
"scx_cake" => Ok(SupportedSched::Cake),
"scx_cosmos" => Ok(SupportedSched::Cosmos),
"scx_eevdf" => Ok(SupportedSched::EEVDF),
"scx_flash" => Ok(SupportedSched::Flash),
"scx_flow" => Ok(SupportedSched::Flow),
"scx_forge" => Ok(SupportedSched::Forge),
Expand Down Expand Up @@ -88,6 +91,7 @@ impl From<SupportedSched> for &str {
SupportedSched::Bpfland => "scx_bpfland",
SupportedSched::Cake => "scx_cake",
SupportedSched::Cosmos => "scx_cosmos",
SupportedSched::EEVDF => "scx_eevdf",
SupportedSched::Flash => "scx_flash",
SupportedSched::Flow => "scx_flow",
SupportedSched::Forge => "scx_forge",
Expand Down
1 change: 1 addition & 0 deletions crates/scx_loader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ impl ScxLoader {
"scx_bpfland",
"scx_cake",
"scx_cosmos",
"scx_eevdf",
"scx_flash",
"scx_flow",
"scx_forge",
Expand Down
Loading