1
cubecube 2022-03-24 10:43:00 +08:00
有没有一种可能,cpu 占用低的时候,软中断处理速率快,没堆积?
|
3
weiping1992 2022-03-24 12:17:53 +08:00 via Android
我没太明白你的问题。收取网络报文有两个阶段,一个是硬件网卡通知内核有数据到达;另一个过程是内核将内核空间的数据报文拷贝到应用程序的用户空间中。后者应该就是你说的软件中断吧
|
4
Srar 2022-03-25 02:41:33 +08:00
猜测可能是硬件多次中断在短时间内会合并成一个中断来通知,这个是 intel 网卡关于中断合并的表述:
``` When an event occurs, the adapter generates an interrupt, which allows the driver to handle the packet. At greater link speeds, more interrupts are created, and CPU rates also increase. This results in poor system performance. When you use a higher ITR setting, the interrupt rate is lower, and the result is better system performance. ``` |
5
LwZiye OP @weiping1992 看起来是的
|