cancel
Showing results for 
Search instead for 
Did you mean: 

General Discussions

Kanwal_Aftab
Journeyman III

Counting L3 cache access event on Amd Zen 2 processors

I am trying to figure out the event to use with the perf stat command to count L3 cache accesses on an AMD Zen 2 processor. As per the PPR (http://developer.amd.com/wordpress/media/2017/11/54945_PPR_Family_17h_Models_00h-0Fh.pdf), section 2.1.13.4.1, page 168, the event is x01 and the umask is x80 for "[L3 Cache Accesses] (L3RequestG1)". From what I understand, the event to use in perf stat command would thus be r8001. But the following command always returns the count as zero no matter what load I run:

perf stat -a -e r8001 -- sleep 10 Website

Performance counter stats for 'system wide':

             0      r8001                                                       

10.001105322 seconds time elapsed

Am I misinterpreting the PPR or does [L3 Cache Accesses] (L3RequestG1) mean something else?

Also, is there a way to specify the slice of L3 cache to monitor for events in perf as most of the newer architectures with high core counts have multiple L3 slices.

0 Likes
0 Replies