How to enable HugeTLB controller in cgroup v2 on Ubuntu
2
votes
2
answers
1352
views
I am trying to enable HugeTLB Controller on cgroup v2 on my system but can't figure out how.
This is the list of controllers on my system:
cat /sys/fs/cgroup/cgroup.controllers
cpuset cpu io memory pids rdma
And this is what I see for the meminfo on my system:
cat /proc/meminfo | grep Huge
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
FileHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
Am I missing something to enable the HugeTLB controller on cgroup v2? Is there a kernel flag, or some other setting that I need to enable?
Asked by Harshdeep Gupta
(21 rep)
Oct 13, 2022, 10:37 PM
Last activity: Jun 9, 2023, 02:54 PM
Last activity: Jun 9, 2023, 02:54 PM