Copied from
https://www.linkedin.com/pulse/cpu-isolation-affinity-linux-vinit-tirnagarwar
3. To check CPU isolation is done or not. Fire below command
cat /sys/devices/system/cpu/isolated Isolated CPU number you will get as output. If No Cpu is isolated then you will get an empty Output
Note: This change will be applicable for current boot only. Once system is rebooted settings will go away.
*To isolate CPU permanently for every boot done by grub follow below method.
1. In kernel boot options we can provide kernel boot parameter. “ isolcpus= ‘CPU Number’ ” In grub config we can mention this boot parameter. To update grub config mention this parameter in file “/etc/default/grub” mention parameter as isolcpus=2 in front of GRUB_CMDLINE_LINUX which says isolate cpu number 2.
Note: remember you can’t isolate all the processors.
For example: GRUB_CMDLINE_LINUX = “isolcpu=0-2”
arameter as isolcpus=2 in front of GRUB_CMDLINE_LINUX which says isolate cpu number 2.
Updating Grub boot loader on an RHEL or CentOS Linux
Open the terminal app
Edit the /etc/default/grub as per your needs. For example:
sudo vim /etc/default/grub
Type the following command as root user:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Reboot your Linux box
sudo reboot
No comments:
Post a Comment