Skip to content
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

Support finer-grained control over hugepages allocations #602

Open
jalaziz opened this issue Mar 31, 2024 · 0 comments
Open

Support finer-grained control over hugepages allocations #602

jalaziz opened this issue Mar 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jalaziz
Copy link
Contributor

jalaziz commented Mar 31, 2024

The current behavior of the nitro-enclaves-allocator script is to allocate the largest possible page first, then move on to smaller pages as necessary. While this generally makes sense, it can result in over-allocation of memory when you want to run multiple enclaves on a single node.

For example, if I want to allocate 2GB of memory for huge pages, the allocator will allocate 2 1GB pages. However, now if I'm using Kubernetes and want to schedule one pod that uses 1.5GB of memory and another of 500MB, I am unable to unless I request more memory than needed.

It would be wonderful if the max page size could be controlled via the allocator.yaml config. Even better would be fine-grained control over how many of each page size to allocate.

@meerd meerd added the enhancement New feature or request label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants