TRANSMISSION // 2611.35212v1
How Ambar frees memory for more AI agents
Source published
AI agents can leave tool sandboxes idle while still holding memory. Ambar moves or compresses that memory to make room for more agents, while trying to limit delays when work resumes.

When an AI agent pauses to wait for a language model or a user, its CPU may sit mostly unused while its sandbox keeps occupying memory. A preprint introduces Ambar, a system that reclaims some of that memory during idle periods and tries to restore it before the agent needs it again.
AI agents do more than generate text. They may run code, inspect files or query data in an isolated environment called a sandbox, then pause while a language model decides what to do next. That stop-start rhythm creates a resource-management puzzle: the CPU can be available for other work while the sandbox continues to hold memory needed to preserve the agent’s state.
A research team proposes Ambar, a memory manager designed to let servers host more such agents. The central question is whether a server can reclaim memory from idle sandboxes without spending so much time and computing effort moving it around that agents’ tools become noticeably slower.
Choosing what to move—and when
The researchers characterized open-source coding and data-analysis agents, alongside eight additional sandbox workloads. Their measurements covered tool and language-model activity, CPU use and memory use. For interactive user waits, they also drew idle-time distributions from two public traces. The study found a recurring mismatch: tools often run briefly, while language-model calls and waits for user input leave sandboxes idle. Memory, however, remains occupied.
The team measured the costs of moving sandbox memory between local DRAM and slower memory tiers, such as CXL-attached memory, or offloading it to SSDs. They also tested compression. Each option involves a trade-off: these approaches can free local memory, but restoring data takes time, and software compression consumes CPU cycles. A delay on the path to the next tool can slow the agent down.
Ambar makes decisions for whole sandboxes, using estimates of how long each will remain idle and how long it would take to reclaim and restore its memory. It sends sandboxes with longer waits to slower memory tiers or SSDs, reserving faster options for those expected to resume sooner. If it cannot safely reclaim enough memory, it can leave a sandbox in place rather than force a move.
Three design features aim to reduce the cost of these operations. Snapshotting records changes rather than repeatedly saving an entire sandbox. Hot-page tracking predicts which memory pages the next tool is likely to need, so Ambar can restore those first. Hardware accelerators can handle some data movement and compression, reducing work on CPU cores. The system can also use hints that a tool call is approaching to begin restoring memory sooner.
What the tests found
The evaluation used two agent workloads—one for software engineering and one for data analysis—on a server equipped with local DRAM, CXL memory and an SSD. For the main comparison, the researchers replayed recorded language-model replies and timings while allowing sandbox tool execution and memory activity to run. This made model interactions consistent across configurations, but it is not the same as testing a live, changing service.
In the SWE-agent experiments, Ambar admitted 965 agents, compared with 163 for the conventional sandbox-management baseline: a reported 5.9-fold increase. The paper reports 5.0-fold higher CPU utilization in its headline comparison. These gains came with latency costs: P50 task completion time rose by up to 5.6% and P99 by up to 6.3% in the reported comparisons. Results varied by workload; CPU utilization remained low in the data-analysis workload because tool calls were very short relative to language-model waits.
What remains uncertain
These findings concern the tested setup, not every deployment. The evaluation covers two agent workloads, uses a particular server configuration, and replays fixed language-model responses. The paper also describes emulating accelerator behavior in the main evaluation because the tested AMD server lacked the relevant on-die compression hardware. Real systems may have different memory limits, sandbox behavior, accelerator availability and arrival patterns.
The authors examine sensitivity to factors including prediction accuracy and shorter waits, but the results still depend on estimates of when agents will resume and how much memory they will need. Prediction errors can cause extra memory-management work. And while the paper reports small latency increases in its principal comparison, other configurations in its tests produced larger slowdowns.
Ambar is presented in an arXiv preprint. A preprint is a public research manuscript and should not be treated as proof that the work has passed peer review. The evidence supports a systems idea—use idle time to manage sandbox memory with awareness of agent activity—but further testing would help establish how well it transfers to production workloads.
- AI agents
- memory management
- sandboxes
- datacenter computing
- memory tiering
- Ambar
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Why AI agents need a different approach to saving GPU power
Source published
Shared keywords: ai agents, memory management
Can AI Agents Deliver Reliable Scientific Work?
Source published
Shared keywords: ai agents
When AI agents take the shortcut
Source published
Shared keywords: ai agents
A project notebook for guiding MRI AI agents
Source published
Shared keywords: ai agents
A better test for AI agents looks beyond the final answer
Source published
Shared keywords: ai agents