arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.16603cs.DCcs.AI
收藏

FlowPrefill: 解耦预emption与prefill调度粒度以缓解LLM服务中的头部阻塞

FlowPrefill: Decoupling Preemption from Prefill Scheduling Granularity to Mitigate Head-of-Line Blocking in LLM Serving

Tsinghua University(清华大学);University of Science and Technology Beijing(北京科技大学)

Chia-chi Hsieh, Zan Zong, Xinyang Chen, Jianjiang Li, Jidong Zhai, Lijie Wen

AI总结:

FlowPrefill通过解耦预emption与调度粒度,优化TTFT和吞吐量,缓解LLM服务中的头部阻塞问题。

摘要:

随着大型语言模型(LLMs)需求的增长,服务系统需要处理大量并发请求,这些请求具有不同的服务级别目标(SLOs)。这加剧了计算密集型prefill阶段的头部阻塞问题,其中长时间运行的请求垄断资源并延迟更高优先级的请求,导致广泛的时间到第一个token(TTFT)SLO违规。虽然分块prefill能够实现中断性,但引入了响应性和吞吐量之间的固有权衡:减少分块大小可以提高响应延迟,但会降低计算效率;而增加分块大小则最大化吞吐量,但会加剧阻塞。这需要一种自适应的预emption机制。然而,动态平衡执行粒度与调度开销仍然是一个关键挑战。在本文中,我们提出了FlowPrefill,一种优化TTFT-吞吐量的服务系统,通过解耦预emption粒度与调度频率来解决这一冲突。为了实现自适应的prefill调度,FlowPrefill引入了两个关键创新:1)操作级预emption,利用操作边界实现细粒度执行中断,而无需固定小分块带来的效率损失;2)事件驱动调度,仅在请求到达或完成事件时触发调度决策,从而在支持高效预emption响应的同时最小化控制平面开销。在真实世界生产跟踪上的评估显示,FlowPrefill相比最先进的系统在最大吞吐量上提高了高达5.6倍,同时满足异构SLOs。

英文摘要:

The growing demand for large language models (LLMs) requires serving systems to handle many concurrent requests with diverse service level objectives (SLOs). This exacerbates head-of-line (HoL) blocking during the compute-intensive prefill phase, where long-running requests monopolize resources and delay higher-priority ones, leading to widespread time-to-first-token (TTFT) SLO violations. While chunked prefill enables interruptibility, it introduces an inherent trade-off between responsiveness and throughput: reducing chunk size improves response latency but degrades computational efficiency, whereas increasing chunk size maximizes throughput but exacerbates blocking. This necessitates an adaptive preemption mechanism. However, dynamically balancing execution granularity against scheduling overheads remains a key challenge. In this paper, we propose FlowPrefill, a TTFT-goodput-optimized serving system that resolves this conflict by decoupling preemption granularity from scheduling frequency. To achieve adaptive prefill scheduling, FlowPrefill introduces two key innovations: 1) Operator-Level Preemption, which leverages operator boundaries to enable fine-grained execution interruption without the efficiency loss associated with fixed small chunking; and 2) Event-Driven Scheduling, which triggers scheduling decisions only upon request arrival or completion events, thereby supporting efficient preemption responsiveness while minimizing control-plane overhead. Evaluation on real-world production traces shows that FlowPrefill improves maximum goodput by up to 5.6$\times$ compared to state-of-the-art systems while satisfying heterogeneous SLOs.

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

↑