Held While Waiting: What LLM Agent Sessions Reserve on Serverless and Agent Runtimes
- ID: 8983649b
- 原文链接: https://arxiv.org/abs/2611.26480
- PDF: https://arxiv.org/pdf/2611.26480v1
- 作者: Mekhala Hithyshini Sreenivasa
- 日期: 2026-11-19
- 更新: 2026-11-19
- 分类: infra
- 来源类型: paper
- 标签: infra, agents, serverless, runtime, cost
- 质量评分: 4/5
- 抓取时间: 2026-11-22T00:02:11Z
中文导读
LLM 智能体绝大部分生命周期在等模型:在 Amazon Bedrock AgentCore 上,每次模型回复平均要等 2.7 秒,自身计算估计仅 5-40 毫秒;等待期不收 CPU 费用,但运行时为每个会话独占预留一台独立虚拟机环境,直到会话关闭才释放:1000 个会话占 1000 个环境,工作量只相当于 2-15 个核,环境先于算力耗尽;成因有二:会话结束后环境滞留,客服基准中会话平均 33 秒结束,环境却多挂 15 分钟;一个环境只服务一个大部分时间在等待的会话,仿真显示 64 会话共享一个环境可少用 59 倍,99% 回复延迟不超过 40 毫秒;关闭只需客户端配合,共享则要平台支持
为什么值得关注
AgentCore 类运行时按会话独占预留环境:会话等模型 2.7 秒只算 5-40ms,环境滞留与独占导致环境先于算力耗尽
以上判断锚定论文摘要本身,具体数字与说法可在下方 English Abstract 中对照验证。
关键信息
- 论文标题:Held While Waiting: What LLM Agent Sessions Reserve on Serverless and Agent Runtimes
- 作者:Mekhala Hithyshini Sreenivasa
- arXiv:https://arxiv.org/abs/2611.26480
- 发布时间:2026-11-19
- arXiv 分类:cs.PF, cs.DC, cs.SE
- 关联标签:infra, agents, serverless, runtime, cost
English Abstract
LLM agents spend nearly all their time waiting for the model. On Amazon Bedrock AgentCore, our agents waited a median of 2.7 seconds for each model reply, then computed for an estimated 5 to 40 milliseconds. AgentCore does not charge for CPU during the wait. But it reserves a separate environment, a virtual machine with its own memory, for every conversation, and keeps it reserved until the conversation is closed. So 1,000 conversations reserve 1,000 environments to do the work of 2 to 15 processor cores. A service runs out of environments long before it runs out of processing power. The shortage has two causes, and each has a fix. An environment stays reserved after its conversation ends: in the customer-service benchmark we ran, a conversation lasts 33 seconds on average, but its environment is held for 15 minutes more unless the client closes it. And an environment serves only one conversation, which is mostly waiting: in our simulation, 64 conversations sharing one environment need 59 times fewer environments, and 99 of every 100 replies are delayed by at most 40 milliseconds. The milliseconds are an estimate because they are hard to measure: a stubbed model, a timer around the model call, and steps run back to back each gave a plausible number that was too low. We show how to avoid all three. Of the two fixes, closing needs only the client. Sharing needs the platform, and of the agent runtimes we surveyed only one allows it, in part. They keep conversations apart because an agent runs tools, and sometimes code, chosen by a model. The open problem is to keep them apart without reserving an environment for each while it waits.
English Summary
LLM agents spend nearly all their time waiting for the model: on Amazon Bedrock AgentCore, agents waited a median of 2.7 seconds per model reply and computed an estimated 5-40ms. AgentCore does not charge for CPU during the wait, but reserves a dedicated VM-backed environment per conversation until it closes, so 1,000 conversations reserve 1,000 environments to do the work of 2-15 cores; services run out of environments long before processing power. Two causes: environments stay reserved after conversations end (33-second conversations hold their environment about 15 extra minutes unless the client closes it), and one environment serves one mostly-waiting conversation (64 conversations sharing one environment need 59x fewer environments, 99 of 100 replies delayed at most 40 ms). Closing needs only the client; sharing needs the platform, and only one surveyed runtime partially allows it.
Obsidian Notes
- 内容由
opencli arxiv paper拉取 arXiv 元数据与摘要生成。 - 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。