Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Include scxctl into scx/sched-ext #1373

Open
sirlucjan opened this issue Feb 18, 2025 · 0 comments
Open

[Feature request] Include scxctl into scx/sched-ext #1373

sirlucjan opened this issue Feb 18, 2025 · 0 comments

Comments

@sirlucjan
Copy link
Contributor

It would be a great idea to integrate scxctl in scx or add this as a separate repository in sched-ext. @frap129 has done a great job and this is a very useful tool. Tested on CachyOS and Fedora 41 Kinoite.

lucjan at cachyos ~ 12:35:48    
❯ scxctl --help
A cli interface for scx_loader

Usage: scxctl <COMMAND>

Commands:
  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
lucjan at cachyos ~ 12:35:53    
❯ scxctl list  
supported schedulers: ["bpfland", "flash", "lavd", "p2dq", "rusty"]  
lucjan at cachyos ~ 12:36:11    
❯ scxctl start -s bpfland
started scx_bpfland in auto mode
lucjan at cachyos ~ 12:36:39    
❯ scxctl get                                                             
running bpfland in auto mode
lucjan at cachyos ~ 12:36:49    
❯ systemctl status scx_loader.service
● scx_loader.service - DBUS on-demand loader of sched-ext schedulers
     Loaded: loaded (/usr/lib/systemd/system/scx_loader.service; disabled; preset: disabled)
     Active: active (running) since Tue 2025-02-18 11:44:08 CET; 52min ago
 Invocation: 17b213e4700c4574a728925d02b5b046
   Main PID: 115114 (scx_loader)
      Tasks: 22 (limit: 37392)
     Memory: 31.5M (peak: 32M)
        CPU: 54ms
     CGroup: /system.slice/scx_loader.service
             ├─115114 /usr/bin/scx_loader
             └─120351 scx_bpfland

lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 0: sibling CPUs: [0, 8]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 1: sibling CPUs: [1, 9]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 2: sibling CPUs: [2, 10]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 3: sibling CPUs: [3, 11]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 4: sibling CPUs: [4, 12]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 5: sibling CPUs: [5, 13]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 6: sibling CPUs: [6, 14]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L2 cache ID 7: sibling CPUs: [7, 15]
lut 18 12:36:39 cachyos scx_loader[120351]: 11:36:39 [INFO] L3 cache ID 0: sibling CPUs: [0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15]
lut 18 12:36:49 cachyos scx_loader[115114]: [INFO]: called "scx_bpfland"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant