hugepages_example
First project (example) using hugepage 1G. Centos Linux 3.10.0-1127.el7.x86_64.
-
Backup files to /home/user/grub_backup/etc_default_grub - grub /home/user/grub_backup/boot_efi_EFI_centos - grub.cfg
-
Add to /etc/default/grub parameters: hugepagesz=1g hugepages=64 default_hugepagesz=1g
-
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
-
Reboot
-
dmesg logs that allocate 13 pages: HugeTLB: allocating 64 of page size 1 GB failed. Only allocated 13 hugepages.