Wednesday, April 6, 2011

Enable/Disable CPUs in Linux

cd /sys/devices/system/cpu

ls -l ... shows cpus
grep processor /proc/cpuinfo

echo 0 > cpuN/online ... disables that cpu
echo 1 > cpuN/online ... enables that cpu

or

use kernel boot parameters maxcpus=XX

No comments:

Post a Comment