-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Huge pages KEP: support multiple sizes huge pages on a container level #1271
Huge pages KEP: support multiple sizes huge pages on a container level #1271
Conversation
Welcome @bart0sh! |
/assign |
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.
Just a question on the validation
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 for opening! Other than some small comments, this looks good to me! :)
PR to add node level support is here kubernetes/kubernetes#82820, and I have already been looking at implementing this, so i'll be happy to help with the implementation.
I think we should rewrite (or remove) this chapter:
I think there is some kind of ambiguity in |
404fb3d
to
27c7e5e
Compare
@derekwaynecarr @odinuge Thank you for the review! I've updated the PR according to your suggestions. |
782854f
to
679c33e
Compare
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.
With the latest changes, this looks good to me.
It is really nice with all the clear examples. I cannot see any explicit info (or example) about the fact that mounting hugetlbfs is optional. A pod can request 1GiB of 2MiB pages, without using a volume mount to mount a hugetlbfs. May be nice to have it explicitly stated.
/lgtm
Updates looks good. I have just one thing to suggest here.
As i know(and KEP says) there are three ways to consume hugepages. |
679c33e
to
8d1a71d
Compare
@odinuge @bg-chun Thank you for the review and suggestions! I've added the following text to explicitly mention that emptyDir(hugetlbfs mounts) are optional:
Does this look more clear now? |
8d1a71d
to
e92eafc
Compare
This change adds support of multiple sizes huge pages on a container level to support the following use cases: - VMs running on a Kubernetes infrastructure (QEMU, libvirt, etc) - Applications using more than one huge page size
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.
Thank you for the updates and clarifying the validation error scenarios.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bart0sh, derekwaynecarr, odinuge 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 |
This change adds support of multiple sizes huge pages on a
container level to support the following use cases: