arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10513cs.NI
收藏

理解基于 AF_XDP 的应用中的延迟

Understanding Delays in AF\_XDP-based Applications

Killian Castillon du Perron, Dino Lopez Pacheco, Fabrice Huet

AI总结:

本文通过实验研究AF_XDP生态系统中多套接字参数与系统配置对延迟的影响,利用分类算法识别关键参数,发现最优配置可将往返延迟降至6.5微秒。

摘要:

由于复杂的网络栈,Linux 上的数据包处理可能很慢。为了解决这个问题,主要有两种解决方案:eXpress Data Path (XDP) 和 Data Plane Development Kit (DPDK)。XDP 和 AF_XDP 套接字与遗留系统提供完全的互操作性,并且正被 Open vSwitch 或 Facebook 等主要互联网参与者采用。尽管文献中已经研究过 AF_XDP 与内核中的遗留协议栈或与 DPDK 相比的性能评估,但多个套接字参数和系统配置对其延迟的影响却被搁置一旁。为了解决这个问题,我们进行了一项实验研究,以了解 XDP/AF_XDP 生态系统并检测微秒级延迟,从而更好地构建未来的延迟敏感型应用。由于 AF_XDP 的性能取决于在不同层中发现的多个参数,因此找到最小化其延迟的配置是一项具有挑战性的任务。我们依靠分类算法对性能结果进行分组,使我们能够轻松识别在不同负载下对性能影响最大的参数。最后但同样重要的是,我们表明某些配置会显著降低 AF_XDP 的优势,导致不良行为,而其他配置能够将此类往返延迟减少到最佳情况下 6.5 μs 的惊人值,包括追踪开销。总之,AF_XDP 是一种很有前途的解决方案,仔细选择应用和套接字参数可以显著提高性能。

英文摘要:

Packet processing on Linux can be slow due to its complex network stack. To solve this problem, there are two main solutions: eXpress Data Path (XDP) and Data Plane Development Kit (DPDK). XDP and the AF XDP socket offer full interoperability with the legacy system and is being adopted by major internet players like Open vSwitch or Facebook. While the performance evaluation of AF XDP against the legacy protocol stack in the kernel or against DPDK has been studied in the literature, the impact of the multiple socket parameters and the system configuration on its latency has been left aside. To address this, we conduct an experimental study to understand the XDP/AF XDP ecosystem and detect microseconds delays to better architect future latency-sensitive applications. Since the performance of AF XDP depends on multiple parameters found in different layers, finding the configuration minimizing its latency is a challenging task. We rely on a classification algorithm to group the performance results, allowing us to easily identify parameters with the biggest impact on performance at different loads. Last, but not least, we show that some configurations can significantly decrease the benefits of AF XDP, leading to undesirable behaviors, while other configurations are able to reduce such round trip delays to an impressive value of 6.5 $μ$s in the best case, including the tracing overhead. In summary, AF XDP is a promising solution, and careful selection of both application and socket parameters can significantly improve performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑