一、查看物理cpu個數
web
[root@webserver ~]# cat /proc/cpuinfo|grep "physical id"|sort|uniq|wc -l 1
1. 查看物理CPU的個數
#cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
2. 查看邏輯CPU的個數
#cat /proc/cpuinfo |grep "processor"|wc -l
3. 查看CPU是幾核
#cat /proc/cpuinfo |grep "cores"|uniq
4. 查看CPU的主頻
#cat /proc/cpuinfo |grep MHz|uniqide