MemMux:面向并行编码智能体集群的运行时验证与资源归属方案
MemMux: Runtime Verification and Honest Resource Attribution for Fleets of Parallel Coding Agents
MemMux 是面向单工作站并行编码智能体集群的非特权本地运行时,不依赖内核 control groups,将资源治理转化为可核查信号。在 Linux 主机绑定内存预算下,MemMux 以 7500 MiB 预算、零 swap 运行全部智能体,而未治理工具内存达预算 2 倍并溢出约 2 GiB swap;其可回收终止智能体 100% 进程子树,并检出全部 10 个逃逸子进程。
arXiv:2610.07257v2 Announce Type: replace Abstract: Developers increasingly run a fleet of coding agents side by side on one workstation. Terminal multiplexers like tmux and a new generation of agent managers were built to arrange windows, not to govern memory. When ten agents each spawn language servers, test runners, and browsers, no standard tool can say how much memory belongs to which agent, confirm that a terminated agent's descendants are gone, notice a child that has escaped its agent, or keep the machine off the swap cliff when an out-of-memory (OOM) kill would silently discard uncommitted work. We treat these as runtime-verification problems: a hosting substrate should emit signals an operator can check while agents run. We present MemMux, an unprivileged local runtime (no kernel control groups) turning resource governance into checkable signals: per-agent attribution, complete reclamation, escaped-process visibility, bounded footprint under overcommit, and monitoring overhead. A claims-disciplined benchmark measures each against tmux and a raw-process baseline on identical workloads. Under a binding memory budget on a Linux host, MemMux holds the fleet under budget (7500 MiB) with zero swap by admitting a subset and reclaiming under pressure, while the ungoverned tools run every agent, pin the machine at its RAM ceiling (2x over budget), and spill about 2 GiB into swap. MemMux reclaims 100% of a terminated agent's process subtree where the raw baseline strands half of it (tmux matches us here; the raw baseline does not), and it is the only launcher we compare against that surfaces escaped children (10 of 10 detected). The cost: the always-on 1 Hz monitoring loop runs near 0.6% CPU at one agent but 2.7% at ten, above our 2% target. Running the harness on real Claude Code sessions shows 100% attribution and low overhead carry over to live agent trees. We release the engine, benchmark, and reproducer.
来源:arXiv (AI + Vision + Imaging) · arxiv.org