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.
2 parents a5a45c7 + 916c6a1 commit 2357eabCopy full SHA for 2357eab
libcontainer/cgroups/fs2/hugetlb.go
@@ -1,7 +1,6 @@
1
package fs2
2
3
import (
4
- "fmt"
5
"strconv"
6
7
"github.com/opencontainers/runc/libcontainer/cgroups"
@@ -27,10 +26,7 @@ func setHugeTlb(dirPath string, r *configs.Resources) error {
27
26
}
28
29
func statHugeTlb(dirPath string, stats *cgroups.Stats) error {
30
- hugePageSizes, err := cgroups.GetHugePageSize()
31
- if err != nil {
32
- return fmt.Errorf("failed to fetch hugetlb info: %w", err)
33
- }
+ hugePageSizes, _ := cgroups.GetHugePageSize()
34
hugetlbStats := cgroups.HugetlbStats{}
35
36
for _, pagesize := range hugePageSizes {
0 commit comments