コンテンツにスキップ

BogoMips

出典: フリー百科事典『ウィキペディア(Wikipedia)』

BogoMips"bogus"=+ MIPSLinuxCPU使[1]1[2][3]

BogoMips使CPU使[4][5]

[]


1993 comp.os.linux LinuxBogoMips稿[6]


MIPS Millions of Instructions Per SecondMIPS
BogoMipsLinux 0.99.111993711"Bogo"  "bogus"BogoMips BogoMips 
2使

BogoMips[]


BogoMipsCPU使LinuxBogoMipsclock CPU BogoMips  Intel 386DX CPU1[7]
システム 相対値 インデックス
Intel 8088 clock × 0.004 0.02
Intel/AMD 386SX clock × 0.14 0.8
Intel/AMD 386DX clock × 0.18 1 (これを 1 とした値)
Motorola 68030 clock × 0.25 1.4
Cyrix/IBM 486 clock × 0.34 1.8
Intel Pentium clock × 0.40 2.2
Intel486 clock × 0.50 2.8
AMD 5x86 clock × 0.50 2.8
MIPS R4000/R4400 clock × 0.50 2.8
ARM9 clock × 0.50 2.8
Motorola 8081 clock × 0.65 3.6
Motorola 68040 clock × 0.67 3.7
PowerPC 603 clock × 0.67 3.7
Intel StrongARM clock × 0.66 3.7
NexGen Nx586 clock × 0.75 4.2
PowerPC 601 clock × 0.84 4.7
Alpha 21064/21064A clock × 0.99 5.5
Alpha 21066/21066A clock × 0.99 5.5
Alpha 21164/21164A clock × 0.99 5.5
Intel Pentium Pro clock × 0.99 5.5
Cyrix Cx5x86/6x86 clock × 1.00 5.6
Intel Pentium II/III clock × 1.00 5.6
AMD K7/Athlon clock × 1.00 5.6
Intel Celeron clock × 1.00 5.6
Intel Itanium clock × 1.00 5.6
MIPS R4600 clock × 1.00 5.6
Hitachi SH-4 clock × 1.00 5.6
Raspberry Pi (Model B) clock × 1.00 5.6
Intel Itanium 2 clock × 1.49 8.3
Alpha 21264 clock × 1.99 11.1
VIA Centaur clock × 1.99 11.1
AMD K5/K6/K6-2/K6-III clock × 2.00 11.1
AMD Duron/Athlon XP clock × 2.00 11.1
AMD Sempron clock × 2.00 11.1
UltraSparc II clock × 2.00 11.1
Intel Pentium MMX clock × 2.00 11.1
Intel Pentium 4 clock × 2.00 11.1
Intel Pentium M clock × 2.00 11.1
Intel Core Duo clock × 2.00 11.1
Intel Core 2 Duo clock × 2.00 11.1
Intel Atom N455 clock × 2.00 11.1
Centaur C6-2 clock × 2.00 11.1
PowerPC 604/604e/750 clock × 2.00 11.1
Intel Pentium III Coppermine clock × 2.00 11.1
Intel Pentium III Xeon clock × 2.00 11.1
Motorola 68060 clock × 2.01 11.2
Intel Xeon MP (32-bit)ハイパースレッディング clock × 3.97 22.1
IBM S390 データが不十分
Intel ARM データが不十分

BogoMips BogoMips Mimi-Howto 

Linux 2.2.14 BogoMipsBogoMips Pentium CPUBogoMips2BogoMips

BogoMIPS[]


Linux (2.6.x)  BogoMips  /usr/src/linux/init/calibrate.c Linux使 loops_per_jiffy Jiffy 
 /*
   * A simple loop like
   *  while ( jiffies < start_jiffies+1)
   *    start = read_current_timer();
   * will not do. As we don't really know whether jiffy switch
   * happened first or timer_value was read first. And some asynchronous
   * event can happen between these two events introducing errors in lpj.
   *
   * So, we do
   * 1. pre_start <- When we are sure that jiffy switch hasn't happened
   * 2. check jiffy switch
   * 3. start <- timer value before or after jiffy switch
   * 4. post_start <- When we are sure that jiffy switch has happened
   *
   * Note, we don't know anything about order of 2 and 3.
   * Now, by looking at post_start and pre_start difference, we can
   * check whether any asynchronous event happened or not
   */

loops_per_jiffy udelayμndelay使使i386 /usr/src/linux/arch/i386/lib/delay.c  delay_loop 
/* 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));
}

これをCの擬似コードで書き直すと、次のようになる。

static void delay_loop(long loops)
{
  long d0 = loops;
  do {
    --d0;
  } while (d0 >= 0);
}

BogoMipsのさらなる詳細と(ほとんどが古いが)数百のBogoMips値が BogoMips mini-Howto[4] にある。

脚注[編集]



(一)^ Van Dorst, Wim (January 1996). The Quintessential Linux Benchmark. Linux Journal. http://www.linuxjournal.com/article/1120 2008822. 

(二)^ 1990

(三)^ Raymond, Eric S.. Hackers Jargon File. 2012715

(四)^ abVan Dorst, Wim (200632). BogoMips Mini-Howto. 2008822

(五)^ Blidung, Thomas. Re: How many BogoMips should I expect from my 486DX2 running Linux?. 2012715

(六)^ Wirzenius, Lars. Re: printing & BogoMips. 2012715

(七)^ Bekman, Stas. What is a BogoMip?. 2012715

外部リンク[編集]

この記事は2008年11月1日以前にFree On-line Dictionary of Computingから取得した項目の資料を元に、GFDL バージョン1.3以降の「RELICENSING」(再ライセンス) 条件に基づいて組み込まれている。