cpu的配置文件 linux,如何使用linux`perf`工具生成“Off-CPU”配置文件

Brendan D. Gregg(DTrace书的作者)有趣的变种:

“Off-CPU” profiling(和

Off-CPU Flame Graph;

slides 2013, p112-137)看到,线程或应用程序被阻止(没有被CPU执行,但是等待I / O,pagefault处理程序,或由于CPU资源不足而被排除):

This time reveals which code-paths are blocked and waiting while off-CPU, and for how long exactly. This differs from traditional profiling which often samples the activity of threads at a given interval, and (usually) only examine threads if they are executing work on-CPU.

Gregg给出的示例使用dtrace,这在Linux操作系统中通常不可用.但是,有一些类似的工具(ktap,systemtap,perf)和perf,因为我认为最广泛的安装基础.通常perf生成的On-CPU配置文件(哪些功能在CPU上执行得更频繁).

>如何将Gregg的Off-CPU示例转换为Linux中的perf性能分析工具?

PS:slides from LISA13, p124中有与Off-CPU火焰记录器的systemtap变体的链接:“Yichun Zhang创建了这些,并在Linux上使用SystemTap收集数据,参见:http://agentzh.org/misc/slides/off-cpu-flame-graphs.pdf”“(CloudFlare Beer Meeting on 23 2013年8月)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值