You are not logged in.

#1 2021-08-18 06:23:22

jarif-rahman
Member
Registered: 2021-07-02
Posts: 6

[SOLVED] No /sys/fs/cgroup/memory/

I need to run an app which requires /sys/fs/cgroup/memory/
 
But there is no /sys/fs/cgroup/memory/ in my system. This exists in ubuntu by default. I have tried to add "cgroup_enable=memory cgroup_memory=1" to my grub cmdline, tried to use other kernels (linux-lts, linux-zen) but none of them worked. sad

Last edited by jarif-rahman (2021-08-18 08:02:58)

Offline

#2 2021-08-18 07:07:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,224

Re: [SOLVED] No /sys/fs/cgroup/memory/

If you literally really actually need that you probably need to switch to cgroup v1: https://wiki.archlinux.org/title/Cgroup … _cgroup_v1

But maybe read the rest of that page, are sure this isn't doable via a normal cgroup adjustment/adding relevant limits to a systemd service file.

Offline

#3 2021-08-18 07:40:57

jarif-rahman
Member
Registered: 2021-07-02
Posts: 6

Re: [SOLVED] No /sys/fs/cgroup/memory/

That worked smile 
But can any bad thing happen if I use cgroup v1 instead of v2 (like any other thing not working)?

Offline

#4 2021-08-18 07:51:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,224

Re: [SOLVED] No /sys/fs/cgroup/memory/

I haven't looked into it too deep, I'm assuming systemd has old style fallbacks for enforcing the limits it knows about in service files still. But I haven't looked into cgroups too closely so might be off base

Offline

Board footer

Powered by FluxBB