scx_loader-1.0.4 is not a library.
Visit the last successful build:
scx_loader-1.0.16
scx_loader: A DBUS Interface for Managing sched-ext Schedulers
scx_loader
is a utility that provides a convenient DBUS interface for starting, stopping, and managing sched_ext schedulers.
Features
StartScheduler
Method: Launches a scheduler specified by itsscx_name
(e.g., "scx_rusty") and a scheduler mode (profile) represented as an unsigned integer.StartSchedulerWithArgs
Method: Starts a scheduler with itsscx_name
and allows passing arbitrary CLI arguments directly to the scheduler.StopScheduler
Method: Terminates the currently running scheduler.CurrentScheduler
Property: Returns thescx_name
of the active scheduler or "unknown" if none is running.SchedulerMode
Property: Provides information about the currently active scheduler's mode (profile).SupportedSchedulers
Property: Lists the schedulers currently supported byscx_loader
.
Usage
scx_loader
interacts with schedulers through its DBUS interface. You can use tools like dbus-send
or gdbus
to communicate with it.
Examples using dbus-send
:
-
Start a Scheduler:
(This starts
scx_rusty
with scheduler mode 0) -
Start a Scheduler with Arguments:
(This starts
scx_bpfland
with arguments-k -c 0
) -
Stop the Current Scheduler:
-
Get the Currently Active Scheduler:
-
Get the Supported Schedulers:
Note: Replace the example scheduler names and arguments with the actual ones you want to use.
Development Status
scx_loader
is under active development. Future improvements may include:
- More robust error handling.
- Configuration file.