linux下缓存命中测试,linux为什么报表缓存缓存未命中?_linux_开发99编程知识库...
在我的系統(tǒng)里 Intel Xeon X5570 @ 2.93 GHz 我能夠通過請求這些事件來獲得 perf stat 報告緩存引用和缺失perf stat -B -e cache-references,cache-misses,cycles,instructions,branches,faults,migrations sleep 5
Performance counter stats for 'sleep 5':
10573 cache-references
1949 cache-misses # 18.434 % of all cache refs
1077328 cycles # 0.000 GHz
715248 instructions # 0.66 insns per cycle
151188 branches
154 faults
0 migrations
5.002776842 seconds time elapsed
默認事件集不包括緩存事件,匹配你的結果,我不知道為什麼perf stat -B sleep 5
Performance counter stats for 'sleep 5':
0.344308 task-clock # 0.000 CPUs utilized
1 context-switches # 0.003 M/sec
0 CPU-migrations # 0.000 M/sec
154 page-faults # 0.447 M/sec
977183 cycles # 2.838 GHz
586878 stalled-cycles-frontend # 60.06% frontend cycles idle
430497 stalled-cycles-backend # 44.05% backend cycles idle
720815 instructions # 0.74 insns per cycle
# 0.81 stalled cycles per insn
152217 branches # 442.095 M/sec
7646 branch-misses # 5.02% of all branches
5.002763199 seconds time elapsed
總結
以上是生活随笔為你收集整理的linux下缓存命中测试,linux为什么报表缓存缓存未命中?_linux_开发99编程知识库...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux多网口dhcp服务绑定,Lin
- 下一篇: linux6.5 安装yum,配置Cen