> In the effort of supporting cgroups v2 into Kubernetes, I stumped on > the lack of the hugetlb controller. > > When the controller is enabled, it exposes three new files for each > hugetlb size on non-root cgroups: > > - hugetlb.<hugepagesize>.current > - hugetlb.<hugepagesize>.max > - hugetlb.<hugepagesize>.events > - hugetlb.<hugepagesize>.events.local > > The differences with the legacy hierarchy are in the file names and > using the value "max" instead of "-1" to disable a limit. > > The file .limit_in_bytes is renamed to .max. > > The file .usage_in_bytes is renamed to .usage. > > .failcnt is not provided as a single file anymore, but its value can > be read through the new flat-keyed files .events and .events.local, > through the "max" key. note: in the current implementation, there is no support for the equivalent of "memory_localevents". If there is request for it, I can add that as a separate patch on top of the current one. Giuseppe