-
Notifications
You must be signed in to change notification settings - Fork 40
Add scx scheduler options support #166
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
base: master
Are you sure you want to change the base?
Conversation
Perhaps it's too complex, I don't know. But it seems to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❯ kerver
Check kernel version:
Linux version 6.16.4-1.1-cachyos (linux-cachyos@cachyos) (clang version 20.1.8, LLD 20.1.8) #1 SMP PREEMPT_DYNAMIC Thu, 28 Aug 2025 17:23:09 +0000
Linux cachyos 6.16.4-1.1-cachyos #1 SMP PREEMPT_DYNAMIC Thu, 28 Aug 2025 17:23:09 +0000 x86_64 GNU/Linux
Check x86_64 support:
x86-64-v4 (supported, searched)
x86-64-v3 (supported, searched)
x86-64-v2 (supported, searched)
Check CPU config:
# CONFIG_X86_NATIVE_CPU is not set
# CONFIG_GENERIC_CPU is not set
CONFIG_MZEN4=y
Check some configuration variables:
CONFIG_SCHED_CLASS_EXT=y
CONFIG_LTO_CLANG=y
# CONFIG_LTO_CLANG_FULL is not set
# CONFIG_LTO_CLANG_THIN is not set
CONFIG_LTO_CLANG_THIN_DIST=y
CONFIG_AUTOFDO_CLANG=y
CONFIG_PROPELLER_CLANG=y
Current disk schedulers:
nvme0n1: [none] mq-deadline kyber adios bfq
Check available schedulers:
sie 29 07:48:23 cachyos kernel: BORE CPU Scheduler modification 6.5.2 by Masahito Suzuki
sie 29 07:48:23 cachyos kernel: rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
sie 29 07:48:23 cachyos kernel: Transient Scheduler Attacks: Mitigation: Clear CPU buffers
sie 29 07:48:23 cachyos kernel: io scheduler mq-deadline registered
sie 29 07:48:23 cachyos kernel: io scheduler kyber registered
sie 29 07:48:23 cachyos kernel: Adaptive Deadline I/O Scheduler 3.0.1 by Masahito Suzuki
sie 29 07:48:23 cachyos kernel: io scheduler adios registered
sie 29 07:48:23 cachyos kernel: io scheduler bfq registered
sie 29 11:55:41 cachyos kernel: sched_ext: BPF scheduler "flash_1.0.13_g3c6fb461_dirty_x86_64_unknown_linux_gnu" enabled with options -m performance -D -L
lucjan at cachyos ~ 11:55:44
I have slightly different output, but in principle it works correctly.
|
A much simpler approach would be to use scxctl, it would probably reduce the complexity a bit. I just stumbled upon it... I'll have a look at that when I get the time. UPDATE: |
|
@shelterx I think that we could try scxctl with next release (1.0.17). |
|
@sirlucjan I can make an alternative PR and if that looka good we can ditch this one. I like the universal aspect of this one though. |
|
All in all, you're right, leave it as it is. |
Perhaps it's too complex for kervers purpose, I don't know. But it seems to work, I tested it with several schedulers.