Dear Valgrind users,

I am using Cachegrind to study the cache miss behavior of our program. I need 
to collect the last level cache misses in bytes. According to the online manual 
http://valgrind.org/docs/manual/cg-manual.html (related parts are copied at the 
end for reference), Cachegrind outputs the number of misses. To my 
understanding, the amount in bytes can be calculated as follows
Misses in bytes = (the number of misses) * (line size of the cache)

where the line size can be configured with option such as 
--LL=<size>,<associativity>,<line size>. Is my understanding correct? If not, 
could you tell me how to calculate the misses in bytes?

Copied from the manual:
Cache accesses for instruction fetches are summarised first, giving the number 
of fetches made (this is the number of instructions executed, which can be 
useful to know in its own right), the number of I1 misses, and the number of LL 
instruction (LLi) misses.
Cache accesses for data follow. The information is similar to that of the 
instruction fetches, except that the values are also shown split between reads 
and writes (note each row's rd and wr values add up to the row's total).

Thanks and regards,

Xiang
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to