hamadmarri / TT-CPU-Scheduler

Task Type (TT) is an alternative CPU Scheduler for linux.
107 stars 12 forks source link

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

Open shanoaice opened 10 months ago

shanoaice commented 10 months ago

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/user@.service.d/delegate.conf 
[Service]
Delegate=cpu cpuset io memory pids
$ systemctl show user@60255.service -p Delegate
Delegate=yes
$ cat /sys/fs/cgroup/user.slice/user-60255.slice/user@60255.service/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 commented 8 months ago

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.