Why is ksoftirqd using 100% of the CPU?

问题:系统软中断导致某个linux的cpu内核飙至100%。

场景:

系统:nginx+lua。

在做系统性能压测的时候,linux开了8个cpu给nginx,当压测到tps=3.8w的时候,网络io=85MBps,千兆网卡(理论可用128MBps),ksoftirqd/0的cpu飙至100%,导致系统再也压不上去。

分析:

This has been a longstanding linux problem. If you do a google search, the reports of this go way back to 2004, without any real answers. This seems to be mostly happening during high network activity, and looks like this is your case. Linux tcp stack has never been the greatest, so I am not surprised. This may also be related to your network interfaces and the modules they are using.

I would suggest trying different network hardware. Maybe shell out for a 10Gbit card if 1Gbit is not enough? Try without bonding?

这是引用网上的:http://serverfault.com/questions/133451/why-is-ksoftirqd-using-100-of-the-cpu

主要是说网络负载太高导致系统软中断高,具体我也不太懂。。。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值