[arch-general] cgroups_v2 and rootless podman
Tomas Krizek
tomas.krizek at nic.cz
Fri Mar 19 12:16:30 UTC 2021
On 19/03/2021 11.40, Samir Nassar via arch-general wrote:
> from /etc/default/grub:
> GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0 nomodeseti
> systemd.unified_cgroup_hierarchy=1"
>
> $ ls -al /sys/fs/cgroup
> total 0
> dr-xr-xr-x 11 root root 0 Mar 19 10:56 .
> drwxr-xr-x 7 root root 0 Mar 19 10:56 ..
> -r--r--r-- 1 root root 0 Mar 19 10:56 cgroup.controllers
> -rw-r--r-- 1 root root 0 Mar 19 10:57 cgroup.max.depth
> -rw-r--r-- 1 root root 0 Mar 19 10:57 cgroup.max.descendants
> -rw-r--r-- 1 root root 0 Mar 19 10:56 cgroup.procs
> -r--r--r-- 1 root root 0 Mar 19 10:57 cgroup.stat
> -rw-r--r-- 1 root root 0 Mar 19 10:56 cgroup.subtree_control
> -rw-r--r-- 1 root root 0 Mar 19 10:57 cgroup.threads
> -rw-r--r-- 1 root root 0 Mar 19 10:57 cpu.pressure
> -r--r--r-- 1 root root 0 Mar 19 10:57 cpuset.cpus.effective
> -r--r--r-- 1 root root 0 Mar 19 10:57 cpuset.mems.effective
> ...
I'm using rootless podman without any issues. I only had to create
subuid and subgid mappings. I didn't need to modify any kernel
parameters to get cgroupsv2 to work.
According to [cgroups(7)], modern systemd should automatically mount
cgroups2 hierarchy under /sys/fs/cgroup/unified - so I think this is the
path you need to look for to determine cgroupsv2 support.
[cgroups(7)] -
https://man.archlinux.org/man/cgroups.7#Cgroups_v2_unified_hierarchy
--
Tomas Krizek
PGP: 4A8B A48C 2AED 933B D495 C509 A1FB A5F7 EF8C 4869
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20210319/8f47c844/attachment.sig>
More information about the arch-general
mailing list