Tag Archives: BogoMips

Linux下面查看CPU信息

# cat /proc/cpuinfo

processor       : 7
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      :                   Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 4
cpu MHz         : 2992.641
cache size      : 2048 KB
physical id     : 1
siblings        : 4
core id         : 3
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
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 syscall nx lm pni monitor ds_cpl est cid cx16 xtpr
bogomips        : 5985.13
clflush size    : 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:

 

 

BogoMips (from “bogus” and MIPS) is an unscientific measurement of CPU speed made by the Linux kernel when it boots, to calibrate an internal busy-loop.[1] An oft-quoted definition of the term is “the number of million times per second a processor can do absolutely nothing.”[2][3]

 

BogoMips can be used to see whether it is in the proper range for the particular processor, its clock frequency, and the potentially present CPU cache. It is not usable for performance comparison between different CPUs.[4]  

         BogoMips 是在linux启动的时候,通过测定内部忙循环的方式,来评价CPU速度的一种不科学的方法,

比较常见的实现方式,是通过计算每秒钟一个处理器可以执行的空循环的次数来计算BogoMips.

BogoMips 主要用来查看CPU的频率,是否在特定的范围,以及暗示这CPU cache的存在.但是这个指标,是不适合做不同CPU之间性能比较的.