How to calculate cache miss rate ?
hello,everyone.
Is there any open-souce software which is able to calculate the
cache miss rate of some archs like arm, mips, not only on x86 ?
I have found that valgrind can simulate the cache miss rate, but as
you can see, valgrind now can only be run on x86 and PPC.
$ valgrind --tool=cachegrind /tmp/helloworld
hello,world.
==31085==
==31085== I refs: 100,720
==31085== I1 misses: 606
==31085== L2i misses: 602
==31085== I1 miss rate: 0.60%
==31085== L2i miss rate: 0.59%
==31085==
==31085== D refs: 52,260 (36,074 rd + 16,186 wr)
==31085== D1 misses: 808 ( 634 rd + 174 wr)
==31085== L2d misses: 753 ( 586 rd + 167 wr)
==31085== D1 miss rate: 1.5% ( 1.7% + 1.0% )
==31085== L2d miss rate: 1.4% ( 1.6% + 1.0% )
==31085==
==31085== L2 refs: 1,414 ( 1,240 rd + 174 wr)
==31085== L2 misses: 1,355 ( 1,188 rd + 167 wr)
==31085== L2 miss rate: 0.8% ( 0.8% + 1.0% )
Best wishes,
robert
|