日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux下缓存命中测试,linux为什么报表缓存缓存未命中?_linux_开发99编程知识库...

發(fā)布時間:2023/12/18 linux 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux下缓存命中测试,linux为什么报表缓存缓存未命中?_linux_开发99编程知识库... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

在我的系統(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编程知识库...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。