三三世界-百宝箱

文章 分类 标签
130 9 247

公告

暂无站点公告

perf:interrupt took too long 2517 2500 lowering kernel.perf_event_max_sample_rate to 79000

三三 2021-11-21 3890 0条评论 Linux使用 centoskernel errorcentos开机错误

首页 / 正文

单板启动后,会经常看到提示“perf interrupt took too long (n > x)”,这样的打印信息。

相关配置参数有:

/proc/sys/kernel/下

perf_cpu_time_max_percent:    perf分析工具最大能够占用CPU性能的百分比0:不限制1~100:百分比值
perf_event_max_sample_rate:    设置perf_event的最大取样速率,默认值为100000

perf采样使用会占用cpu,所以默认限制最大是perf_cpu_time_max_percent=25

超过就会触发上面这个告警,并调整采样速率,保持不要超过限制,也就是说如果你设置了perf_event_max_sample_rate

那么出现上面这个告警后,perf_event_max_sample_rate的值会被调整。

可以通过调高perf_cpu_time_max_percent来解决。

如果调高也不能解决,就设置为0,此时就不会在去监控cpu的占用率了。

echo 0 > /proc/sys/kernel/perf_cpu_time_max_percent
echo 10000 >  /proc/sys/kernel/perf_event_max_sample_rate

评论(0)

当前没有评论,还不快来留下第一个脚印吧


Copyright 2021 三三世界-百宝箱. All Rights Reserved.

最新评论

  • 三三

    @Doug Shume it's ok for me , you can post here.

  • refugiaguenther

    Saved as a favorite, I like your website!

  • josefa

    If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.

  • Penzu

    Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!

  • Yupoo Fendi

    Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.

  • Doug Shume

    Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.

  • SuperWind

    zh.us.to 有效
    kms.03k.org 有效
    kms.chinancce.com
    kms.shuax.com 有效
    kms.dwhd.org 有效
    kms.luody.info 有效
    kms.digiboy.ir 有效
    kms.lotro.cc 有效
    www.zgbs.cc 有效
    cy2617.jios.org 有效

  • 三三

    @         权限问题,试试sudo 再加命令。

  •         

    你好提示Permission denied 怎么办啊

日历

2024年04月

 123456
78910111213
14151617181920
21222324252627
282930    

文章目录

上一张 下一张