oomd icon indicating copy to clipboard operation
oomd copied to clipboard

Crash oomd on startup if `--cgroup-fs` path is not cgroup2

Open danobi opened this issue 6 years ago • 3 comments

Letting oomd be silently run against a cgroup1 hierarchy could lead to subtle issues down the line.

danobi avatar Apr 19 '19 18:04 danobi

Reported in #61

danobi avatar Apr 19 '19 18:04 danobi

@danobi

You can find actual cgroup2 root location in /proc/mounts:

$ cat /proc/mounts | grep cgroup2
cgroup /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0

Perhaps it is worth taking the default cgroup2 root from /proc/mounts instead of using /sys/fs/cgroup by default.

hakavlad avatar Apr 21 '19 06:04 hakavlad

Perhaps it is worth taking the default cgroup2 root from /proc/mounts instead of using /sys/fs/cgroup by default.

Oh yeah I like this idea. I'll file a separate issue for this.

danobi avatar Apr 22 '19 18:04 danobi