how to get cache hit/miss rate on imx6ull

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to get cache hit/miss rate on imx6ull

676件の閲覧回数
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 返答(返信)

204件の閲覧回数
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 件の賞賛

655件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

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

 

BR

Zhiming

0 件の賞賛