Re: [PATCH] xsk: ixgbe: solve the soft interrupt 100% CPU usage when xdp rx traffic congestion

2020-07-12 Thread Yahui Chen
xdp skb-mode does not have this problem because `ixgbe_alloc_rx_buffers` always returns success and can always get the DMA address for packets. I think drv-mode should do the same. If the drv-mode app does not use the wakeup flag, the xdp queue's soft interrupt handles fewer packets but may

Re: [PATCH] xsk: ixgbe: solve the soft interrupt 100% CPU usage when xdp rx traffic congestion

2020-07-11 Thread Jakub Kicinski
On Sat, 11 Jul 2020 18:10:38 +0800 Yahui Chen wrote: > 2. If the wakeup mechanism is used, that is, use the > `XDP_UMEM_USES_NEED_WAKEUP` flag. This method takes advantage of the > interrupt delay function of ixgbe skillfully, thus solving the problem > that the si CPU is always 100%. However, it

[PATCH] xsk: ixgbe: solve the soft interrupt 100% CPU usage when xdp rx traffic congestion

2020-07-11 Thread Yahui Chen
If the user mode APP of drv-mode xsk does not process packets fast enough, the packet receiving speed is lower than the flow rate. For example, the flow rate is 1Mpps, and the APP processing speed is 10Kpss only, this will cause a series of problems: 1. If the APP doesn't use wakeup mechanism, in