We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b970779 commit 94067f2Copy full SHA for 94067f2
fs2/hugetlb.go
@@ -43,10 +43,11 @@ func setHugeTlb(dirPath string, r *cgroups.Resources) error {
43
func statHugeTlb(dirPath string, stats *cgroups.Stats) error {
44
hugetlbStats := cgroups.HugetlbStats{}
45
rsvd := ".rsvd"
46
+
47
for _, pagesize := range cgroups.HugePageSizes() {
48
+ prefix := "hugetlb." + pagesize
49
again:
- prefix := "hugetlb." + pagesize + rsvd
- value, err := fscommon.GetCgroupParamUint(dirPath, prefix+".current")
50
+ value, err := fscommon.GetCgroupParamUint(dirPath, prefix+rsvd+".current")
51
if err != nil {
52
if rsvd != "" && errors.Is(err, os.ErrNotExist) {
53
rsvd = ""
0 commit comments