Community
cancel
Showing results for 
Search instead for 
Did you mean: 
kai_w_
Beginner
112 Views

PEBS for Haswell architecture

Hi all, I'm new for PEBS (Precise Event Based Sampling), I want to collect CPU stalled cycle due to memory access based on PEBS (need bound to specific data address), is there any event I can use on Hawell EP architecture? My CPU is Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz. Also, is there any document or link describe about all events support PEBS? Thanks.

0 Kudos
2 Replies
McCalpinJohn
Black Belt
112 Views

You should certainly start with Chapter 18 of Volume 3 of the Intel Architectures Software Developer's Manual (document 325384, revision 060 is dated September 2016).   This describes the configuration of PEBS control registers and the contents of the data records provided by the PEBS facilities.

Because PEBS uses performance counter interrupts to deliver the data records to the OS, there is a fair amount of software involved.   I don't think that there are a lot of performance monitoring tools that support PEBS at this time, but there is certainly some level of support in the "perf events" infrastructure of recent Linux kernels.  (For the most recent kernels, see http://www.paradyn.org/petascale2016/slides/CSCADS2016_perf_events_status_update.pdf) ;

Thomas_W_Intel
Employee
112 Views

You might also want to have a look at Andi's sample tools: https://github.com/andikleen/pmu-tools

They include an example to collect raw pebs.

 

Kind regards

Thomas

Reply