查看cpu个数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
查看cpu核数
cat /proc/cpuinfo| grep "cpu cores"| uniq
查看逻辑cpu个数
cat /proc/cpuinfo| grep "processor"| wc -l