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.
- Modify the GRUB configuration file.
- Open the file.
vim /etc/default/grub
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Generate a new GRUB configuration file.
grub2-mkconfig -o /boot/efi/EFI/bclinux/grub.cfg
- Restart the OS for the GRUB configuration modification to take effect.
reboot
- 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
Parent topic: OS Tuning