就绪队列:在LLM代理控制中界定GPU机会并避免主机往返
观点分析 · 2026/08/14
本文研究了LLM代理服务中模型与工具调用之间的小型确定性转换,探讨了控制路径何时能暴露足够的并发工作以供GPU执行,以及当GPU计算的路径决策保留在设备上时会发生什么。作者形式化了“就绪队列”边界,使用固定分区份额F、精确离线份额P*、局部上界U和在线实现份额A。在零服务时间、无限容量和相等相对启动截止时间下,一个专门的动态规划可精确计算P*。在固定851会话公共轨迹的平稳泊松回放中,在100,000个目标活动会话、K=256和50毫秒启动截止时间下,主要条件给出F=30.19%,P*=43.00%,U=45.85%。精确打包恢复了固定窗口边界损失机会的81.83%。结果派生的路由键是条件代理,而非可执行身份的证明。另一项机制研究将GPU计算的二元决策保留在设备上,而不是将四个字节返回主机并重新调度。在四种命名的GPU放置中,设备驻留路径在所有36种配置中均更快;放置内行中位数比率范围为1.19倍至2.39倍。在两种可接受机制中,所有14,557,440次测试的批量调用均与单独实现的主机预言机匹配。一个固定嵌套设备图(不消除主机决策)在五种放置的所有60种配置中均较慢。这些研究共同为GPU代理控制建立了两个可测量的门:截止时间可行的队列供应和观察放置。需要联合的有限在线运行时来测量A、CPU位移和服务级收益。
本文针对LLM代理服务中的GPU控制路径提出了新的形式化框架和实证研究,量化了就绪队列的并发机会,并展示了设备驻留决策的显著性能优势。其方法严谨,结果具有可重复性,为优化GPU代理控制提供了可操作的指导,值得系统架构和AI系统领域的研究者阅读。
LLM-agent services repeatedly execute small deterministic transitions between model and tool calls: route an outcome, update state, and emit the next effect. We ask when this control path exposes enough concurrent work for GPU execution, and what changes when a GPU-computed route decision remains on device. We formalize the ready-cohort boundary using fixed-partition share F, exact offline share P*, local upper bound U, and online achieved share A. Under zero service time, unlimited capacity, and equal relative launch deadlines, a specialized dynamic program computes P* exactly. In a stationary Poisson replay of one pinned 851-session public trace panel, the primary condition at 100,000 target active sessions, K=256, and a 50 ms launch deadline gives F=30.19%, P*=43.00%, and U=45.85%. Exact packing recovers 81.83% of the opportunity lost at fixed window boundaries. The outcome-derived route key is a conditioning proxy, not proof of executable identity. A separate mechanism study keeps a GPU-computed binary decision on device instead of returning four bytes to the host and redispatching. Across four named GPU placements, the device-resident path is faster in all 36 configurations; within-placement row-median ratios range from 1.19x to 2.39x. Across both admissible mechanisms, all 14,557,440 tested batched invocations match a separately implemented host oracle. A fixed nested device graph that removes no host decision is slower in all 60 configurations across five placements. Together, the studies establish two measurable gates for GPU agent control: deadline-feasible cohort supply and observation placement. A joined finite online runtime is required to measure A, CPU displacement, and service-level benefit.