facebookincubator / oomd

A userspace out-of-memory killer
GNU General Public License v2.0
1.8k stars 143 forks source link

/sys/fs/cgroup is not a valid cgroup2 filesystem #128

Closed Pushergene closed 4 years ago

Pushergene commented 4 years ago

/sys/fs/cgroup> ls blkio cpuacct cpuset freezer memory net_cls,net_prio perf_event rdma unified cpu cpu,cpuacct devices hugetlb net_cls net_prio pids systemd

How can i fix it? I compiled from source, using OpenSUSE Tumbleweed with psi=1. https://github.com/openSUSE/kernel-source/blob/master/config/x86_64/default

is there something which does prevent it?

hakavlad commented 4 years ago

Maybe you use mixed cgroup hierarchy. Could you provide cat /proc/self/cgroup?

hakavlad commented 4 years ago

See also https://github.com/facebookincubator/oomd/blob/master/docs/production_setup.md#kernel-command-line

cdown commented 4 years ago

oomd requires cgroup v2, but the hierarchy you're showing has resource control under cgroup v1.

You can enable tell systemd to use the new unified (v2) hierarchy, and simultaneously disable the old controllers with cgroup_no_v1=all on the kernel command line.

cdown commented 4 years ago

I'm gonna go ahead and close this one, I'm pretty sure the answer here is just to use cgroup v2, as required :-)