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

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

你可能感兴趣的:(Why is ksoftirqd using 100% of the CPU?)