하드웨어2009.11.12 14:59

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. An oft-quoted definition of the term is "the number of million times per second a processor can do absolutely nothing."

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

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));
}
[링크 : http://en.wikipedia.org/wiki/BogoMips]

어쩌면 가장 단순하면서 명쾌한(?!) cpu의 성능 측정 비교 방법이다.

2010/03/03 - [하드웨어 관련] - bogoMIPS on E5400

신고
Posted by 구차니

댓글을 달아 주세요