A Controlled Experimental Evaluation of Configuration and Cache Architecture in LLM Serving Engines
- ID: 9cdd0754
- 原文链接: https://arxiv.org/abs/2611.05991
- PDF: https://arxiv.org/pdf/2611.05991v1
- 作者: Muhammad Faizan Anwar, Sina Keshvadi
- 日期: 2026-11-04
- 更新: 2026-11-04
- 分类: infra
- 来源类型: paper
- 标签: llm-serving, vllm, sglang, chunked-prefill, benchmarking
- 质量评分: 4/5
- 抓取时间: 2026-11-10T04:23:26Z
中文导读
多智能体 LLM 应用会在请求间重复大量 prompt token,vLLM 与 SGLang 对共享前缀缓存的复用粒度不同,基准测试常把两者的性能差距直接归因于缓存,却很少控制其他配置差异。作者在 Kubernetes 上搭建可复现测试床,用带种子的多智能体负载生成器,在厂商默认配置与对齐 chunked prefill 两种条件下对比两引擎:默认配置下 vLLM 的中位首 token 时间最高达 SGLang 的 64 倍;仅对齐 chunked prefill 一项设置,即可消除最大 78% 的容量差距和 30-67% 的延迟差距。匹配后仍保留的是同等吞吐下 SGLang 2.4-6.4 倍的尾延迟优势,与缓存感知的请求排序一致。论文据此给出六条服务引擎对比建议。
为什么值得关注
引擎横向对比若不控制 chunked prefill 这类由硬件和版本决定的默认配置,结论会严重失真。这个可控实验把 vLLM/SGLang 差距分解成配置效应与真实的缓存调度优势两部分,对自建推理服务的选型和 benchmark 方法论都有直接参考价值(29 页,工件已开源)。
关键信息
- 论文标题:A Controlled Experimental Evaluation of Configuration and Cache Architecture in LLM Serving Engines
- 作者:Muhammad Faizan Anwar, Sina Keshvadi
- arXiv:https://arxiv.org/abs/2611.05991
- 发布时间:2026-11-04
- arXiv 分类:cs.DC, cs.LG, cs.PF
- 关联标签:llm-serving, vllm, sglang, chunked-prefill, benchmarking
English Abstract
Multi-agent LLM applications repeat most of their prompt tokens across requests, and serving engines reuse the cached state of shared prefixes. vLLM and SGLang reuse it at different granularities, and benchmarks of their default deployments report large performance gaps, usually credited to the cache. Such comparisons rarely control for other configuration differences. One of them, whether a long prompt is prefilled in chunks, is set by each engine's defaults from the hardware and the release, and it confounds the comparison. We built a reproducible testbed on Kubernetes and a seeded multi-agent workload generator, and compared the two engines under vendor defaults and with chunked prefill matched. SGLang's configuration is the same in both arms, which makes it an internal control across independently provisioned deployments. Under defaults, vLLM's median time to first token is up to 64x SGLang's. Matching one setting removes 78% of the capacity gap where that gap is largest and 30 to 67% of the latency gap. Near saturation the remaining latency gap reflects queue growth. A fluid queue model driven only by a 4.4% throughput shortfall reproduces it, and shows that such a gap scales with the length of the benchmark run. What survives matching is a tail-latency advantage of 2.4 to 6.4x at equal throughput, consistent with cache-aware ordering of waiting requests. We derive six recommendations for comparing serving engines.
English Summary
Multi-agent workloads repeat most prompt tokens across requests; vLLM and SGLang reuse cached prefix state at different granularities. Default-deployment benchmarks blame large gaps on the cache without controlling chunked prefill, which each engine sets differently. With a Kubernetes testbed and a seeded multi-agent workload, the authors compare the engines under vendor defaults and with chunked prefill matched; SGLang's identical setup in both arms serves as an internal control. Under defaults, vLLM's median time to first token reaches 64x SGLang's; matching that setting removes 78% of the largest capacity gap and 30-67% of the latency gap, and a fluid queue model driven by a 4.4% throughput shortfall reproduces the queue growth. What survives matching is a 2.4-6.4x SGLang tail-latency advantage at equal throughput, consistent with cache-aware request ordering.
Obsidian Notes
- 内容由
opencli arxiv paper拉取 arXiv 元数据与摘要生成。 - 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。