[pve-devel] how to enable cgroupv2 for lxc ?

Stoiko Ivanov s.ivanov at proxmox.com
Thu Oct 29 14:23:08 CET 2020


Hi,



On Thu, 29 Oct 2020 13:44:05 +0100
Alexandre Derumier <aderumier at odiso.com> wrote:

> Hi,
> I'm stil working on rdd && new pressure stats.
> 
> pressure stats in cgroup are only available in cgroupv2.
> so it's working for qemu, but I  don't have counter for lxc as it's
> still using cgroupv1.
> 
> I see that wolfgang have already add support for cgroupv2 in LXC::Cgroups,
> I would like to enable it to test if I can get correct pressure info.
> 
> does somebody known how to enable it ? some sysctl or grub option maybe ?

adding systemd.unified_cgroup_hierarchy=1 to the kernel commandline
(/etc/default/grub or /etc/kernel/cmdline (ZFS on UEFI) ) should work:
https://wiki.debian.org/LXC/CGroupV2



> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 






More information about the pve-devel mailing list