Cc: Christoph Lameter <cl@...>, linux kernel <linux-kernel@...>, Andi Kleen <andi@...>, David Miller <davem@...>, <jesse.brandeburg@...>, <netdev@...>, <haoki@...>, <mchan@...>, <davidel@...>
I tried this perf stuff and got strange results on a cpu burning bench,
saturating my 8 cpus with a "while (1) ;" loop
# perf stat -a sleep 10
Performance counter stats for 'sleep':
80334.709038 task clock ticks (msecs)
80638 context switches (events)
4 CPU migrations (events)
468 pagefaults (events)
160694681969 CPU cycles (events)
160127154810 instructions (events)
686393 cache references (events)
230117 cache misses (events)
Wall-clock time elapsed: 10041.531644 msecs
So its about 16069468196 cycles per second for 8 cpus
Divide by 8 to get 2008683524 cycles per second per cpu,
which is not 3000000000 (E5450 @ 3.00GHz)
It seems strange a "jmp myself" uses one unhalted cycle per instruction
and 0.5 halted cycle ...
Also, after using "perf stat", tbench results are 1778 MB/S
instead of 2610 MB/s. Even if no perf stat running.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html