Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Intel PMU Profiling
6 points by scrubs on May 6, 2022 | hide | past | favorite
See https://github.com/rodgarrison/rdpmc

If you've been interested in micro-benchmarking code using Intel's PMU HW capability to capture per HW core metrics, this repository may be for you. The repository includes 'doc/pmu.md' with a copy of Intel's software reference manuals (PDF) so, all in one place, you can understand and develop PMU profiling for your Intel micro architecture.

Example included. Source code is 451 LOC with comments.

Features:

* Minimum, complete

* Does not require yum install msr-tools

* Header only: include and you're done

* Works in user-space and/or kernel code

* Very low latency because PMU is

* Programmable event types. Includes support for fixed counters

* Well documented

* Handles thread pinning if requested

* Simpler than PAPI, Nanobench, and PCM by one or two orders of 10.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: