Skip to main content
QUICK REVIEW

[论文解读] Eiffel: Efficient and Flexible Software Packet Scheduling

Ahmed Saeed, Yimeng Zhao|arXiv (Cornell University)|Oct 6, 2018
Distributed and Parallel Computing SystemsComputer Science被引用 19
一句话总结

Eiffel 提出了一种新颖的软件包调度系统,该系统基于使用 Find First Set(FFS)指令的整数优先级队列以及一种近似队列变体,实现了每个包操作的 O(1) 时间复杂度,显著降低了 CPU 开销,并使性能比当前最先进的系统高出 3–40 倍。它还引入了新的编程抽象,以支持复杂且灵活的调度策略。

ABSTRACT

Packet scheduling determines the ordering of packets in a queuing data structure with respect to some ranking function that is mandated by a scheduling policy. It is the core component in many recent innovations to optimize network performance and utilization. Our focus in this paper is on the design and deployment of packet scheduling in software. Software schedulers have several advantages over hardware including shorter development cycle and flexibility in functionality and deployment location. We substantially improve current software packet scheduling performance, while maintaining flexibility, by exploiting underlying features of packet ranking; namely, packet ranks are integers and, at any point in time, fall within a limited range of values. We introduce Eiffel, a novel programmable packet scheduling system. At the core of Eiffel is an integer priority queue based on the Find First Set (FFS) instruction and designed to support a wide range of policies and ranking functions efficiently. As an even more efficient alternative, we also propose a new approximate priority queue that can outperform FFS-based queues for some scenarios. To support flexibility, Eiffel introduces novel programming abstractions to express scheduling policies that cannot be captured by current, state-of-the-art scheduler programming models. We evaluate Eiffel in a variety of settings and in both kernel and userspace deployments. We show that it outperforms state of the art systems by 3-40x in terms of either number of cores utilized for network processing or number of flows given fixed processing capacity.

研究动机与目标

  • 解决当前软件包调度器效率低下的问题,这些调度器依赖于 O(log n) 的基于比较的优先级队列,并产生较高的 CPU 开销。
  • 克服现有调度器编程模型(如 PIFO、OpenQueue)在缺乏对每个流调度和动态重排序支持方面的局限性。
  • 通过利用包优先级为有界范围内整数的事实,在软件中实现高性能且可扩展的包调度。
  • 在高线速率和大量流的环境下,以极低的性能开销支持广泛的调度策略。
  • 通过证明高效可编程的软件调度的可行性,为重新思考硬件包调度器设计提供基础。

提出的方法

  • 设计一种基于 Find First Set(FFS)指令的整数优先级队列,以实现 O(1) 的包插入和提取操作。
  • 提出一种紧凑的基于 FFS 的队列(cFFS),利用位操作高效定位多级数组结构中的第一个非空桶。
  • 提出一种近似优先级队列,以牺牲精确性换取性能,在特定工作负载下优于基于 FFS 的队列。
  • 设计新的编程抽象,以表达复杂的、策略驱动的调度逻辑,包括每个流的调度和出队后的动态重排序。
  • 在内核和用户空间环境中均实现 Eiffel,以评估其在多样化部署场景下的实际性能表现。
  • 使用带有桶数组的分层数据结构,将整数优先级映射到队列位置,从而最小化内存和缓存压力。

实验结果

研究问题

  • RQ1基于低级 CPU 指令(如 FFS)的整数优先级队列是否能在软件中实现 O(1) 的包调度操作?
  • RQ2在真实世界的调度工作负载下,近似优先级队列的性能与精确的基于 FFS 的队列相比如何?
  • RQ3Eiffel 中的新编程抽象在多大程度上能够表达超出 PIFO 和 OpenQueue 等现有模型能力的复杂调度策略?
  • RQ4在具有数千个流的高线速率环境下,Eiffel 的设计对 CPU 利用率和吞吐量有何影响?
  • RQ5Eiffel 的方法是否可以作为未来硬件包调度器改进的蓝图,从而减少对并行比较的依赖?

主要发现

  • Eiffel 的性能比当前最先进的软件调度器高出 3–40 倍,这一结果通过减少核心使用数量或在固定处理能力下支持更多流来衡量。
  • 基于 FFS 的整数优先级队列实现了 O(1) 的包入队和出队操作,将每个包的开销从 O(m log n) 降低到 O(m),其中 m 为排序函数的数量。
  • 在某些工作负载下,近似优先级队列的性能优于基于 FFS 的队列,表明在实践中可控的近似可以带来更好的性能。
  • Eiffel 的设计显著降低了 CPU 开销——证明即使基本的调度策略也能被高效实现,避免了以往系统中常见的 10–12% CPU 开销。
  • 该系统支持复杂的、策略驱动的调度,包括每个流的调度和动态重排序,这些在 PIFO 或 OpenQueue 等现有模型中无法表达。
  • Eiffel 的设计支持在内核和用户空间中部署,展示了其在各种网络处理环境(包括 VNF 和终端主机)中的强大性能表现。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。