how to get cache hit/miss rate on imx6ull

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to get cache hit/miss rate on imx6ull

675 次查看
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.

标签 (1)
0 项奖励
2 回复数

203 次查看
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 项奖励

654 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

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

 

BR

Zhiming

0 项奖励