linux
物理: cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
逻辑: cat /proc/cpuinfo | grep "processor" | wc -l
solaris10
物理和逻辑: psrinfo -pv
aix5
物理: smtctl | grep threads | wc -l
prtconf | grep "Number Of Processors" | awk -F: '{print $2}'
逻辑: bindprocessor -q
hpux11
物理: lsdev -C | grep Processes | wc -l
echo runningprocs/D | adb -k /stand/vmunix /dev/mem
freebsd6
物理:
逻辑: dmesg | grep /SMP | awk -F: '{print $3}' | awk '{print $1}'
阅读(364) | 评论(0) | 转发(0) |