Change the page size mounted at /dev/hugepages
The libvirt helm chart assumes that the default hugepage size is mounted at /dev/hugepages. The default size mounted at /dev/hugepages was fixed to 2M, while the kernel default huge page size was set to 1G on Baremetal, as a result the libvert pod failed to start since it was unable to write to the hugepage mount. This update changes the page size mounted at /dev/hugepages to be the same as the kernel default hugepage size. Change-Id: Icc0326b99338ca7c06b113e6991f01b838030aca Closes-Bug: 1844576 Signed-off-by: Tao Liu <tao.liu@windriver.com>
This commit is contained in:
parent
ca933be69f
commit
5545195b1a
|
@ -176,7 +176,9 @@ class platform::compute::hugetlbf {
|
|||
# will be mounted at /dev/hugepages so let's make that happen too.
|
||||
# Once we upstream a fix to the helm chart to automatically determine
|
||||
# the mountpoint then we can remove this.
|
||||
$page_size = '2M'
|
||||
include ::platform::compute::grub::params
|
||||
$default_pgsz_str = $::platform::compute::grub::params::default_pgsz
|
||||
$page_size = strip(regsubst($default_pgsz_str, 'default_hugepagesz=', ''))
|
||||
$hugemnt ='/dev/hugepages'
|
||||
$options = "pagesize=${page_size}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue