Showing posts with label stopping a processor in linux. Show all posts
Showing posts with label stopping a processor in linux. Show all posts

Friday, January 18, 2013

Disabling a CPU in running Linux System


  • 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