1.查看物理CPU个数
cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l
2.查看每个物理CPU含有的core个数
cat /proc/cpuinfo |grep "cpu cores"|uniq
3.查看逻辑CPU个数(逻辑CPU个数=物理CPU个数*core个数)
cat /proc/cpuinfo |grep "processor"|wc -l
1.查看物理CPU个数
cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l
2.查看每个物理CPU含有的core个数
cat /proc/cpuinfo |grep "cpu cores"|uniq
3.查看逻辑CPU个数(逻辑CPU个数=物理CPU个数*core个数)
cat /proc/cpuinfo |grep "processor"|wc -l