Closed lddlww closed 3 months ago
Hi, I haven't tested your code, but this assumes that getting and filling are the bottlenecks. If your code works and you don't see any improvements, then I guess that's not a real bottleneck. I'd assume only a minor improvement...
The real limit is likely the ability for the Kernel / NIC to send the data. The only real way to work around that is more NIC Queues. That will allow you to parallelize this.
The real limit is likely the ability for the Kernel / NIC to send the data. The only real way to work around that is more NIC Queues. That will allow you to parallelize this.
thanks for your suggestion, and i am closing this issue now
https://github.com/atoonk/go-pktgen/blob/5ccee3f8cf0465577bb637a0d66754ec99f8c7b7/pktgen/af_xdp.go#L79C1-L95C3
i used a goroutine to produce descs , the other goroutine for send descs, their communicate with descCh channel, but it can't send any more udp traffic
i check
github.com/asavie/xdp/xdp.go
found it can't updatexsk.completionRing.Producer
am i missing something else?