缓存未命中百分比之后的+-#在性能统计中意味着什么? [英] What does +-# after percent of cache misses mean in perf stat?

查看:88
本文介绍了缓存未命中百分比之后的+-#在性能统计中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了 perf stat --repeat 100 -e缓存引用,缓存未命中,循环,指令,分支,故障,迁移./avx2ADD 命令和输出被跟随。 +-8.93%表示缓存丢失是什么意思,表示缓存未命中百分比等于 4.010%

I used perf stat --repeat 100 -e cache-references,cache- misses,cycles,instructions,branches,faults,migrations ./avx2ADD command and the output is followed. What does +- 8.93% for cache-misses mean when percent of cache misses is equal to 4.010 %?

 32,425      cache-references                                       ( +-  0.54% )
  1,300      cache-misses         #    4.010 % of all cache refs    ( +-  8.93% )
538,839      cycles                                                 ( +-  0.28% )
520,056      instructions         #    0.97  insns per cycle        ( +-  0.22% )
 98,720      branches                                               ( +-  0.20% )
     95      faults                                                 ( +-  0.12% )
      0      migrations                                             ( +- 70.35% )


推荐答案

+-8.93%部分在手册页中进行了描述:

The +- 8.93% part is described in manual page:


-r,--repeat =

repeat命令并打印平均值 + stddev (最多:100)。 0表示永远。

repeat command and print average + stddev (max: 100). 0 means forever.

如果您不确定 stddev 的缩写是什么,它将它是标准偏差(是的,手册页也可能更冗长)。简而言之,结果与所有重复测量有多少不同。值越小越好,但是,如果您有这么小的问题(500k条指令),则偏差会更大,因为缓存丢失可能是不确定的。

If you are not sure what is meant be abbreviation of stddev, it it Standard Deviation (yes, also there could be manual page more verbose). In short, how much the results differ from all the repeated measurements. Less value is better, but if you have such a small problem (500k instructions), deviation will be larger, because cache-misses might be non-deterministic.

百分比 4.010%表示上述描述中的平均值

The percentage 4.010 % then means the average from the description above.

这篇关于缓存未命中百分比之后的+-#在性能统计中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆