meltdown

CentOS查看CPU核心数及cpuinfo解析

a 夏天 提交于 2020-11-09 17:13:02
物理 CPU 核数 $ cat /proc/cpuinfo | grep "cpu cores"| uniq cpu cores : 4 $ cat /proc/cpuinfo | grep "cpu cores"| wc -l 4 逻辑 CPU 核数 $ cat /proc/cpuinfo| grep "processor"| uniq processor : 0 processor : 1 processor : 2 processor : 3 processor : 4 processor : 5 processor : 6 processor : 7 $ cat /proc/cpuinfo| grep "processor"| wc -l 8 /proc/cpuinfo 解析 $ cat /proc/cpuinfo 输出结果 processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 85 model name : Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz stepping : 4 microcode : 0x2006906 cpu MHz : 3398.864 cache size : 25344 KB physical id : 0 siblings : 2