Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
28 Views

Questions on several L2 events in SNB

Hi,

I'm tuning 462.libquantum with PMU events in SNB. Several L2 events confuse me.

1) l2_rqsts.pf_hit (24H:40H): Requests from L2 Hardware prefetcher that hit L2.
What's L2 Hardware prefetcher?  Where the data it prefetchs go? Why it access L2?
There are two types of prefetchres in SNB according to the Intel manual. One is "prefetch to L1" and another is "prefetch to L2/LLC". My understanding is that L2 Hardware prefetchre belongs to the latter. Right? 

2) What's the difference between l2_rqsts.all_demand_data_rd (24H:03H) and l2_trans.demand_data_rd (F0H:01H)?
l2_rqsts.all_demand_data_rd: Counts any demand and L1 HW prefetch data load request to L2.
l2_trans.demand_data_rd: Demand data read requests tha access L2 Cache
That is, l2_rqsts.all_demand_data_rd - l2_trans.demand_data_rd = Number of L1 HW prefetches?

3) What's LLC prefetch? I see the term in the description of l2_trans.all_pf. "L2 or LLC prefetches that access L2"

Thanks a ton!

0 Kudos
4 Replies
Highlighted
28 Views

Hello yuanpeng,

You can read about the prefetchers in the Optimization guide http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimizat...

It is an error in the documentation that l2_rqsts.all_demand_data_rd says it counts L1 hw prefetch. l2_rqsts.all_demand_data_rd doesn't count prefetches.

Pat

0 Kudos
Black Belt
28 Views

1)  That means that there was cache hit when data was speculatively pre-loaded into L2 cache.Prefetched data goes to LLC and/or L2 cache.I suppose that LLC  cache can be shared by multiply cores thus allowing synchronized interoperations between multithreaded process sharing the same cache.

There are two types of L2 prefetchers: a) spatial prefetcher and b) streamer prefetcher

0 Kudos
Highlighted
Beginner
28 Views

Thanks Pat and iliyapolak.

Hi iliyapolak,

As you said "cache hit when data was speculatively pre-loaded into L2 cache", the event measures "wasted" prefetch?

0 Kudos
Highlighted
Black Belt
28 Views

Can you give the description of the event?

I responded mainly to your general questions about the prefetchers

0 Kudos