You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Abstract
Two different mechanism are used to add hugepages:
hugetlb-gigantic-pages.service
We should use and test only one mechanism.
Current status
On Yocto :
default_hugepagesz=1G hugepagesz=1G
are added by default.Method 1 :
hugepages=N
to this command lineMethod 2 :
yocto_hugepages
roles/yocto/hugepages
hugetlb-gigantic-pages.service
on the hypervisorOn Debian:
default_hugepagesz=1G hugepagesz=1G hugepages=N
hugetlb-gigantic-pages.service
was originally provided, but removed in 0e9b0abDetailed 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
Work to be done
hugetlb-gigantic-pages.service
from yocto build in https://github.com/seapath/meta-seapathdefault_hugepagesz=1G hugepagesz=1G
in https://github.com/seapath/meta-seapathNote: once this task is done, we shouln't need the
roles/yocto
directory anymore.The text was updated successfully, but these errors were encountered: