You are not logged in.

#1 2020-05-09 17:24:07

desperado
Member
Registered: 2018-10-12
Posts: 59

Disable v1 cgroups using sysctl

Referring to https://wiki.archlinux.org/index.php/Cg … v1_cgroups.

`sysctl cgroup_no_v1="all"` gives the following error.

sysctl: cannot stat /proc/sys/cgroup_no_v1: No such file or directory


I tried `sys.cgroups_no_v1` and `sys.cgroups_no_v1` with the same result.

What am I missing?

Last edited by desperado (2020-05-10 05:42:07)

Offline

#2 2020-05-09 18:29:15

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

Re: Disable v1 cgroups using sysctl

You can't delete posts, fair warning, don't make a habit of it: https://wiki.archlinux.org/index.php/Co … way_street

Moving to Kernel and Hardware.

That said, I'm unsure as to what you are asking, the page talks about disabling a kernel parameter, not every kernel parameter is runtime adjustable via sysctl apparently including these cgroup flags. What happens if you actually use a kernel parameter on the kernel cmdline ?

Offline

#3 2020-05-09 18:40:11

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: Disable v1 cgroups using sysctl

Is this an X-Y problem?  What are you trying to achieve by disabling V1 cgroups?  You could have systemd use a unified V2 hierarchy instead of V2 for systemd and v1 for all other processes.

Offline

#4 2020-05-10 05:33:48

desperado
Member
Registered: 2018-10-12
Posts: 59

Re: Disable v1 cgroups using sysctl

@V1del, I assumed sysctl could handle all the kernel parameters. Thanks.

@loqs, how do I do that? The only other option I know of is to edit the initial ramdisk.

Offline

#5 2020-05-10 10:46:46

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: Disable v1 cgroups using sysctl

With the kernel parameter systemd.unified_cgroup_hierarchy.  See the Kernel Command Line section of `man 1 systemd` for more details.

Offline

Board footer

Powered by FluxBB