了解 CentOS 7 上 perf 的结果

Understand results from perf on CentOS 7

我正在尝试获取 MPI 应用程序的一些分析结果。我在CentOS 7上使用了perf report命令,网上搜索了一下,找到了perf的一些wiki,还是没找到前三列的意思。

根据 perf Tutorial 第一个是 开销 第二个是 自身开销

The column 'Overhead' indicates the percentage of the overall samples collected in the corresponding function.

输出中的第 3 列是事件发生的次数,称为 period:

The perf tool defaults to the average rate. It is set to 1000Hz, or 1000 samples/sec. That means that the kernel is dynamically adjusting the sampling period to achieve the target average rate. The adjustment in period is reported in the raw profile data. In contrast, with the other mode, the sampling period is set by the user and does not vary between samples. There is currently no support for sampling period randomization.