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] Add support for mainline kernel (Xanmod-Edge for example) #45

Closed
gabriele2000 opened this issue May 20, 2022 · 5 comments

Comments

@gabriele2000
Copy link

gabriele2000 commented May 20, 2022

Basically I use linux-xanmod-edge and when I type system76-scheduler daemon the result is Error: kernel does not support tweaking the scheduler.

As far as I understand, so far it's useless for now with xanmod, right?

@mmstick
Copy link
Member

mmstick commented May 20, 2022

Xanmod isn't a mainline kernel, and it doesn't support the CFS tweaking feature. This message is warning about that feature not being supported by the kernel.

@mmstick mmstick closed this as completed May 20, 2022
@gabriele2000
Copy link
Author

gabriele2000 commented May 20, 2022

So should I propose a change?

Xanmod isn't a mainline kernel

That's new, since the edge branch it not the "tt" branch (TaskType scheduler)

@xanmod
Copy link

xanmod commented May 20, 2022

The xanmod's cfs sysctl parameters are the same as mainlline, only the energy efficiency functions have been removed.
xanmod/linux@12cf86a

@mmstick
Copy link
Member

mmstick commented May 20, 2022

@xanmod This CFS tweaking functionality here fails when it can't find /sys/kernel/debug/sched/latency_ns and associated paths. The kernel files tweaked are found here: https://github.com/pop-os/system76-scheduler/blob/master/daemon/src/paths.rs#L25

@xanmod
Copy link

xanmod commented May 20, 2022

pub const PREEMPT_PATH: &str = "/sys/kernel/debug/sched/preempt";

# CONFIG_PREEMPT_DYNAMIC is not set
In xanmod config it is not possible to change via debugfs.

Enabling preempt_dynamic in recent versions of linux forces the kernel to work in preempt and not preempt_voluntary as we wish. For this reason it is disabled.

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