#grep "physical id" /proc/cpuinfo|sort|uniq|wc -l 统计物理CPU个数 #grep ^processor/proc/cpuinfo|wc -l 统计逻辑CPU个数