4 ms·
Interesting stuff. Does anyone know easy way to see the instructions-per-cycle on a running (linux) server? Or is it necessary to instrument each application w
by jbert 17y ago
Interesting stuff. Does anyone know easy way to see the instructions-per-cycle on a running (linux) server?
Or is it necessary to instrument each application with hires timers and count instructions between the timer points?
- Freaky 17y agoI don't know about Linux, but on FreeBSD you can use pmcstat to instrument a running process; see pmc(3) and pmcstat(8). Linux probably has something similar. kldload: can't load hwpmc: Exec format error Meh, need a custom kernel from the look of it, HWPMC_HOOKS isn't in GENERIC :(
- jbert 17y agoThanks for the pointers. Looks like the linux/ubuntu equivalent may be 'pfmon', also not enabled in the stock kernel. I think this is the relevant project page: http://perfmon2.sourceforge.net/man/pfm_get_cycle_event.html http://perfmon2.sourceforge.net/man/pfm_get_cycle_event.html
- wmf 17y agoYou might be able to do it with oprofile or the (poorly-named) "perf" tool in the very latest kernels. Or VTune if you want a GUI.