Skip to content

Commit

Permalink
Merge pull request #1298 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1287-to-release-0.13

[release-0.13] fix empty hugepages in some numa nodes caused no such file or directory errors
  • Loading branch information
k8s-ci-robot committed Aug 8, 2023
2 parents 3a42822 + fe16345 commit 5fda052
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/utils/memory_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ func GetNumaMemoryResources() (NumaMemoryResources, error) {
// Get hugepages
hugepageBytes, err := getHugepagesBytes(filepath.Join(sysBusNodeBasepath, numaNode, "hugepages"))
if err != nil {
return nil, err
if os.IsNotExist(err) {
continue
} else {
return nil, err
}
}
for n, s := range hugepageBytes {
info[n] = s
Expand Down

0 comments on commit 5fda052

Please sign in to comment.