How to verify list of "isolated" and "nohz_full" CPU information from sysfs?

Solution Verified - Updated -

Environment

  • RHEL 7.2 and higher.
  • RHEL 8
  • kernel-3.10.0-327.el7.x86_64 and higher.

Issue

  • How to verify list of "isolated" and "nohz_full" CPU information from sysfs?

Resolution

  • From RHEL 7.2 onwards (kernel-3.10.0-327.el7.x86_64 and higher), the isolated CPUs and nohz_full CPU information can be verified from sysfs. The information is exported under following files.
/sys/devices/system/cpu/isolated
/sys/devices/system/cpu/nohz_full

Root Cause

Diagnostic Steps

  • Verification of CPU isolation from sysfs.
# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.10.0-320.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap console=ttyS1,115200n81 isolcpus=1,5-8 nohz_full=2,7-10
# cat /sys/devices/system/cpu/isolated 
1,5-8
# cat /sys/devices/system/cpu/nohz_full 
2,7-10

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.