igo95862 / cfs-zen-tweaks

Tweak Linux CPU scheduler for desktop responsiveness
GNU General Public License v2.0
173 stars 12 forks source link

Detected kernel <5.13. Using legacy locations. #12

Closed safocl closed 1 year ago

safocl commented 1 year ago

system: archlinux, systemd.

I use custom kernel of 6.1.1 version (pure linux.org kernel with my settings). I edited config for this kernel to CONFIG_HZ=1000 (instead 300 in archlinux default). Using systemctl enable --now set-cfs-tweaks.service returns an error:

set-cfs-zen-tweaks.bash[368515]: Targeted preemption latency for CPU-bound tasks: 4ms
set-cfs-zen-tweaks.bash[368515]: Minimal preemption granularity for CPU-bound tasks: 0.4ms
set-cfs-zen-tweaks.bash[368515]: Wake-up granularity: 0.5ms
set-cfs-zen-tweaks.bash[368515]: Task migration cost: 0.25ms
set-cfs-zen-tweaks.bash[368515]: Amount of runtime to allocate from global to local pool: 3ms
set-cfs-zen-tweaks.bash[368515]: Detected kernel <5.13. Using legacy locations.
set-cfs-zen-tweaks.bash[368515]: /usr/lib/cfs-zen-tweaks/set-cfs-zen-tweaks.bash: line 57: /proc/sys/kernel/sched_latency_ns: No such file or directory
systemd[1]: set-cfs-tweaks.service: Main process exited, code=exited, status=1/FAILURE

Why does it detect kernel <5.13? and respectively used legacy locations that not exist.

safocl commented 1 year ago

if load with default archlinux kernel then it's works.

safocl commented 1 year ago

i fixed this bad behavior -- the kernel configuration must contain CONFIG_SCHED_DEBUG=y