Linux查看CPU核数
一、查看每个物理CPU的核数
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
二、查看物理CPU核数
cat /proc/cpuinfo| grep "cpu cores"| uniq
三、查看逻辑CUP核数
cat /proc/cpuinfo| grep "processor"| wc -l
一、查看每个物理CPU的核数
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
二、查看物理CPU核数
cat /proc/cpuinfo| grep "cpu cores"| uniq
三、查看逻辑CUP核数
cat /proc/cpuinfo| grep "processor"| wc -l