Rate This Document
Findability
Accuracy
Completeness
Readability

Tuning GRUB Parameters

Modify the GRand Unified Bootloader (GRUB) configurations, including the nohz, cgroup_disable, idle, and numa parameters, to optimize the OS startup and running performance.

  1. Modify the GRUB configuration file.
    1. Open the file.
      vim /etc/default/grub
    2. Press i to enter the insert mode and modify the startup parameters.
      Find the GRUB_CMDLINE_LINUX line in the file and add the following content:
      nohz=off cgroup_disable=files idle=poll
      Delete the following content:
      numa=off
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. Generate a new GRUB configuration file.
    grub2-mkconfig -o /boot/efi/EFI/bclinux/grub.cfg
  3. Restart the OS for the GRUB configuration modification to take effect.
    reboot
  4. Check whether the modifications take effect.
    After the OS is restarted, check the /proc/cmdline file. If the file contains nohz=off cgroup_disable=files idle=poll, and numa=off is deleted, the modification has taken effect.
    cat /proc/cmdline