Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4995 Discussions

count cache misses on Atom processors

icoming
Beginner
398 Views
Hello,
I'm trying to count cache misses on Atom processors. Ideally, I would like to count cache miss in L1. But after I searched the manualhttp://software.intel.com/sites/products/documentation/hpc/amplifierxe/en-us/win/ug_docs/index.htm, I couldn't find any events that exactly count cache misses.
The closest one I found is MEM_LOAD_RETIRED.L2_MISS, which counts the number of cache misses caused by the load instruction.MEM_LOAD_RETIRED.L2_HIT also implies the number of cache misses in L1. However, it only counts cache misses caused by the load instruction. For example, if my program runs memset or memcpy, which doesn't use the load instruction but loads data to the cache, the two events don't work.
Now the question is how to count all cache misses on Atom processors no matter what causes them.
Thanks,
Da
0 Kudos
3 Replies
Kirill_R_Intel
Employee
398 Views
Try to use L2_LINES_IN like suggested in the following thread for Core 2:
0 Kudos
icoming
Beginner
398 Views
OK. If I understand correctly, L2 misses should be L2_LINES_IN.SELF.DEMAND. I'm not convinced we should useMEM_LOAD_RETIRED.L2_LINE_MISS.
0 Kudos
Peter_W_Intel
Employee
398 Views

L2_LINES_INis for L2 misses from both "Instruction prefetch" and "memory load".
MEM_LOAD_RETIRED.L2_LINE_MISS is for L2 misses from "memory load" ONLY.

0 Kudos
Reply