- The following command will disable a CPU:
# echo 0 > /sys/devices/system/cpu/cpuX/online
where X is the ID of the CPU as determined from /proc/cpuinfo.
- To re-enable the CPU, run:
# echo 1 > /sys/devices/system/cpu/cpuX/online
verify by # cat /proc/cpuinfo