unified_cgroup_hierarchy?

moxfan

Active Member
Aug 28, 2013
104
7
38
With the latest kernel in PVE 6.4 (5.4.114-1), is it possible or even safe to turn on the unified_cgroup_hierarchy parameter? If it is possible and safe, how to enable it (the file to enable it in and the lines to add/edit)?

This parameter is needed for per-user throttling of RAM, CPU, IO, Tasks, etc. inside LXCs.
 
Last edited:
Answering my question has proved to be easier than I'd thought :)

Just add this to /etc/default/grub to activate cgroupv2 in PVE 6.4 (caution: this will deactivate cgroupv1)
Code:
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1"
save the file, then issue this command:
Code:
update-grub ; reboot
Done.
 
  • Like
Reactions: Stoiko Ivanov
Thanks for coming back and sharing your solution :)
 
  • Like
Reactions: moxfan