Re: BogoMIPS and magical values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 17, 2008 at 10:06 AM, Denis Kirjanov <kirjanov@xxxxxxxxx> wrote:
> Hi!
>
> The function calibrate_delay() from init/main.c comtains the following line:
> printk(KERN_CONT "%lu.%02lu BogoMIPS (lpj=%lu)\n",
>             loops_per_jiffy/(500000/HZ),
>             (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy);
>
> Please explain how bogoMIPS is computed. Why loops_per_jiffy is divided by
> 500000.

Chapter 7 can be useful.

http://lwn.net/Kernel/LDD3/

Notice that it's (500000/HZ), not just 500000.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux