To disable processor in rhel5 you can use something like this.
Code:
# grep "processor" /proc/cpuinfo
processor : 0
processor : 1
In order to disable CPU 1, write 0 to /sys/devices/system/cpu/cpu1/online:
Code:
# echo 0 > /sys/devices/system/cpu/cpu1/online
Check /proc/cpuinfo to see if the CPU is disabled:
Code:
# grep "processor" /proc/cpuinfo
processor : 0
Notice that there is now only one processor shown (CPU 0) instead of two.
also you can edit grub.conf and pass this "maxcpus=1" to kernel while booting