-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add hugepages support #67
Conversation
PR should not be merged yet, I am going to test this together with mcm-provider-kubevirt. I've added possiblity to specify Guest memory together with hugepages, altough it's not documented yet due to not supporting resource limits as mentioned here. |
extension adds appropriate fields in a machine class object, I think we can merge this. |
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.
Very nice PR, I have just a small question regarding naming, see below.
/lgtm, conflicts should be resolved before merging |
Signed-off-by: Marcin Franczyk <[email protected]>
bcd0385
to
167b29e
Compare
conflicts resolved |
// For hugepages take a look at: | ||
// k8s - https://kubernetes.io/docs/tasks/manage-hugepages/scheduling-hugepages/ | ||
// okd - https://docs.okd.io/3.9/scaling_performance/managing_hugepages.html#huge-pages-prerequisites | ||
MemoryFeatures *kubevirtv1.Memory `json:"memoryFeatures,omitempty"` |
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.
You may also need to set memory request here too, though the doc doesn't say what is the consequence of empty memory request.
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.
You may also need to set memory request here too
thanks for your input @rootfs, we do set memory request but in a bit different place to align with gardener API. It's passed from a machineType
object https://github.com/gardener/gardener-extension-provider-kubevirt/blob/master/pkg/controller/worker/machines.go#L149.
though the doc doesn't say what is the consequence of empty memory request.
KubeVirt validates if your hugepages size is bigger than requested memory, so in case it's empty KubeVirt would return an error.
Signed-off-by: Marcin Franczyk [email protected]
How to categorize this PR?
/area performance
/kind enhancement
/priority normal
/platform kubevirt
What this PR does / why we need it:
We need this to improve VMs performance in terms of memory consumption by applications running inside.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: