很老调的问题了:

cat /proc/cpuinfo

......
processor    : 31  
vendor_id    : GenuineIntel  
cpu family    : 6  
model        : 62  
model name    : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz  
stepping    : 4  
microcode    : 1064  
cpu MHz        : 2599.927  
cache size    : 20480 KB  
physical id    : 1  
siblings    : 16  
core id        : 7  
cpu cores    : 8  
apicid        : 47  
initial apicid    : 47  
fpu        : yes  
fpu_exception    : yes  
cpuid level    : 13  
wp        : yes  
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms  
bogomips    : 5199.23  
clflush size    : 64  
cache_alignment    : 64  
address sizes    : 46 bits physical, 48 bits virtual  
power management:  

看看有用的:

model name是Intel Xeon E5-2650 v2 2.6G

processor : 31
从0开始算,说明有32个逻辑核

cpu cores : 8
说明是8个物理核

siblings : 16
说明是超线程的,线程总数是16

cat /proc/cpuinfo |grep "physical id"  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  
physical id    : 0  
physical id    : 1  

physical id是0和1,说明实际是2颗物理cpu

合并一下就是:Intel Xeon E5-2650 v2 2.6G两颗cpu,8核16线程,top看32个逻辑cpu。

comments powered by Disqus