https://github.com/frap129/scxctl
A cli interface for scx_loader
https://github.com/frap129/scxctl
Last synced: about 9 hours ago
JSON representation
A cli interface for scx_loader
- Host: GitHub
- URL: https://github.com/frap129/scxctl
- Owner: frap129
- License: apache-2.0
- Created: 2024-12-15T20:30:34.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-15T21:05:10.000Z (5 months ago)
- Last Synced: 2024-12-15T21:11:02.963Z (5 months ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-starred - frap129/scxctl - A cli interface for scx_loader (Rust)
README
# scxctl
[](https://crates.io/crates/scxctl)
[](https://crates.io/crates/scxctl)> [!WARNING]
> **This repo is DEPRECATED**
> scxctl is now a part of the official [sched-ext/scx repo](https://github.com/sched-ext/scx/tree/main/tools/scxctl)`scxctl` is a cli interface for interacting with `scx_loader`.
## Features
- Get the current scheduler and mode
- List all available schedulers
- Start a scheduler in a given mode, or with given arguments
- Switch between schedulers and modes
- Stop the running scheduler## Installation
### Arch Linux
~`scxctl` is available on the AUR as [scxctl](https://aur.archlinux.org/packages/scxctl)~
> [!WARNING]
> scxctl is included in the official scx-scheds package for versions after 1.0.10### Other Distros
`scxctl` can be installed from crates.io through cargo
```
cargo install scxctl
```## Usage
```
$ scxctl --help
Usage: scxctlCommands:
get Get the current scheduler and mode
list List all supported schedulers
start Start a scheduler in a mode or with arguments
switch Switch schedulers or modes, optionally with arguments
stop Stop the current scheduler
help Print this message or the help of the given subcommand(s)Options:
-h, --help Print help
-V, --version Print version
``````
$ scxctl start --help
Start a scheduler in a mode or with argumentsUsage: scxctl start [OPTIONS] --sched
Options:
-s, --sched Scheduler to start
-m, --mode Mode to start in [default: auto] [possible values: auto, gaming, powersave, lowlatency, server]
-a, --args Arguments to run scheduler with
-h, --help Print help
``````
$ scxctl switch --help
Switch schedulers or modes, optionally with argumentsUsage: scxctl switch [OPTIONS]
Options:
-s, --sched Scheduler to switch to
-m, --mode Mode to switch to [possible values: auto, gaming, powersave, lowlatency, server]
-a, --args Arguments to run scheduler with
-h, --help Print help
```### Examples:
Start bpfland in auto mode
```
scxctl start -s bpfland
```Switch to gaming mode
```
scxctl switch -m gaming
```Switch to lavd with verbose and performance flags
```
scxctl switch -s lavd -a="-v,--performance"
```