From 13ec357444b05c331cf5b86eb964c7b1578afc8f Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Thu, 12 Dec 2024 02:52:34 +0400 Subject: [PATCH] scx_loader: add mode for server-oriented workloads ref: https://github.com/sched-ext/scx/pull/1094 --- rust/scx_loader/configuration.md | 4 ++-- rust/scx_loader/org.scx.Loader.xml | 2 +- rust/scx_loader/src/config.rs | 15 ++++++++++++++- rust/scx_loader/src/lib.rs | 2 ++ 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/rust/scx_loader/configuration.md b/rust/scx_loader/configuration.md index c84a9dd0..ca51108e 100644 --- a/rust/scx_loader/configuration.md +++ b/rust/scx_loader/configuration.md @@ -53,14 +53,14 @@ powersave_mode = [] **`default_mode`:** * This field specifies the default scheduler mode that will be used when starting a scheduler without explicitly specifying a mode. -* Possible values are: `"Auto"`, `"Gaming"`, `"LowLatency"`, `"PowerSave"`. +* Possible values are: `"Auto"`, `"Gaming"`, `"LowLatency"`, `"PowerSave"`, `"Server"`. * If this field is not present, it defaults to `"Auto"`. **`[scheds.scx_name]`:** * This section defines the custom flags for a specific scheduler. Replace `scx_name` with the actual name of the scheduler (e.g., `scx_bpfland`, `scx_rusty`, `scx_lavd`, `scx_flash`). -**`auto_mode`, `gaming_mode`, `lowlatency_mode`, `powersave_mode`:** +**`auto_mode`, `gaming_mode`, `lowlatency_mode`, `powersave_mode`, `server_mode`:** * These fields specify the flags to be used for each scheduler mode. * Each field is an array of strings, where each string represents a flag. diff --git a/rust/scx_loader/org.scx.Loader.xml b/rust/scx_loader/org.scx.Loader.xml index f8494fdc..d6ffeb56 100644 --- a/rust/scx_loader/org.scx.Loader.xml +++ b/rust/scx_loader/org.scx.Loader.xml @@ -21,7 +21,7 @@