Measuring cache miss rate
Hello,
I am new to PAPI and am trying to use it to measure the cache miss rate (in different levels) of some part of my code.
The system I am working on is an Intel Core i7 2600, with 4 cores, and 3 levels of cache (L3 is shared)
I am looking for the correct events to use for cache miss rate measurement. I define the miss rate of level X as (number of misses in level X) / (total memory accesses). However, it seems that there is no supported event that would give me the denominator. Specifically, PAPI_LST_INS is not supported on my system (tested using PAPI_query_event()), nor any other set of events that would give me this number (for example, I can retrieve PAPI_L2_DCA and PAPI_L3_DCA but not PAPI_L1_DCA). For L1 I can only get miss counters (DCM, ICM, TCM), not hit or access counters. So I see no way to measure miss rate.
What am I doing wrong? Should I use different events? Or is PAPI not the tool for me??
Thanks a lot!
I am new to PAPI and am trying to use it to measure the cache miss rate (in different levels) of some part of my code.
The system I am working on is an Intel Core i7 2600, with 4 cores, and 3 levels of cache (L3 is shared)
I am looking for the correct events to use for cache miss rate measurement. I define the miss rate of level X as (number of misses in level X) / (total memory accesses). However, it seems that there is no supported event that would give me the denominator. Specifically, PAPI_LST_INS is not supported on my system (tested using PAPI_query_event()), nor any other set of events that would give me this number (for example, I can retrieve PAPI_L2_DCA and PAPI_L3_DCA but not PAPI_L1_DCA). For L1 I can only get miss counters (DCM, ICM, TCM), not hit or access counters. So I see no way to measure miss rate.
What am I doing wrong? Should I use different events? Or is PAPI not the tool for me??
Thanks a lot!