Linux下查看cpu信息
#查看CPU信息(型号)
[root@ecsnode-no ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
16 Intel Core Processor (Skylake)
# 查看物理CPU个数
[root@ecsnode-no ~]# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
1
# 查看每个物理CPU中core的个数(即核数)
[root@ecsnode-no ~]# cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu cores : 8
# 查看逻辑CPU的个数
[root@ecsnode-no ~]# cat /proc/cpuinfo | grep "processor" | wc -l
16