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

How to provide hugepages configuration #731

Open
eroussy opened this issue Feb 18, 2025 · 1 comment
Open

How to provide hugepages configuration #731

eroussy opened this issue Feb 18, 2025 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@eroussy
Copy link
Member

eroussy commented Feb 18, 2025

Abstract
Two different mechanism are used to add hugepages:

  • Directly add it in the kernel command line
  • Use the service hugetlb-gigantic-pages.service
    We should use and test only one mechanism.

Current status
On Yocto :

  • Kernel parameters default_hugepagesz=1G hugepagesz=1G are added by default.
    Method 1 :
  • Add N hugepages by adding parameter hugepages=N to this command line
    Method 2 :
  • Ansible variable yocto_hugepages
  • Uses roles roles/yocto/hugepages
  • Triggers service hugetlb-gigantic-pages.service on the hypervisor

On Debian:

  • Nothing is provided nor documented
  • Only solution is to add kernel parameters default_hugepagesz=1G hugepagesz=1G hugepages=N
  • hugetlb-gigantic-pages.service was originally provided, but removed in 0e9b0ab

Detailed Description
The advantage of the hugetlb-gigantic-pages.service is that hugepages can be changed at runtime. However, the kernel can fail to allocate these hugepages if the RAM is already too much used.
I think the simplest solution is to do the hugepages allocation only through command line, for both Yocto and Debian.

Benefits to SEAPATH

  • Simpler for new user
  • Clearer
  • Same solutions for both Yocto and Debian

Work to be done

Note: once this task is done, we shouln't need the roles/yocto directory anymore.

@eroussy eroussy added enhancement New feature or request question Further information is requested labels Feb 18, 2025
@eroussy
Copy link
Member Author

eroussy commented Feb 18, 2025

@insatomcat @dupremathieu What do you think of this proposition ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant