Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

[bug] k3s does not work with TT Scheduler #28

Open
shanoaice opened this issue Sep 27, 2023 · 1 comment
Open

[bug] k3s does not work with TT Scheduler #28

shanoaice opened this issue Sep 27, 2023 · 1 comment

Comments

@shanoaice
Copy link

This might be a duplicate of #14, though I am not sure.
When I attempted to start the k3s systemd service, it fails.
Full journalctl -eu k3s.service log is here: https://fars.ee/XESP

This line in the log seems to be the cause:

k3s[5373]: time="2023-09-27T22:03:57+08:00" level=fatal msg="failed to find cpu cgroup (v2)"

I am pretty sure I am using cgroup v2 unified hierarchy, and I gave proper Delegate to the cpu cgroup:

$ cat /sys/fs/cgroup/cgroup.controllers
cpuset io memory hugetlb pids rdma misc
$ cat /etc/systemd/system/[email protected]/delegate.conf 
[Service]
Delegate=cpu cpuset io memory pids
$ systemctl show [email protected] -p Delegate
Delegate=yes
$ cat /sys/fs/cgroup/user.slice/user-60255.slice/[email protected]/cgroup.controllers
cpuset io memory pids

The cpu cgroup controller seems to be mysteriously missing when TT Scheduler is used, which causes the failure of k3s. This is not observed on linux kernel with CFS and the same config (other than TT specific config).

@ionutnechita
Copy link

Is similar with #14.
Because i used Kind Cluster in past and i notice this behaviour.

TT Scheduler is very good for critical desktop tasks, because all tasks are divided into categories.

Please use other kernel with optimized CFS, such XanMod or Sunlight Kernel.

Sunlight Kernel: https://github.com/sunlightlinux/linux-sunlight

A good day.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants