Multi Channel DMA Intel® FPGA IP for PCI Express Design Example User Guide

ID 683517
Date 4/29/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.5.2.5.1.2. Set the Boot Parameters

Follow the below step to modify the default hugepages setting in grub files:

  1. Edit /etc/default/grub file.
    1. 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
    2. For AMD system, MSIX mode add the following to the GRUB file iommu=soft.
  2. 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
  3. Reboot the system.
  4. Verify the above changes:
    $ cat /proc/cmdline