AgentLens: Framework-Aware Characterization and Resource Control for Heterogeneous LLM Agents
- ID: 9f06f35b
- 原文链接: https://arxiv.org/abs/2610.25231
- 作者 / 日期: Wentao Hong | 2026-10-18
- 分类: agents
- 来源类型: paper
- 标签: agent-workloads, resource-control, cgroups, measurement, colocation
- 质量评分: 5/5
- 抓取时间: 2026-10-21T15:51:49.496237+00:00
中文导读
LLM agent 越来越多与其他负载同机部署,但宿主机侧资源画像一直缺数据。AgentLens 跨 10 个框架、11 个对齐编码任务测量:框架身份能解释峰值 RSS 方差的 52.95%,任务身份只有 4.22%;每次工具调用触发的 execve 次数在 MetaGPT 与 CAMEL 之间相差 39 倍;峰值 RSS 与子进程数的 Spearman 相关只有 0.13——内存压力与进程爆炸是两个独立维度,管住一个管不住另一个。控制器把离线框架指纹与在线执行相位信号(API 等待与工具执行交替出现)结合,用 cgroup v2 做内存协调、不改框架内部代码;trace 回放里三组同置组合在 90% 聚合峰值内存预算下,被保护 worker 的 P95 分配延迟保持 5.7-7.1ms,比静态分配好 2.1-2.6 倍。
为什么值得关注
agent 混部容量规划的第一份可引用量化数据:负载行为由框架主导而非任务主导,与 App 行为由 framework 决定同构,测量设计可直接搬到 App/agent 混部场景。
关键信息
- 10 框架 × 11 对齐任务;框架解释峰值 RSS 方差 52.95%,任务 4.22%
- execve 次数/工具调用:MetaGPT 与 CAMEL 差 39 倍
- 峰值 RSS 与子进程数 Spearman 相关仅 0.13
- cgroup v2 控制器:90% 内存预算下被保护 worker P95 延迟 5.7-7.1ms(比静态好 2.1-2.6 倍)
- arXiv 2610.25231,cs.OS,2026-10-18 提交
English Summary
AgentLens measures host-side resource demands of LLM agents across 10 frameworks and 11 matched coding tasks: framework identity explains 52.95% of peak-RSS variance while task identity explains only 4.22%; execve counts per tool call differ 39x between MetaGPT and CAMEL; peak RSS and subprocess count correlate at just Spearman 0.13 — memory pressure and process explosions are independent axes. Its controller combines offline framework fingerprints with online phase signals (API-wait/tool-exec alternation) and coordinates memory via cgroup v2 without touching framework code; in trace replay under a 90%-of-aggregate-peak memory budget, protected workers hold P95 allocation latency at 5.7-7.1ms, 2.1-2.6x better than static partitioning.
Obsidian Notes
- Vault 摘要源:论文流水线 2026-10-21 第 3 条(精读推荐);arXiv 元数据经 opencli arxiv paper 2610.25231 核对。
- 本页由 daily-intake-evening 任务于 2026-10-21T15:51:49.496237+00:00 生成,摘要锚定上述 vault 摘要源与已核对元数据,未添加来源之外的事实。