Skip to content

Commit 9a028b6

Browse files
authored
Merge branch 'master' into skip-subcontainer-update-v2
2 parents 3ba4699 + 0df211f commit 9a028b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

machine/info.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ func GetHugePagesInfo() ([]info.HugePagesInfo, error) {
5757
var hugePagesInfo []info.HugePagesInfo
5858
files, err := ioutil.ReadDir(hugepagesDirectory)
5959
if err != nil {
60-
return hugePagesInfo, err
60+
// treat as non-fatal since kernels and machine can be
61+
// configured to disable hugepage support
62+
return hugePagesInfo, nil
6163
}
6264
for _, st := range files {
6365
nameArray := strings.Split(st.Name(), "-")

0 commit comments

Comments
 (0)