内核,用户和系统的Perf差异

时间:2017-10-04 20:52:34

标签: linux performance linux-kernel perf

有人可以在perfkerneluser空间使用system进行性能分析之间的差异给出更好的技术答案吗?

perf文档has details here,但我不确定我是否在用户空间收集数据,这比收集内核空间更有洞察力吗?

enter image description here

要提供更多详细信息,请遵循perf stat命令之间的主要区别。

系统范围

perf stat -a --per-core -e instructions <application>

用户空间

perf stat -a --per-core -e instructions:u <application>

内核空间

perf stat -a --per-core -e instructions:k <application>

用户和内核空间

perf stat -a --per-core -e instructions:uk <application>

0 个答案:

没有答案