【发布时间】:2014-04-05 14:17:13
【问题描述】:
有人知道性能统计结果中 stalled-cycles-frontend 和 stalled-cycles-backend 是什么意思吗?我在互联网上搜索但没有找到答案。谢谢
$ sudo perf stat ls
Performance counter stats for 'ls':
0.602144 task-clock # 0.762 CPUs utilized
0 context-switches # 0.000 K/sec
0 CPU-migrations # 0.000 K/sec
236 page-faults # 0.392 M/sec
768956 cycles # 1.277 GHz
962999 stalled-cycles-frontend # 125.23% frontend cycles idle
634360 stalled-cycles-backend # 82.50% backend cycles idle
890060 instructions # 1.16 insns per cycle
# 1.08 stalled cycles per insn
179378 branches # 297.899 M/sec
9362 branch-misses # 5.22% of all branches [48.33%]
0.000790562 seconds time elapsed
【问题讨论】:
-
我不确定真正的问题是什么。在问 CPU 的前端和后端是什么?请仔细阅读high level introduction。这能回答你的问题吗?
-
我搜索并搜索了一个类似的答案...这是我从英特尔找到的最有用的资源:@987654322@
-
不,几乎没有人知道它们的真正含义。但是参考手册(如 Manuel Selva 的回答)和这篇文章(我还不完全理解)是我找到的最接近的:sites.utexas.edu/jdm4372/2014/06/04/…
标签: linux performance optimization computer-architecture cpu-architecture