我确实有一些使用DPDK的经验,但目前我正在阅读许多关于XDP的博客。我试图比较这两种技术,并理解DPDK和XDP之间的区别。这引起了一些问题。我希望有人能帮助我回答以下几个问题:
带有DPDK的
提前感谢您的帮助!
发布于 2020-05-09 02:08:36
With DPDK I can map workers to CPU cores and isolate CPU cores which will be used by DPDK. In case of eBPF / XDP, which CPU cores are used?回答: eBPF的XDP运行在内核空间,与DPDK用户空间不同。
Are all available CPU cores used?回答:是的,但通常情况下,不平衡或中断固定会将端口的RX队列放到特定的核心上。
Would it be possible to isolate CPU cores meant for eBPF / XDP programs?回答:您指的是KERNEL_CMD_LINE选项isol,这种理解是不正确的。如前所述,您可以插入RX队列的中断,强制在该核心上运行eBPF XDP。
When I test the throughput from a DPDK application, I'm able to check whether ring buffers (mempools) are full so packets will be lost. But how can I check whether an eBPF / XDP program causes packet drops because the throughput is too high?答案:您可以使用NIC和eBPF计数器的组合来实现相同的功能。
I assume when an eBPF / XDP program takes too much time to process a packet, eventually, you will see packet drops? (especially when sending 64B packets on a high rate to find the maximum number of packets that can be send)回答:不一定正确,XDP的最佳性能是使用零拷贝驱动程序对用户进行访问.在单独的核心上运行应用程序线程提供了与DPDK几乎相当的性能(用2*10 10Gbps 95%的DPDK性能测试)。
https://stackoverflow.com/questions/61666624
复制相似问题