Skip to content

Commit 0df211f

Browse files
Merge pull request #1723 from sjenning/fix-hugepages-disabled
make lack of hugepages support non-fatal
2 parents 764e91b + 6c90099 commit 0df211f

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)