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

Don't work on linux 6.5 and 6.6 (Manjaro) #14

Closed
le5h opened this issue Nov 8, 2023 · 9 comments
Closed

Don't work on linux 6.5 and 6.6 (Manjaro) #14

le5h opened this issue Nov 8, 2023 · 9 comments

Comments

@le5h
Copy link

le5h commented Nov 8, 2023

> sudo systemctl start set-cfs-tweaks
ob for set-cfs-tweaks.service failed because the control process exited with error code.
See "systemctl status set-cfs-tweaks.service" and "journalctl -xeu set-cfs-tweaks.service" for details.
> systemctl status set-cfs-tweaks.service
× set-cfs-tweaks.service - Set CFS tweaks
     Loaded: loaded (/usr/lib/systemd/system/set-cfs-tweaks.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2023-11-08 04:28:48 MSK; 15s ago
    Process: 9853 ExecStart=/usr/lib/cfs-zen-tweaks/set-cfs-zen-tweaks.bash (code=exited, status=1/FAILURE)
   Main PID: 9853 (code=exited, status=1/FAILURE)
        CPU: 10ms

ноя 08 04:28:48 alexei-desktop set-cfs-zen-tweaks.bash[9853]: Targeted preemption latency for CPU-bound tasks: 4ms
ноя 08 04:28:48 alexei-desktop set-cfs-zen-tweaks.bash[9853]: Minimal preemption granularity for CPU-bound tasks: 0.4ms
ноя 08 04:28:48 alexei-desktop set-cfs-zen-tweaks.bash[9853]: Wake-up granularity: 0.5ms
ноя 08 04:28:48 alexei-desktop set-cfs-zen-tweaks.bash[9853]: Task migration cost: 0.25ms
ноя 08 04:28:48 alexei-desktop set-cfs-zen-tweaks.bash[9853]: Amount of runtime to allocate from global to local pool: 3ms
ноя 08 04:28:48 alexei-desktop set-cfs-zen-tweaks.bash[9853]: Detected kernel <5.13. Using legacy locations.
ноя 08 04:28:48 alexei-desktop set-cfs-zen-tweaks.bash[9853]: /usr/lib/cfs-zen-tweaks/set-cfs-zen-tweaks.bash: строка 57: /proc/sys/kernel/sched_latency_ns: Нет такого файла или каталога
ноя 08 04:28:48 alexei-desktop systemd[1]: set-cfs-tweaks.service: Main process exited, code=exited, status=1/FAILURE
ноя 08 04:28:48 alexei-desktop systemd[1]: set-cfs-tweaks.service: Failed with result 'exit-code'.
ноя 08 04:28:49 alexei-desktop systemd[1]: Failed to start Set CFS tweaks.
@igo95862
Copy link
Owner

igo95862 commented Nov 8, 2023

Hello @le5h

This is because of the new EEVDF scheduler.

@igo95862
Copy link
Owner

@le5h I added 75cb8c2 which should add support for EEVDF scheduler and released the version 1.3.0 . Can you give it a test?

@le5h
Copy link
Author

le5h commented Nov 14, 2023

Thank you! Seems to be working now, at least not failing :D
image

@le5h le5h closed this as completed Nov 14, 2023
@ZanDev32
Copy link

@igo95862 Hey i have similar error with with different file, might you check this out too?

here is the systemctl status output:

× set-cfs-tweaks.service - Set CFS tweaks
     Loaded: loaded (/lib/systemd/system/set-cfs-tweaks.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2024-06-23 18:30:11 WIT; 6h ago
   Main PID: 975 (code=exited, status=2)
        CPU: 28ms

Jun 23 18:30:05 {user} set-cfs-zen-tweaks.sh[975]: Wake-up granularity: 0.5ms
Jun 23 18:30:05 {user} set-cfs-zen-tweaks.sh[975]: Task migration cost: 0.25ms
Jun 23 18:30:05 {user} set-cfs-zen-tweaks.sh[975]: Amount of runtime to allocate from global to local pool: 3ms
Jun 23 18:30:05 {user} set-cfs-zen-tweaks.sh[975]: Number of tasks to iterate in a single balance run: CFS 64 EEVDF 8
Jun 23 18:30:11 {user} set-cfs-zen-tweaks.sh[975]: Detected kernel <5.13. Using legacy locations.
Jun 23 18:30:11 {user} set-cfs-zen-tweaks.sh[975]: Detected EEVDF scheduler
Jun 23 18:30:11 {user} set-cfs-zen-tweaks.sh[975]: /usr/sbin/set-cfs-zen-tweaks.sh: 73: cannot create /sys/kernel/debug/sched/base_slice_ns: Directory nonexistent
Jun 23 18:30:11 {user} systemd[1]: set-cfs-tweaks.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 23 18:30:11 {user} systemd[1]: set-cfs-tweaks.service: Failed with result 'exit-code'.
Jun 23 18:30:11 {user} systemd[1]: Failed to start Set CFS tweaks.

@igo95862
Copy link
Owner

Maybe the #3 is relevant for your case.

Check if you have the debugfs mounted on /sys/kernel/debug.

@ZanDev32
Copy link

Maybe the #3 is relevant for your case.

Check if you have the debugfs mounted on /sys/kernel/debug.

Well, after checking using this command sudo mount -a -v debugfs already mounted on /sys/kernel/debug. What should i do next?

@igo95862
Copy link
Owner

Check if /sys/kernel/debug/sched/base_slice_ns exists.

@ZanDev32
Copy link

Check if /sys/kernel/debug/sched/base_slice_ns exists.

the sched directory is missing. i cannot create it using mkdir with root privilaged, what should i do?

@igo95862
Copy link
Owner

igo95862 commented Jun 24, 2024

Check if you have the scheduler debug enabled in kernel:

zcat /proc/config.gz | grep 'SCHED'

...
CONFIG_SCHED_DEBUG=y
CONFIG_SCHED_INFO=y
...

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

3 participants