mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #83196 from zouyee/cmq
using online file instead to fix NUMA nodes init
This commit is contained in:
commit
be1574b741
@ -293,7 +293,7 @@ func GetNUMANodeInfo() (NUMANodeInfo, error) {
|
|||||||
// nil NUMANodeInfo, indicating that no NUMA information is available
|
// nil NUMANodeInfo, indicating that no NUMA information is available
|
||||||
// on this machine. This should implicitly be interpreted as having a
|
// on this machine. This should implicitly be interpreted as having a
|
||||||
// single NUMA node with id 0 for all CPUs.
|
// single NUMA node with id 0 for all CPUs.
|
||||||
nodelist, err := ioutil.ReadFile("/sys/devices/system/node/possible")
|
nodelist, err := ioutil.ReadFile("/sys/devices/system/node/online")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user