Changes

Jump to: navigation, search

Vestat

173 bytes added, 15:50, 23 March 2009
let's meet reality when converting measures
Using cycles:
*seconds = ''measurement'' / cycles_per_jiffy / jiffies_per_seconds.frequency_of_your_cpu
Variables:
* ''jiffies_per_second'' = 1000 '''(more often ''100'', unless you have changed that in kernel config?, check CONFIG_HZ= in kernel .config or /proc/config.gz)'''
* ''cycles_per_jiffy'' = ''frequency_of_your_cpu'' / ''jiffies_per_second''
* ''frequency_of_your_cpu'' (in Hz) can be read from /proc/cpuinfo, as:
** <code>cpu MHz : ''frequency_of_your_cpumegahertz''</code>, and thus ''frequency_of_your_cpu'' = ''megahertz'' * 1048576 (for multiCPU machines this is based on the speed of one cpu only)
27
edits

Navigation menu