-
Notifications
You must be signed in to change notification settings - Fork 134
Introduce KUBEVIRT_NUM_NUMA_NODES, KUBEVIRT_NUM_VCPU and KUBEVIRT_CPU_MANAGER_POLICY
#1171
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
Conversation
|
Skipping CI for Draft Pull Request. |
ead80fc to
9ab8fc3
Compare
KUBEVIRT_NUM_NUMA_NODES and KUBEVIRT_NUM_VCPUKUBEVIRT_NUM_NUMA_NODES, KUBEVIRT_NUM_VCPU and KUBEVIRT_CPU_MANAGER_POLICY
|
/hold cancel |
0xFelix
left a comment
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.
/lgtm
From what I can tell, looks good to me!
|
/retest-required I can't reproduce this locally so trying another run to ensure it isn't transient in CI. |
Ah I see it now, the issue is the tests don't also rebuild centos so the I assume I need to break these changes out of 2618f66 into their own PR, land that and have a fresh centos image created? |
|
/hold |
This change introduces the KUBEVIRT_NUM_NUMA_NODES env variable allowing for 2 or more NUMA nodes to be defined per host. This requires that both the amount of memory and vCPUs be divisible by this value in order for an even distribution of resources across the resulting nodes. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
This change introduces the KUBEVIRT_NUM_VCPU env variable allowing users to define a number of vCPUS exposed as cores for each host. This was previously hardcoded to 6 so the value is retained as the default to avoid breaking any existing envs where this value is assumed. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
This change introduces the KUBEVIRT_CPU_MANAGER_POLICY env var that allows a user to enable the CPUManager with a specific policy. The static policy is the only supported policy at present with the full-pcpus-only option provided. Two FIXMEs are left in the code to move to config drop-ins and fix an issue with HereDocs that could clean up this implementation slightly. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
NewEnvClient being deprecated in favor of NewClientWithOpts: https://pkg.go.dev/github.com/docker/docker/client#NewEnvClient Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
|
/hold cancel |
|
/cc |
0xFelix
left a comment
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.
/lgtm
brianmcarey
left a comment
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.
/approve
thanks @lyarwood !
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brianmcarey 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 |
|
@lyarwood: The following test failed, say
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. I understand the commands that are listed here. |
[2981e7e Introduce `KUBEVIRT_NUM_NUMA_NODES`, `KUBEVIRT_NUM_VCPU` and `KUBEVIRT_CPU_MANAGER_POLICY`](kubevirt/kubevirtci#1171) [02b52b9 Bump golang.org/x/net from 0.17.0 to 0.23.0 in /cluster-provision/gocli](kubevirt/kubevirtci#1180) [8341f20 Run ./hack/bump-cdi.sh](kubevirt/kubevirtci#1158) [e1ec7d8 cdi: Deploy latest available CDI manifests](kubevirt/kubevirtci#1165) ```release-note NONE ``` Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
[2981e7e Introduce `KUBEVIRT_NUM_NUMA_NODES`, `KUBEVIRT_NUM_VCPU` and `KUBEVIRT_CPU_MANAGER_POLICY`](kubevirt/kubevirtci#1171) [02b52b9 Bump golang.org/x/net from 0.17.0 to 0.23.0 in /cluster-provision/gocli](kubevirt/kubevirtci#1180) [8341f20 Run ./hack/bump-cdi.sh](kubevirt/kubevirtci#1158) [e1ec7d8 cdi: Deploy latest available CDI manifests](kubevirt/kubevirtci#1165) ```release-note NONE ``` Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
[2981e7e Introduce `KUBEVIRT_NUM_NUMA_NODES`, `KUBEVIRT_NUM_VCPU` and `KUBEVIRT_CPU_MANAGER_POLICY`](kubevirt/kubevirtci#1171) [02b52b9 Bump golang.org/x/net from 0.17.0 to 0.23.0 in /cluster-provision/gocli](kubevirt/kubevirtci#1180) [8341f20 Run ./hack/bump-cdi.sh](kubevirt/kubevirtci#1158) [e1ec7d8 cdi: Deploy latest available CDI manifests](kubevirt/kubevirtci#1165) ```release-note NONE ``` Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
[2981e7e Introduce `KUBEVIRT_NUM_NUMA_NODES`, `KUBEVIRT_NUM_VCPU` and `KUBEVIRT_CPU_MANAGER_POLICY`](kubevirt/kubevirtci#1171) [02b52b9 Bump golang.org/x/net from 0.17.0 to 0.23.0 in /cluster-provision/gocli](kubevirt/kubevirtci#1180) [8341f20 Run ./hack/bump-cdi.sh](kubevirt/kubevirtci#1158) [e1ec7d8 cdi: Deploy latest available CDI manifests](kubevirt/kubevirtci#1165) ```release-note NONE ``` Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
[2981e7e Introduce `KUBEVIRT_NUM_NUMA_NODES`, `KUBEVIRT_NUM_VCPU` and `KUBEVIRT_CPU_MANAGER_POLICY`](kubevirt/kubevirtci#1171) [02b52b9 Bump golang.org/x/net from 0.17.0 to 0.23.0 in /cluster-provision/gocli](kubevirt/kubevirtci#1180) [8341f20 Run ./hack/bump-cdi.sh](kubevirt/kubevirtci#1158) [e1ec7d8 cdi: Deploy latest available CDI manifests](kubevirt/kubevirtci#1165) ```release-note NONE ``` Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
[239678e Remove modprobe of vfio_mdev as no longer present](kubevirt/kubevirtci#1183) [2981e7e Introduce `KUBEVIRT_NUM_NUMA_NODES`, `KUBEVIRT_NUM_VCPU` and `KUBEVIRT_CPU_MANAGER_POLICY`](kubevirt/kubevirtci#1171) [02b52b9 Bump golang.org/x/net from 0.17.0 to 0.23.0 in /cluster-provision/gocli](kubevirt/kubevirtci#1180) [8341f20 Run ./hack/bump-cdi.sh](kubevirt/kubevirtci#1158) [e1ec7d8 cdi: Deploy latest available CDI manifests](kubevirt/kubevirtci#1165) ```release-note NONE ``` Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
What this PR does / why we need it:
These new env variables being useful when testing
dedicatedCpuPlacementandguestMappingPassthroughwithout requiring a physical host with multiple NUMA nodes etc.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note: