From 6c900995ce45a68af6ed0a949a631a85af916486 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Thu, 17 Aug 2017 13:55:45 -0500 Subject: [PATCH] make lack of hugepages support non-fatal --- machine/info.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/machine/info.go b/machine/info.go index 5d4d1b54..a58321d5 100644 --- a/machine/info.go +++ b/machine/info.go @@ -57,7 +57,9 @@ func GetHugePagesInfo() ([]info.HugePagesInfo, error) { var hugePagesInfo []info.HugePagesInfo files, err := ioutil.ReadDir(hugepagesDirectory) if err != nil { - return hugePagesInfo, err + // treat as non-fatal since kernels and machine can be + // configured to disable hugepage support + return hugePagesInfo, nil } for _, st := range files { nameArray := strings.Split(st.Name(), "-")