几个cpu
more /proc/cpuinfo |grep “physical id”|uniq|wc -l
每个cpu是几核(假设cpu配置相同)
more /proc/cpuinfo |grep “physical id”|grep “0”|wc -l
有几个进程
cat /proc/cpuinfo | grep processor
几个cpu
more /proc/cpuinfo |grep “physical id”|uniq|wc -l
每个cpu是几核(假设cpu配置相同)
more /proc/cpuinfo |grep “physical id”|grep “0”|wc -l
有几个进程
cat /proc/cpuinfo | grep processor