If you're interested in capturing performance metrics per CPU (with zero
overhead) I suggest looking at  /proc/interrupts and /proc/softirqs.
For more detailed data you'd need to use the PMU to capture on- and
off-core events but that's:
either
1) non-zero overhead
or
2) inaccurate for more than a few counters gathered at the same time (would
require multiplexing).

Hope this helps


On Thu, 29 Nov 2018, 22:23 Greg Young, <[email protected]> wrote:

> take a look at http://libcpuid.sourceforge.net/index.html
>
> On Thu, Nov 29, 2018 at 5:19 PM Mani Sarkar <[email protected]> wrote:
>
>> Hi,
>>
>> Haven't written here for a long time. I have a query about probing CPUs
>> (via commands and/or programs) to find out vital information about them
>> mostly speed/performance related.
>>
>> I have put together this cheat-sheet for doing something like that for
>> GPUs -
>> https://gist.github.com/neomatrix369/256913dcf77cdbb5855dd2d7f5d81b84,
>> and would like to do something similar for CPUs as well, covering all three
>> OSes.
>>
>> I know the GPU list is missing a good deal for the MacOS and Windows.
>> Some of you might say Macs do have GPUs, many do have.
>>
>> Any thoughts?
>>
>> Cheers
>> Mani
>> --
>>
>> @theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
>> <http://neomatrix369.wordpress.com/>**  | *@adoptopenjdk
>> <http://twitter.com/adoptopenjdk> @graalvm <http://twitter.com/graalvm>
>> @graal <http://twitter.com/graal> @truffleruby
>> <http://twitter.com/truffleruby> | Dev. communities | *Bitbucket
>> <https://bitbucket.org/neomatrix369>* * |  **Github
>> <https://github.com/neomatrix369>* * | * *Slideshare
>> <https://slideshare.net/neomatrix369>* * | **LinkedIn
>> <http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b>*
>> *Come to Devoxx UK 2019:* http://www.devoxx.co.uk/
>>
>> *Don't chase success, rather aim for "Excellence", and success will come
>> chasing after you!*
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "mechanical-sympathy" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Studying for the Turing test
>
> --
> You received this message because you are subscribed to the Google Groups
> "mechanical-sympathy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to