You are not logged in.

#1 2024-12-02 11:10:08

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 70
Website

[SOLVED] Verifying sched_ext schedulers on 6.12

Just upgrade and installed these packages

linux
linux-headers
scx-scheds
bpf

How to verify that sched_ext been in use or active should I start scx.service
Or
Edit

/sys/block/sda/queue/scheduler

As Improving_performance wiki print
?!

Last edited by Halano (2024-12-02 14:13:05)


.:HalanoTheSmartMoth:.

Offline

#2 2024-12-02 13:10:19

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [SOLVED] Verifying sched_ext schedulers on 6.12

Have you read through https://github.com/sched-ext/scx/blob/main/README.md?  Which should answer some of your questions.

/sys/block/sda/queue/scheduler

Is the IO scheduler for the block device sda and not related to CPU scheduling.

Offline

#3 2024-12-02 13:46:59

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 70
Website

Re: [SOLVED] Verifying sched_ext schedulers on 6.12

loqs wrote:

Have you read through https://github.com/sched-ext/scx/blob/main/README.md?  Which should answer some of your questions.

Thanks I read README.md & got some useful informations , as Im not technical in kernel schedulers
friends recommend to use it for better performance and yet I still can't verify if it's in use or EEVDF that running

[root@archlinux tmp]#  scx_bpfland 
15:36:38 [INFO] scx_bpfland 1.0.6-g607dfab7-dirty x86_64-unknown-linux-gnu SMT off
15:36:38 [INFO] primary CPU domain = 0x3
15:36:38 [INFO] cpufreq performance level: auto
15:36:38 [INFO] L2 cache ID 0: sibling CPUs: [0, 1]
15:36:38 [INFO] L3 cache ID 0: sibling CPUs: [0, 1]
Error: another sched_ext scheduler is already running
[root@archlinux tmp]# 
[root@archlinux tmp]#  scx_bpfland --monitor 0.5
[scx_bpfland] tasks -> r:  2/2  i: 0  | dispatch -> k: 0     d: 0     s: 18   
[scx_bpfland] tasks -> r:  1/2  i: 0  | dispatch -> k: 6     d: 145   s: 34   
[scx_bpfland] tasks -> r:  2/2  i: 0  | dispatch -> k: 7     d: 135   s: 34   
[scx_bpfland] tasks -> r:  1/2  i: 0  | dispatch -> k: 7     d: 170   s: 49   
[scx_bpfland] tasks -> r:  2/2  i: 0  | dispatch -> k: 3     d: 133   s: 36   
[root@archlinux tmp]#   scx_rustland 
Error: another sched_ext scheduler is already running

Also I don't know what the different between these scx_* tools
maybe because I enabled scx.service


.:HalanoTheSmartMoth:.

Offline

#4 2024-12-02 13:57:33

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [SOLVED] Verifying sched_ext schedulers on 6.12

# cat /sys/kernel/sched_ext/state /sys/kernel/sched_ext/*/ops 2>/dev/null

Follow https://github.com/sched-ext/scx/tree/main/scheds for an explanation of each scheduler. Unless the scheduler is the performance bottleneck how will swapping scheduler improve performance?

Last edited by loqs (2024-12-02 13:57:47)

Offline

#5 2024-12-02 14:12:35

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 70
Website

Re: [SOLVED] Verifying sched_ext schedulers on 6.12

loqs wrote:

how will swapping scheduler improve performance?

Halano wrote:

as Im not technical in kernel schedulers friends recommend

I get it and knowing which one is currently running thanks for help.


.:HalanoTheSmartMoth:.

Offline

Board footer

Powered by FluxBB