how to get cache hit/miss rate on imx6ull

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to get cache hit/miss rate on imx6ull

673 Views
Yang_Gunag
Contributor I

Hi,

I want to know the hit rate of L1 cache and L2 cache, is there any way? Are there related registers that can be read? Or is there a relevant manual to read.

Labels (1)
0 Kudos
2 Replies

201 Views
mabar52
Contributor III

Hi @Zhiming_Liu , how do I get these events working on the IMX6SX, pls?

DCP2-98:/mnt/mmc# perf stat -e L1-dcache-load-misses,L1-dcache-store-misses,L1-icache-load-misses,cycles,cache-misses sleep 5

Performance counter stats for 'sleep 5':

0 L1-dcache-load-misses
0 L1-dcache-store-misses
0 L1-icache-load-misses
4145419 cycles
0 cache-misses

5.007459334 seconds time elapsed

0.008648000 seconds user
0.000000000 seconds sys

 

0 Kudos

652 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

你可以用perf工具来查看命中率。https://blog.csdn.net/stpeace/article/details/80933940 

 

BR

Zhiming

0 Kudos