Visible to Intel only — GUID: eih1627687467918
Ixiasoft
3.5.2.5.1.2. Set the Boot Parameters
Follow the below step to modify the default hugepages setting in grub files:
- Edit /etc/default/grub file.
- Append the highlighted parameters in GRUB_CMDLINE_LINUX line in /etc/default/grub file.
GRUB_CMDLINE_LINUX=" rd.lvm.lv=centos/root\ rd.lvm.lv=centos/swap rhgb default_hugepagesz=1G hugepagesz=1G\ hugepages=40 panic=1 iommu=pt
- For AMD system, MSIX mode add the following to the GRUB file iommu=soft.
- Append the highlighted parameters in GRUB_CMDLINE_LINUX line in /etc/default/grub file.
- Generate GRUB configuration files:
To check whether the boot system is legacy or EFI based, use the following file.
$ls -al /sys/firmware/efi
If this file is present, then the boot system is EFI based; otherwise, legacy:- If it is a legacy system, execute the following command:
$ grub2-mkconfig -o /boot/grub2/grub.cfg
- If it is an EFI based system, execute the following command:
$ grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
- If it is a legacy system, execute the following command:
- Reboot the system.
- Verify the above changes:
$ cat /proc/cmdline