cut blog 部分 条目 pan gre process 文件的
物理CPU:物理CPU是相对于虚拟CPU而言的概念,指实际存在的处理器,就是我们可以看的见,摸得着的CPU,就是插在主板上面的。
- # 查看物理CPU个数
- cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
- # 查看每个物理CPU中core的个数(即核数)
- cat /proc/cpuinfo| grep "cpu cores"| uniq
- # 查看逻辑CPU的个数
- cat /proc/cpuinfo| grep "processor"| wc -l
- # 查看CPU型号
- cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
linux查看cpu个数,核数,逻辑cpu个数
来源: http://www.bubuko.com/infodetail-2316473.html