-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using online file instead to fix NUMA nodes init #83196
Conversation
…of possible NUMA nodes Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
@zouyee: GitHub didn't allow me to request PR reviews from the following users: tsrjzq. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@tsrjzq PTAL |
@zouyee: GitHub didn't allow me to request PR reviews from the following users: tsrjzq. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @balajismaniam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I think the comment should be updated too, to make it clear why we should use online and not possible.
I guess this problem occurs when a machine has more cpu sockets than it has cpus installed (eg. 1 socket with a cpu, and one empty one).
Ref. the TODO: This is a temporary workaround until cadvisor provides this
we should probably think about this when implementing the discovery in cadvisor too.
/lgtm
/priority important-soon
/cc klueska ConnorDoyle lmdaly
ref. #49964 https://github.com/kubernetes/community/blob/cd961fad1e9d1c2c2ddf85e36a2f93c202c1da89/contributors/design-proposals/node/topology-manager.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/approve
@@ -293,7 +293,7 @@ func GetNUMANodeInfo() (NUMANodeInfo, error) { | |||
// nil NUMANodeInfo, indicating that no NUMA information is available | |||
// on this machine. This should implicitly be interpreted as having a | |||
// 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ConnorDoyle, zouyee The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I think this deserves a backport into the v1.16 release branch. Would you care to make that @zouyee? |
…-upstream-release-1.16 Automated cherry pick of #83196: using online instead to fix kubelet service failed with wrong
What type of PR is this?
/kind bug
/kind flake
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #83175
Special notes for your reviewer:
using /sys/devices/system/node/online instead of /sys/devices/system/node/possible
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: