Memory Compression for High-Fanout Agent Sandboxes

📅 2026-09-10
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
针对高并发AI代理沙箱内存瓶颈问题,提出AgentZip系统,利用模板相关及跨沙箱冗余进行压缩,减少内存占用并降低性能影响。
📝 Abstract
High-fanout agent workloads create a growing memory bottleneck because a single task may spawn many concurrent sandbox sessions. Yet these sandboxes are far from independent: they originate from a shared template and execute related trajectories, exposing substantial template-relative and cross-sandbox memory redundancy. Conventional memory compression is poorly matched to this setting in three fundamental dimensions: how to compress, because they fail to exploit similarity across non-identical sandbox pages; what to compress, because they control page-fault overhead through conservative page selection; and when to compress, because compression is either triggered by memory pressure or performed without awareness of agent execution phases. We present AgentZip, the first memory compression system designed specifically for AI-agent sandboxes. AgentZip introduces compression mechanisms that exploit both the template-relative and cross-sandbox redundancy. It broadens the compression scope to any page with a profitable representation and shifts overhead control from compression-time page selection to restore-time prefetching. It further aligns expensive compression with LLM waiting periods to avoid interfering with foreground tool execution. Across LLM training and inference workloads, AgentZip reduces sandbox-owned memory by up to 8.7x, compared with 2.1x for the Linux configuration. Restore prefetching and agent-execution-aware scheduling reduce the slowdown of aggressive compression from as high as 3.1x to 1.40x while retaining nearly all of its memory-saving benefit.
Problem

Research questions and friction points this paper is trying to address.

memory bottleneck
high-fanout agent workloads
template-relative redundancy
cross-sandbox redundancy
concurrent sandbox sessions
Innovation

Methods, ideas, or system contributions that make the work stand out.

memory compression
cross-sandbox redundancy
restore-time prefetching
agent-execution-aware scheduling