BogoMips
BogoMips (from "bogus" and MIPS) is a crude measurement of CPU speed made by the Linux kernel when it boots to calibrate an internal busy-loop.[src] An often-quoted definition of the term is "the number of million times per second a processor can do absolutely nothing".[src] BogoMips is a value that can be used to verify whether the processor in question is in the proper range of similar processors, i.e.[src] BogoMips represents a processor's clock frequency as well as the potentially present CPU cache.[src] It is not usable for performance comparisons among different CPUs.[src]
BogoMips (from "bogus" and MIPS) is a crude measurement of CPU speed made by the Linux kernel when it boots to calibrate an internal busy-loop.[src] An often-quoted definition of the term is "the number of million times per second a processor can do absolutely nothing".[src] BogoMips is a value that can be used to verify whether the processor in question is in the proper range of similar processors, i.e.[src] BogoMips represents a processor's clock frequency as well as the potentially present CPU cache.[src] It is not usable for performance comparisons among different CPUs.[src] $ grep -i bogomips /proc/cpuinfo * start = read_current_timer(); * will not do.[src] As we don't really know whether jiffy switch * happened first or timer_value was read first.[src] And some asynchronous * event can happen between these two events introducing errors in lpj.[src] * * So, we do * 1.[src] pre_start loops_per_jiffy is used to implement udelay (delay in microseconds) and ndelay (delay in nanoseconds) functions.[src] These functions are needed by some drivers to wait for hardware.[src] Note that a busy waiting technique is used, so the kernel is effectively blocked when executing ndelay / udelay functions.[src] For i386 architecture delay_loop is implemented in /usr/src/linux/arch/i386/lib/delay.c as: /* simple loop based delay: */ static void delay_loop(unsigned long loops) { int d0; __asm__ __volatile__( "\tjmp 1f\n" ".align 16\n" "1:\tjmp 2f\n" ".align 16\n" "2:\tdecl %0\n\tjns 2b" :"=&a" (d0) :"0" (loops)); } equivalent to the following assembler code input: eax = d0 output: eax = 0 jmp start .align 16 start: jmp body .align 16 body: decl eax jns body which can be rewritten to C-pseudocode static void delay_loop(long loops) { long d0 = loops; do { --d0; } while (d0 >= 0); } Full and complete information and details about BogoMips, and hundreds of reference entries can be found in the (outdated) BogoMips mini-Howto.[src] ==References==[src]
19 sentences · 19 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"BogoMips." encyclopegia.org, 2026, https://encyclopegia.org/wiki/bogomips. Accessed 30 November 2026.
Chicago
"BogoMips." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/bogomips.
APA
encyclopegia.org. (2026). BogoMips. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/bogomips
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON