Rain:面向微秒级工作负载的RDMA辅助网络内调度
Rain: RDMA-assisted In-Network Scheduling for Microsecond-scale Workloads
AI总结:
针对微秒级服务时间与严格尾延迟需求,提出基于可编程交换机的RDMA辅助网络内调度器Rain,通过双向排队机制、交换驱动RDMA写入和切片感知调度,实现比现有最优方案高1.75倍的吞吐量。
摘要:
现代数据中心应用日益需要微秒级服务时间和严格的尾延迟要求,而现有的网络内任务调度器由于其固有限制难以实现。具体而言,基于软件的调度器难以平衡吞吐量和延迟,而基于交换机的设计要么缺乏全局协调,要么严重依赖数据包重循环,或者对大型任务的支持有限。鉴于现有技术的这些限制,我们在本文中提出了Rain,一种构建在可编程交换机之上的RDMA辅助网络内调度器,它维护集中式队列同时限制工作节点本地队列。Rain引入了一种双向交换机排队机制,直接在交换机中缓冲和匹配任务与工作节点发出的令牌,避免了工作节点侧的轮询,并近似了无全局聚合的加入最短队列的最优行为。交换驱动RDMA引擎通过单边WRITE多播预写入任意大的任务,仅在交换机上保留紧凑的元数据。切片感知调度进一步将决策定位到更同质的队列,减少了分散引起的队头阻塞。此外,我们的研究表明,现实系统可能偏离理论预测:较浅的工作节点队列并不总是改善尾延迟。利用这一见解,Rain结合了一种自适应调度策略,在运行时优化工作节点队列深度和工作节点到切片的映射。使用真实应用RocksDB的评估表明,Rain在满足相同尾延迟要求的同时,吞吐量比性能最佳的现有技术高1.75倍。
英文摘要:
Modern data center applications increasingly require microsecond-scale service time with strict tail latency requirements, which can hardly be realized with existing in-network task schedulers due to their inherent limitations. Specifically, software-based schedulers struggle to balance throughput and latency, while switch-based designs either lack global coordination, rely on packet recirculation heavily, or only offer limited support for large tasks. In light of these restrictions of the state-of-the-arts (SOTAs), we, in this work, propose Rain, an RDMA-assisted in-network scheduler built atop programmable switches that maintains centralized queues while bounding worker-local queues. Rain introduces a bidirectional on-switch queuing mechanism to buffer and match tasks and worker-issued tokens directly in the switch, avoiding worker-side polling and approximating the optimal behavior of join-bounded-shortest-queue without global aggregation. A switch-driven RDMA engine pre-writes arbitrarily large tasks via one-sided WRITE multicasts, keeping only compact metadata on the switch. Slice-aware scheduling further localizes decisions to more homogeneous queues, reducing dispersion-induced head-of-line blocking. Moreover, our study reveals that real-world systems can diverge from theoretical predictions: shallower worker queues do not always improve tail latency. Leveraging this insight, Rain incorporates an adaptive scheduling strategy to optimize worker queue depths and worker-to-slice mappings at runtime. Evaluations with the real-world application RocksDB show that Rain achieves 1.75x higher throughput than the best-performing SOTA while satisfying the same tail latency requirement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。