I am running ocount on our program to count L2 cache read events, and we have these result:
Event Count % time
counted
l2_rqsts:all_demand_data_rd 14,418,959,276 80.01
l2_rqsts:demand_data_rd_hit 6,297,000,387 80.00
l2_rqsts:demand_data_rd_miss 6,104,577,343 80.00
l2_rqsts:l2_pf_hit 667,709,870 80.01
l2_rqsts:l2_pf_miss 1,641,991,158 79.99
However we have no idea if these results should be considered as total cache trashing or not.
What do you consider a good ratio hit/miss ration for L2 cache?
I expect it highly depends on the CPU architecture and the application requirements but is there a general admissible value for it?