TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
T IDE S AND : P ERFORMANCE -ACCURATE S ANDBOX M ULTIPLEXING FOR LLM AGENTS
arXiv:2611.31118v1 [cs.OS] 23 Nov 2026
Shulu Li * 1 Hanchen Li * 1 Xiaokun Chen 2 Qiuyang Mang 1 Hanfei Chen 3 Jacky Kwok 4 Hanfei Yu 1 Alvin Cheung 1 Edward A. Lee 1 Joseph E. Gonzalez 1 Ion Stoica 1
A BSTRACT As large language model (LLM) agents are deployed for increasingly long-horizon and complex tasks such as software engineering, performance tuning, and auto research, the demand for sandboxes that provide isolated execution environments for them grows rapidly. A typical sandbox allocates a fixed amount of resources for the lifetime of each agent, even when an LLM agent is waiting for inference, during which the sandbox is mostly idle. This causes resource utilization to be low. Prior work leverages statistical multiplexing by overcommitting resources to exceed the host’s capacity since not all sandboxes are active at the same time. However, several challenges arise when the host resource is multiplexed to multiple sandboxes. Most importantly, agent sandboxes are bursty, and when bursts of multiple sandboxes overlap, contention can leave sandboxes with fewer resources than promised, slowing down tool calls. This compromises tool-call fidelity, which we define as sandboxes’ ability to preserve tool-call execution times and results. For emerging agent workloads that rely on accurate performance measurements, sandbox systems need to maximize resource utilization while preserving tool-call fidelity to better serve the workload. We propose TideSand, a sandbox system that intelligently multiplexes resources for performance-sensitive LLM agents, such as auto research agents working on system measurement tasks. TideSand combines three key ideas: agent-aware scheduling, which schedules sandbox execution intelligently at the tool call level to avoid resource contention; speculative swapping, which offloads the memory of sandboxes waiting on inference and restores it before their next tool call; and selective rollback, which checkpoints selected sandboxes when contention occurs and restores them when machines are idle. We evaluate TideSand across six model-workload pairs on AlgoTune, Terminal-Bench 4.0, and Terminal-Bench Science. TideSand achieves 3.8–10× higher throughput than strict reservation while maintaining tool-call fidelity, or 7–44% higher fidelity than overcommit baselines at similar throughput. Moreover, TideSand reduces the evaluation error on Algotune by 19× through improved tool-call fidelity. We hope the work motivates future research to maintain tool call fidelity while keeping resource utilization high through statistical multiplexing. We open-source our code at https://github.com/TideSand/tidelet.
1
I NTRODUCTION
The cost of serving large language model (LLM) agents extends beyond inference. Agents also need execution environments in which to edit code, run tests, analyze data, and conduct experiments (Yang et al., 2024; Wang et al., 2025; Chen et al., 2025). These environments, or sandboxes, isolate tool execution and retain files, processes, and memory state across successive calls (Huang et al., 2026b; Dong et al., 2026). Unlike an individual tool call, a sandbox can remain allocated for an entire agent task, including intervals spent waiting for model inference (Huang et al., 2026b; Li et al., 2026b). As inference costs at a given capability have fallen in recent years (Maslej et al., 2025), the CPU and * Equal contribution. 1 University of California, Berkeley. Harbor Framework. 3 Georgia Institute of Technology. 4 Stanford University. 2
memory for these sandboxes can become a growing fraction of the total cost. Reducing this cost requires adapting sandbox management to the workflow of the agents. Agent sandboxes are unique in their workload characteristics: tool execution is often bursty. For example, a compilation task might require several CPUs to run, and then wait for an LLM inference call to process its output. To facilitate the requirements of the compilation phase, a sandbox is often allocated a fixed set of resources during its lifetime. However, this causes resource utilization to be low, since resources remains allocated and sits idle while the agent waits for inference. A natural solution to improve utilization is to leverage statistical multiplexing (i.e., not all environments are active at the same time) by over-subscribing resources. Assume a trivial example in which we have two agent sandboxes. Both sandboxes require one CPU every other second,
1
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
USD per unit-hour
USD per 1M tokens
0.06
10
1
0.1 Oct 2025
Proprietary Open-weight Cheapest available Jan 2026
Apr 2026
Jul 2026
(a) LLM token list price
Oct 2026
vCPU (per vCPU-hour) RAM (per GB-hour)
0.05 0.04 0.03 0.02 0.01 0.00 Oct 2025
Jan 2026
Apr 2026
Jul 2026
Oct 2026
(b) CPU sandbox list price
Figure 1. Equal-Intelligence LLM Token prices plummet while CPU sandboxes cost stay relatively flat over the last year.
and spend the idle second waiting for remote LLM inference. If we allocate one CPU per sandbox, the utilization is 50%. Instead, we can multiplex two sandboxes and run them on a single CPU, cutting the resource need by half. Current systems such as DeepSeek Elastic Compute (DSec) (Huang et al., 2026b) and AgentZip (Li et al., 2026b) improve sandbox density through this multiplexing approach. However, resource multiplexing raises several challenges. First, admission control. If not enough resources are available for the sandbox to resume, we might need to delay its execution until some resources are freed to prevent thrashing. Second, each sandbox has state associated with it. In order for another sandbox to utilize the same resource, we must first offload its state and, before resuming it, restore its state. Yet the overhead associated with offload and restore might negate the advantages of multiplexing, so we need to choose carefully when to do so. Most importantly, in many scenarios, agents aim to improve the performance of a system. In this case, accurate resource provision and measurement is crucial, as this is the signal the agent depends on to iterate. Consider a profiling task that requests ten CPU cores but receives only six for most of its execution. The tool call response may reflect interference from other sandboxes rather than the behavior of the implementation. An agent acting on this report will mistake a change in resource availability for a change in program performance. To measure this effect, we use tool-call fidelity to describe how well the execution timing and results are preserved when executing in a multiplexed sandbox. Practically, we run the same tool call in a resource guaranteed sandbox, and again in a multiplexed sandbox, and compare their tool call timing and results. A sandbox system with high tool-call fidelity should have similar results between the two. A unique opportunity here is to schedule the agent toolcalls intelligently. Delaying the LLM response slightly has no effect on the agent, since this is indistinguishable from slower LLM inference. This allows a scheduler to defer toolcalls until sufficient resources are available, while being totally transparent to the sandbox. This adds a queuing delay, but preserves tool-call fidelity.
This requirement leads to an objective of maximizing sandbox goodput: the rate of successfully completed agent tasks whose tool calls satisfy a specified fidelity requirement. We assess fidelity by comparing tool outcomes and executiontime distributions against a reference with the configured resources and no contention from other sandboxes. Using distributions accounts for the variation present even in uncontended executions. Goodput therefore captures the benefit of serving more agents together with the cost of retries, failures, and distorted observations. To maximize goodput, we propose TideSand, which oversubscribes sandbox resources while protecting tool-call fidelity. Using agent-loop signals together with resource observations, it applies three mechanisms: • Agent-aware Scheduling admits additional work only when sufficient resource headroom is available in CPU, memory, and bandwidth, reducing resource thrashing and thus preserving tool call fidelity. • Speculative Swapping moves memory in idle sandboxes to disk during inference intervals when there is no active tool execution. When a tool call is about to be executed, it restores memory from swap before so that reclaiming memory does not simply shift recovery costs into tool execution. • Selective Rollback handles sudden spikes in resource requirements and residual contention by selectively checkpointing sandboxes before tool call execution, and shutting down sandboxes when resources are saturated to release headroom. These tool calls are re-executed after resources are available for execution. We evaluate TideSand across six model-workload pairs on AlgoTune, Terminal-Bench 4.0, and Terminal-Bench Science with Sonnet 5.5 and DeepSeek V4.1 Flash. TideSand achieves 3.8–10× higher throughput than strict reservation while maintaining tool-call fidelity, or 7–44% higher fidelity than baselines including overcommit at similar throughput. Moreover, by improving tool-call fidelity, TideSand reduces the evaluation error on AlgoTune, measured against the agent’s task reward under strict reservation by 19×. This paper makes three contributions: • We define tool-call fidelity as a metric for capturing resource fairness in agent sandboxes, and formulate goodput as the overarching goal for sandbox systems for serving agents. • We design TideSand, a sandbox system that combines agent-aware scheduling, speculative swapping, and selective rollback to exploit idle resources while protecting tool-call fidelity. • We show TideSand achieves 3.8–10× higher throughput than strict reservation or 7–44% higher fidelity than base-
2
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents CPU + RAM
2.1
BACKGROUND Emerging Agent Workloads
LLM agents perform tasks in software engineering (Yang et al., 2024; Wang et al., 2025), scientific data analysis (Chen et al., 2025), and web automation (Zhou et al., 2024). Platforms such as OpenHands execute tools for editing files, running tests, and driving a browser inside an isolated execution environment known as a sandbox (Wang et al., 2025). Because an agent task unfolds over multiple turns where later actions build on earlier ones, a stateful sandbox retains filesystem, process, and memory state across the trajectory (Huang et al., 2026b; Dong et al., 2026). More recently, people have explored using agents to conduct autoresearch (Mang et al., 2025; 2026; Press et al., 2025). In these workflows, agents will usually be given a research environment and an end goal. The agent will conduct profiling, analysis, and tuning to come up with innovative solutions to more practical and open-ended tasks. Notably, because these tasks target practical systems such as databases, they require substantially more resources. 2.2
Increasing Sandbox Cost
To serve these agents, systems need to consider both LLM inference and sandbox costs. And sandbox costs are surprisingly becoming more and more important. Figure 1 compares October 2026 listed token prices for models scoring at least 50% on Terminal-Bench 2.1 (The Terminal-Bench Team, 2026b), grouped by release date. The minimum plotted price falls from $4.50 for the November 2025 release cohort to $0.111 per million tokens for July 2026 releases, a roughly 40× difference (assuming a 3:1 input/output blend as in Table 2). For reference, AWS Fargate’s Linux/x86 on-demand rates in US-east-1 stay stable on the right. Moreover, sandboxes already account for a substantial share of agent serving costs. Figure 2 shows CPU and memory accounting for 16.4%, 33.5%, and 74.2% of total cost for GPT-6 Sol, GPT-6.1 Sol, and GPT-6 Luna respectively when we run them at max effort for Terminal-Bench 4.0 even after excluding tasks requiring GPUs. This staggering comparison, especially how models are getting increasingly cheap even for the same model type, demonstrates sandbox could soon become the biggest bottleneck in agent serving. 2.3
Prior Work on Agent Sandboxes
System Mechanisms: Firecracker (Agache et al., 2020) and gVisor (The gVisor Authors, 2026) isolate execution through lightweight microVMs and a userspace application kernel,
320
25.8%
240 160 80
Inference 100
316.89
Cost share (%)
2
Cost per attempt (USD)
lines at similar throughput. It also reduces the task-reward error by 19× from fidelity improvement.
127.91 62.37
64.42
GPT-6 Sol
GPT-6.1 Sol
48.57
75 66.5% 83.6% 50 74.2% 25 33.5%
16.92
0
16.4% 0
GPT-6 Luna
(a) Absolute cost
GPT-6 Sol
GPT-6.1 Sol
GPT-6 Luna
(b) Cost composition
Figure 2. End-to-end agent cost breakdown across models at max effort for Terminal-Bench 4.0, excluding GPU tasks Table 1. Sandbox mechanisms and objectives: ✓ denotes an explicit focus; – denotes otherwise. System
Oversub- Memory Inferencescription reclamation aware
Fidelitypreserving
DSec
✓
✓
–
–
SpecBox
–
–
✓
–
AgentZip
✓
✓
✓
–
AgentCgroup
✓
–
✓
–
TideSand
✓
✓
✓
✓
respectively. TrEnv-X (Huang et al., 2026a) reduces startup and memory costs through reusable sandboxes and memory templates backed by CXL/RDMA pools. DeltaBox (Dong et al., 2026) accelerates checkpoint and rollback through incremental state capture and frozen process templates, overlapping checkpoint work with inference. These mechanisms provide building blocks for efficient sandbox scheduling. Workload-Aware Optimizations: Recent systems increasingly tailor these mechanisms to agent workloads, often using oversubscription to share resources left idle between tool calls. DeepSeek Elastic Compute (DSec) (Huang et al., 2026b) combines oversubscription, memory reclamation, and RL-coordinated sandbox lifecycles, while CPU priorities and core scheduling protect latency-sensitive work. SpecBox (Zhang et al., 2026) predicts sandbox requests from streaming model output and tool transitions to overlap preparation with ongoing inference or execution. AgentZip (Li et al., 2026b) compresses memory using template and cross-sandbox redundancy, schedules compression during inference, and prefetches pages to reduce restoration stalls. AgentCgroup (Zheng et al., 2026) handles contention in oversubscription by throttling competing tool calls, but it comes at the cost of slowing down tool calls for too long. DSec, SpecBox, AgentZip, and AgentCgroup adapt resource sharing and oversubscription to agent workloads, while prior works provide valuable primitives for sandbox scheduling. TideSand builds on the system primitives and invents new workload-aware scheduling policies to better support emerging performance sensitive agent workloads.
3
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents CPU (cores)
Memory (GiB) Model call minimum-volume-ellipsoid
4 2 10
20
30
Time (min)
40
0
10
20
Time (min)
30
Figure 3. Measured CPU usage (cores) and memory usage (GiB) over time for two tasks. Shaded intervals indicate model calls. CPU usage is bursty, while memory remains resident between execution bursts.
3
S ANDBOX FOR P ERFORMANCE S ENSITIVE AGENTS
While prior work in sandbox overcommitting increases resource utilization, multiplexing alone is insufficient for providing performance-accurate sandboxes. 3.1
DRAM
CPU
A
B spills to swap
Swap
A
B
Figure 4. Under naive multiplexing, agent A not yet doing a tool call is using sandbox resources from active agent B. 2 CPUs, 4 GB 4 CPUs, 8 GB 8 CPUs, 16 GB
15 10
103
5 0
Strict Overcommit
0.2x 0.87x
102
0.037x
101
1.3x
0.45x
100 0 1
1.5 2
3
4
6
Slowdown over the recorded time (a) Tool-call slowdown.
g m in p e e lv lx n p dlo lti-si wste msim prun d-tre sy igcp elau bts e d cu l1 k
(b) Final benchmark reward.
Figure 5. Resource contention causes tool execution time to deviate from the reference and affects final benchmark reward.
Workload Characteristics and Multiplexing
Agent sandboxes have bursty demand for CPU and memory. Tool calls can require several CPU cores, while inference leaves those cores largely idle and memory resident (Figure 3). Provisioning each sandbox for peak demand throughout a task wastes capacity that could serve other agents. When tool execution is staggered across agents, a host can oversubscribe: accommodate sandboxes whose aggregate configured resources exceed its physical capacity. For example, DSec (Huang et al., 2026b) overcommits by admitting a sandbox when the node still has measured CPU and memory capacity, so the sandboxes’ configured limits can sum to more than the host’s physical capacity. 3.2
Agent B
CPU
Probability density
6
00
Agent A (LLM inference)
1.25 1.00 0.75 0.50 0.25 0.00
Reward
sylvester-solver
Memory (GiB)
CPU (cores)
8
Resource Contention under Multiplexing
Multiplexing faces challenges in predicting future demand. Several admitted agents may finish inference at the same time and launch resource-intensive tools, creating contention even when average host utilization is moderate. For example, DSec checks local resource capacity before creating a sandbox and combines CPU priorities with core scheduling to limit interference (Huang et al., 2026b). These controls operate at sandbox-level granularity, which cannot ensure that resources are ready for these bursts. On the other hand, the agent loop offers an opportunity for speculative preparation. As a tool call streams, the scheduler can anticipate execution and begin restoring reclaimed memory while the model generates the remaining arguments. Moving restoration into this interval can reduce overhead for the tool call. Conversely, retaining inactive pages from idle sandboxes from agents doing inference can force active tools to spill to swap as shown in Figure 4.
3.3
Tool Call Fidelity
Most importantly, resource contention caused by multiplexing can cause a more severe consequence for the emerging performance-sensitive sandboxes such as auto research agents. Autoresearch agents conduct experiments and use the observations to guide further investigation (Lu et al., 2024). For example, AlgoTune’s agent profiles candidate programs and uses their measured runtimes to select faster correct implementations (Press et al., 2025). If the sandbox receives fewer CPU cores or less resident memory than the experiment assumes, the observation can be distorted by resource contention. The need to keep a tool call’s result and execution time consistent with a reference run on its configured CPU and memory motivates a property of sandbox execution, which we call tool-call fidelity. In other words, even if the call returns the correct output, it can still lose fidelity when CPU sharing or memory pressure changes its runtime. We show the effect of resource contention on tool execution time and final benchmark reward in Figure 5. The left figure compares execution-time distributions for 10 tool calls each repeated for 10 times under three CPU and memory allocations, normalized to the recorded time with 8 CPUs and 16 GB. Reducing the allocation increases both execution time and its variation. The right figure compares final benchmark rewards under strict reservation and a naive overcommitment policy based on resource usage. Rewards change in both directions, showing that resource contention can change the agent’s outcome even on the same task. A higher reward under overcommitment does not imply better fidelity: in either direction, the result differs from the reference execution.
4
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents Manager
API layer
TideSand Policy
Client interfaces gRPC
Agent-aware
Speculative
Selective
scheduling
swapping
rollback
execute
Controller
monitor
CLI
k8s API
Hold /
Release
Runtime containerd / runc · cgroup v2 CNI networking · IO hub
LLM proxy LLM
Agent sandboxes Sandbox1
Sandbox2
calls Sandbox3
…
LLM API
tideletd
Sandboxn
Figure 6. System overview of TideSand.
Given the impact of resource contention on experimental results, tool-call fidelity is the first priority in sandbox systems for autoresearch agents. It is therefore even preferable to delay a tool call rather than run it immediately with insufficient resources and distort its results, since queueing delay is indistinguishable for LLM inference delay. On the other hand, slowdown from contention during execution becomes part of the measurement and can mislead the agent’s next steps.
netes. The system operates transparently to the sandbox. The only configuration change required is to direct its LLM endpoint to the LLM Proxy managed by tideletd, allowing TideSand to observe and schedule tool calls without modifying the agent harness. The manager hosts the scheduling policy, which makes scheduling decisions and controls the runtime. Our runtime uses containers managed through cgroups, but it can be replaced by another sandbox technology, such as microVMs, provided that it supports the operations required by the manager.
3.4
The manager comprises three components. The resource monitor communicates with the runtime implementation and reports per-sandbox CPU usage, memory traffic, and tool-call activity. The scheduler decides when to admit sandboxes, execute tool calls, swap memory, and checkpoint sandboxes. It passes these decisions to the action executor, which issues the corresponding commands to the LLM Proxy and the runtime.
Improving Sandbox Goodput
The opportunity for statistical multiplexing therefore comes with a requirement to preserve execution conditions when those calls run. Increasing sandbox concurrency is useful only when it does not compromise tool-call fidelity. We capture this goal as sandbox goodput: the rate of successfully completed agent tasks whose tool calls satisfy a specified fidelity requirement. Improving goodput requires reclaiming resources during inference, restoring them before the next tool call, and controlling concurrent execution when demand exceeds host capacity.
4
S YSTEM D ESIGN
4.1
System Overview
TideSand is a sandbox control plane that statistically multiplexes host resources across multiple agent sandboxes. This sharing improves utilization because sandbox demand is bursty during tool execution and typically falls to a fraction of the requested resources while agents wait for LLM responses. The key insight of TideSand is to schedule individual tool calls rather than solely at sandbox admission. Figure 6 shows the architecture of our system. TideSand runs as a policy inside tideletd, a host-local daemon with four components. The controller exposes interfaces for managing sandboxes through gRPC, a CLI, and Kuber-
4.2
Agent-aware Scheduling
LLM Proxy: TideSand observes the agent’s inference– execution loop and controls tool-call delivery through an LLM proxy. The agent directs its model API requests to the proxy, which preserves request and response contents while controlling response timing; no changes to the agent harness are required beyond configuring the endpoint. A model request signals a transition to inference, while a tool-bearing response identifies the next execution interval. Before delivering that response, the proxy reports the tool names to the scheduler. Responses containing only recognized lightweight tools, such as file reads and edits, bypass CPU admission; those containing external execution tools, such as shell commands, wait until the scheduler admits them. For streaming responses, the proxy forwards the text preceding the first tool-call event and buffers that event and the remaining response, preventing the agent from starting a tool before admission while allowing model generation
5
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
to continue. Responses without tool calls are not held for resource admission. Statistical Resource Prediction: A tool call’s resource requirements are unknown before execution. High-fidelity execution requires sufficient resources to be available on the host, but reserving the sandbox’s full configured allocation for every call wastes capacity when demand is lower. To balance fidelity and utilization, TideSand predicts each call’s resource usage before execution and reserves the predicted amount. The prediction is learned from the sandbox’s recent calls. Let ui (t) be the measured CPU use of sandbox i and Li its configured CPU limit. During each heavy call k, the scheduler tracks an exponential average of ui (t) with a time constant of 10 seconds and records its peak pi,k when the call ends. The predicted demand dˆi of the next call is the largest peak of the last three calls; a sandbox without history uses the median peak observed on the host, or Li before any call has completed. The reservation is Li if dˆi ≥ Li /2, c ri = (1) ˆ max(di , gi ) otherwise, where gi is the sandbox’s background use between calls. A call predicted at half its limit or more reserves the whole limit, to preserve the parallelism available to CPU-intensive jobs in the reference run. Memory traffic is predicted the same way from each call’s sustained traffic b̂i , with the reservation rib = min(b̂i , BLi /C) capped at the sandbox’s share of the host bandwidth B by its CPU limit. A new sandbox is expected to use m̂ bytes of memory, the median resident memory of existing sandboxes. Fine-grained Admission: TideSand admits work at two granularities: a tool call is released when its reservation fits the host’s headroom, and a sandbox is started when its expected memory fits. Let C be the host’s cores and B its sustainable memory bandwidth, and let Uc and Ub be the measured CPU use and memory traffic of all sandboxes. Measurements can lag newly released calls. The scheduler therefore adds a pending term over calls released within the last 10 seconds, denoted by R, accounting for the portion of each reservation not yet reflected in measured use: X Pc = max(0, rjc − uj ), (2) j∈R
and likewise Pb for traffic. A heavy response from sandbox i is released when Uc + Pc + ric Ub + Pb + rib
≤ αC, ≤ βB.
(3)
with budget thresholds of α = 0.7 and β = 0.8. Without the pending term, a burst of responses would be released against the same apparent headroom before any of them
appears in a sample. Responses that do not fit wait in a queue ordered by arrival. The scheduler considers the oldest response first but lets a younger response pass when it fits and the older one does not, avoiding unnecessary idling behind a large reservation. A new sandbox starts when its boot allowance satisfies Equation 3 and its expected memory fits the admission target, M + m̂ + Mswapped ≤ µMmax ,
(4)
with µ = 0.8, where M is the memory in use and Mswapped is the memory that swapped-out sandboxes with waiting responses will take back. 4.3
Speculative Swapping
Memory Swapping: Memory cannot be multiplexed as readily as CPU capacity because it holds persistent sandbox state. Reusing that capacity requires offloading the state and restoring it before the sandbox accesses it again. Offloading state to disk consumes bandwidth that active tool calls may also need. For CPU-intensive workloads, this cost may be unnecessary because CPU capacity is the bottleneck rather than memory. TideSand therefore initiates proactive swapping only under memory pressure. Admission stops at 80% of memory capacity (Equation 4), but the sandboxes already admitted keep growing. When their growth pushes the memory in use past 90%, the scheduler selects sandboxes waiting for model responses, prioritizing those with the largest resident working sets. For each selected sandbox, the scheduler asks the kernel to reclaim 80% of the sandbox’s resident memory to swap, without stopping its processes. Speculative Prefetch: A swapped-out sandbox must recover its working set before its next tool call to avoid swapin page faults during execution. The LLM proxy tells the scheduler when that moment comes: the next tool-bearing model response signals that the agent is about to resume execution. When that response arrives at the proxy, the scheduler holds it and issues a prefetch for the sandbox. The prefetch asks the kernel to read the sandbox’s swapped pages back into memory, after which the response can proceed; heavy responses remain subject to tool-call admission, but memory swap-in is now overlapped with waiting admission. 4.4
Selective Rollback
Resource prediction is statistical: it reserves what a sandbox’s recent calls indicated, not what its next call may do. A tool call can use more resources than its predicted resource allocation, and several admitted calls can burst beyond their predictions at the same time. If the burst exceeds the headroom, the host saturates, which decreases tool-call fidelity. A simple solution to reduce the chances of such spikes is to leave a large headroom below capacity, but doing so reduces resource utilization. TideSand instead runs close to the ca-
6
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
pacity and treats saturation as a rare event to recover from rather than a state to prevent. Selective rollback removes selected calls from execution so that the remaining calls retain sufficient resources, then retries the stopped calls once the spike has passed. Checkpointing Sandboxes: A call can be undone only if its sandbox can be returned to the state before it started. TideSand takes a whole-sandbox checkpoint at the moment the agent sends the model request that precedes the tool call, capturing the state of its processes and its filesystem. Taking the checkpoint at the request rather than at the response overlaps checkpointing with model inference, reducing the delay exposed to the agent. A rollback stops the sandbox, restores the checkpoint, and resumes the agent at the point of the request; the agent re-sends the request and the response carries the same tool call, which the scheduler now admits like any other. However, checkpointing occupies valuable resources that could be used for running other tasks. TideSand therefore checkpoints only selected calls. Choosing Checkpoints and Restores: A call is selected for checkpointing only when it could cause a spike and its estimated checkpoint cost is low relative to its duration: it must reserve at least half its CPU limit, the host must be loaded enough for a spike to matter, and the expected checkpoint time, estimated from earlier checkpoints, must be a small fraction of the sandbox’s typical call duration. Rollback is triggered when the measured CPU use or memory traffic has stayed above 85% of the host’s capacity for three seconds. The scheduler then stops the checkpointed calls whose measured use exceeds their reservation by the most, until their removal is expected to bring demand below the threshold. A stopped call is restored at the head of the queue as soon as its reservation fits. Across the workloads in §6, fewer than 3% of calls are checkpointed and fewer than 0.5% are rolled back, with a CPU overhead under 2% (Figure 14).
5 I MPLEMENTATION Sandbox daemon: TideSand is implemented as a policy of tideletd, a host-local sandbox daemon written in about 21K lines of Go. The daemon owns the sandbox table, runs containers through containerd and runc under cgroup v2, exposes a gRPC API and a command-line client, and can register the host as a Kubernetes node through a virtualkubelet provider so that a Pod maps to a sandbox. Each sandbox is created with the CPU and memory limits its task specifies; the limits bound the sandbox but are not reserved on the host. The daemon samples every sandbox at 250 ms intervals, recording its cumulative CPU time, resident working set, swap, and pressure-stall information, and reads the host’s memory traffic from the hardware last-level-cache miss counter. A policy is implemented behind a small event interface: it receives resource samples, model-request and model-response events from the LLM proxy, and sandbox
lifecycle events, and returns actions such as release or hold a response, admit or queue a sandbox, reclaim or prefetch memory, checkpoint, roll back, and restore. Strict reservation, threshold overcommit, and TideSand are policies of this interface; the TideSand policy is about 1,500 lines and is selected by a daemon flag. LLM proxy: The daemon runs a pass-through proxy for the model API that the agent reaches through its base-URL setting, so Claude Code runs unmodified in the sandbox. The proxy forwards streamed tokens until the response carries a tool call and buffers the remainder; it then reports the tool names to the policy and delivers the buffered part when the policy releases it. The proxy also records every request and response, which gives the scheduler each sandbox’s execution and inference intervals without instrumenting the agent. Memory and checkpoints: Speculative swapping uses the kernel’s reclaim and process_madvise interfaces on the sandbox’s processes, so swapping out and prefetch happen outside the agent. Selective rollback uses wholecontainer checkpoints: the daemon freezes the sandbox’s cgroup, dumps its processes with CRIU, and snapshots the writable layer of its filesystem; a rollback restores both and the agent re-issues the model request that preceded the checkpoint. Checkpoint images live on a RAM-backed filesystem and are discarded when the call completes. Replay harness: To compare policies on identical agent behavior we built TideBox, about 6K lines of Python. It records an agent run once, capturing every model request and response with its timing together with the sandbox telemetry, and replays the recording in a fresh sandbox: a per-sandbox controller answers the agent’s model requests from the tape through the proxy while the tool calls execute for real in the sandbox. The replay driver paces sandbox arrivals, repeats each recording a configurable number of times, and compares every tool call’s output and execution time with the recording and with reference replays.
6
E VALUATIONS
6.1
Experiment Setup
Models and agent: We use two models: Claude Sonnet 5.5 and DeepSeek V4.1 Flash. The harness is Claude Code (versions 2.1.300–2.1.309), which runs unmodified inside each sandbox with the model reached through the TideSand proxy. Each task was run with the agent’s default settings for the benchmark (effort max for AlgoTune and TerminalBench Science, medium for Terminal-Bench 4.0 on Sonnet), and every experiment replays these recordings as described in §5 to compare on identical agent behavior. Hardware: Each experiment runs on an AWS c7g.metal
7
100 90 80 70 60 50 40
0
0
1500
2500
Strict
Overcommit AgentCgroup Terminal-Bench 4.0
100 95 90 0.6 85 80 1.0 75 0.8 better →↑ 70 3000 4500 0 100 0.6 90 0.8 80 70 1.0 60 50 better →↑ 40 5000 7500 0
Throughput (tool calls/hr)
TideSand (Ours) Terminal-Bench Science
100
0.6 0.8
90 80 1.0
better →↑
5000
0.6
70
0.8
60 50
better →↑
10000
15000
0
12000
100 0.6 95 90 85 1.0 80 75 better →↑ 70 18000 0
2000
4000
Throughput (tool calls/hr)
6000 0.6
0.8
6000
1.0
0.8 1.0
better →↑
3000
6000
DeepSeek V4.1 Flash
Tool Call Fidelity (%)
100 90 80 70 60 50 40
AlgoTune
Claude Sonnet 5.5
Tool Call Fidelity (%)
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
9000
Throughput (tool calls/hr)
Figure 7. TideSand achieves better tradeoff on throughput and fidelity across six model-workload pairs. Higher throughput and fidelity is better.
bare-metal instance: 64 Arm Neoverse-V1 cores (Graviton3), 128 GB of DRAM, gp3 storage, Ubuntu with Linux 6.17. The sandboxes run in a cgroup of 56 cores and 112 GiB; the remaining 8 cores run the replay driver and the daemon. A 64 GB swap file backs speculative swapping and the memory overcommitment of the baselines. Workloads: We use three agent benchmarks with resourceintensive tools. • AlgoTune (Press et al., 2025): the agent optimizes the runtime of an algorithm while preserving correctness, profiling candidate implementations in the sandbox; 50 tasks, each with 8 CPUs and 16 GB. • Terminal-Bench 4.0 (Merrill et al., 2026; The TerminalBench Team, 2026c): terminal tasks verified by taskspecific tests; 50 recorded tasks , with 2–16 CPUs and 4–16 GB each. • Terminal-Bench Science (Terminal-Bench-Science Team, 2026): data-analysis and simulation tasks derived from published research; a random 50 of the 62 recorded tasks, with 1–4 CPUs and 2–16 GB each. Every task is capped at two hours of agent time. To load the host with enough load, the driver offers the recorded tasks at a fixed arrival rate and repeats each recording: AlgoTune at ×2 (100 sandboxes, one every 15 s), Terminal-Bench at ×8 (400 sandboxes, one every 3 s), and Terminal-Bench Science at ×2 (100 sandboxes, one every 15 s). Baselines: We compare TideSand with three policies implemented in the same daemon: • Strict reservation: a sandbox is admitted only when its configured CPU and memory fit in the physical capacity. • Overcommit-θ: a sandbox is admitted whenever the host’s
measured CPU and memory use are both below a fraction θ of capacity, with θ ∈ {0.6, 0.8, 1.0}; once admitted, sandboxes run without further control. This is similar to the threshold-based overcommit of DeepSeek’s DSec (Huang et al., 2026b). • AgentCgroup (Zheng et al., 2026): the tool-call resource controller of AgentCgroup, ported as its cgroup-v2 control loop (Appendix B). Each tool call is classed by a hint and given a memory allowance and a CPU weight; under memory pressure, high-class sandboxes are protected and the rest are throttled. Metrics: We evaluate on the following metrics: • Throughput: tool calls completed per host-hour. We measure until 80% of the run’s tool calls have completed to prevent stragglers dominating delay. • Tool-call fidelity: the fraction of tool calls whose delay inflation is less than 10% of their reference time, which is the slowest of five strict replays of the same recording on strictly reserved host. We only measure fidelity for calls with a reference time of at least one second. • Replay-reward error: the percentage change in tasks’ verifier score running in new sandbox system against the strict replay of the same recording. 6.2
End-to-End Results
Throughput and Fidelity: Figure 7 shows the throughput and fidelity of the four policies on the six model-workload pairs. Strict keeps fidelity but runs at a significantly lower throughput. On the other hand, TideSand achieves higher throughput while maintaining similar fidelity with strict, achieving better tradeoff compared with baselines. AgentCgroup’s performance is close to overcommit-1.0 on every
8
Sonnet 5.5
+77 % +1 %
-4 %
Overcommit
8× 16×
4×
6×
40 8×
20 0
TideSand
Strict
AlgoTune TerminalTB Bench Science
6 4
2.4 1.4
2
0.5 0.5
0
Overcommit
TideSand
100 75 50 25 0 100 75 50 25 0
1.0
0.6
AlgoTune TerminalTB Bench Science
(b) Dispersion
Figure 10. CPU burstiness of each workload under strict reservation (a) each sandbox’s peak-to-mean CPU; (b) the variance-tomean ratio of each sandbox’s CPU, in cores. AlgoTune Sonnet has the highest spikiness and dispersion.
Overcommit
AgentCgroup
TideSand (Ours)
100
Tool Call Fidelity (%)
DRAM (%)
CPU (%)
Strict
Swap (GiB)
25×
(a) Spikiness
Figure 8. TideSand reduces the actual reward error on AlgoTune compared to using overcommit policy during actual evaluations.
15 10 5 0
60
DeepSeek V4.1 Flash
CPU variance / mean
300 200 100 0 −100 −200
CPU peak / mean
Task Reward Error (%)
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
defer only
90
all
80 70
0.6
60
0.8 0.8
50 40
3200
4000
rollback only none speculate only 1.0
4800
Throughput (tool calls/hr)
better →↑
5600
Figure 11. Ablation of TideSand on AlgoTune (×2). We compare individual mechanisms of TideSand against the full policy.
the host. TideSand admits a tool call only when it fits the measured headroom, so the more dispersed the workload, the more it gains over baselines.
0
50
100
150
200
Time (min)
250
300
Figure 9. Time series of host CPU, DRAM, and swap use during Terminal-Bench Science runs with Claude Sonnet 5.5 under strict reservation, overcommit-0.8, and TideSand.
workload: its throughput stays within 11% of overcommit1.0’s, and its fidelity ranges from 52% to 84%, 9–42% below TideSand’s. Notice that sometimes Overcommit achieves better throughput than TideSand despite having a worse tradeoff curve. We did not extend TideSand to that tradeoff point because in practice low fidelity (e.g., under 80%) could lead to a failed agent. Workload Burstiness: TideSand’s advantage is largest on AlgoTune with Sonnet, and Figure 10 shows why: its sandboxes are the spikiest (peak 25× the mean CPU, against 4–16× in other workloads) and the most dispersed. Dispersion, the variance of a sandbox’s CPU use over its mean, measures how much the CPU demand fluctuates for each sandbox. The baselines do not predict bursts when admitting sandboxes, so when several burst at once they saturate
Task-Score Error: We measure the significance of TideSand’s fidelity increase in Figure 8. We replay the same recorded trace of AlgoTune under Sonnet of each task and re-score the identical final solution with the benchmark’s verifier under different sandbox policies. Against the strict replay, overcommit changes the reward by +77% on average with a standard deviation of 278% over the 32 scored tasks, while TideSand changes it by −4% ± 14%, significantly reducing the error. Notice that a second strict run differs from the first by +1% ± 5%, which is almost indistinguishable from TideSand’s error. Resource Utilization: Figure 9 shows how the host’s CPU, DRAM, and swap use changes over time during the Terminal-Bench Science’s Sonnet runs. Strict reservation keeps the host at 23% CPU on average for six hours and never exceeds a fifth of its DRAM. Overcommit-0.8 admits the workload within its first hour and holds the host at 100% CPU for the next hour while resident memory and swap climbs. This damages the fidelity of the task running during this period. TideSand runs the same workload at below 80% CPU and 60% DRAM utilization, resulting in tool call fidelity preservation.
9
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents Tool Call Fidelity (%)
CPU Threshold 96
Bandwidth Threshold 95.0
0.55
0.8
94.9 0.7
95
Rollback Threshold 95.5
0.6
0.7
94.8
o
ff
0.85
95.0
94.7
94
94.6
0.85
93 5200
5600
o
94.5
ff
1.0
1.0
94.5 5450
Throughput (tool calls/hr)
5475
5500
5400
Throughput (tool calls/hr)
5550
Throughput (tool calls/hr)
Figure 12. TideSand remains robust across different hyperparameter setups on AlgoTune dataset running under Sonnet 5.5.
AlgoTune
Tool Call Delay (%)
400
Terminal-Bench Terminal-Bench Science
200 100 Strict Overcommit TideSand
Strict Overcommit TideSand
Strict Overcommit TideSand
Figure 13. TideSand keeps tool-call distributions similar to Strict across workloads
0.44%
0.4 0.23%
0.01%
0.06% 0.00%
AlgoTune TerminalBench
0.03%
TB Science
(a) Rollback frequency
DeepSeek V4.1 Flash
CPU overhead (%)
Calls rolled back (%)
Sonnet 5.5
0.0
Rollback Checkpoint
2 1
2.0%
0.8% 0.5%
0
1.6%
0.0%
AlgoTune TerminalBench
0.2%
TB Science
(b) Rollback overhead
Figure 14. TideSand rolls back few tool calls, with CPU overhead under 2% across workloads.
6.3
Microbenchmarking: Figure 14 measures how often selective rollback acts and what it costs across the six end-to-end runs. Only 0.6–2.9% of calls are checkpointed, and rollbacks are rare: at most 0.44% of calls, on Terminal-Bench Science with Sonnet. Counting both checkpoint freezes and discarded execution, the CPU overhead stays below 2% on every workload. This shows that TideSand rarely falls back to rollback and the cost is minimal.
7
300
0.2
along its throughput-fidelity tradeoff curve, but does not dampen the design’s superiority over baselines.
Extended Evaluation
Tool-Call Distributions: Figure 13 shows each tool call’s execution time relative to its reference for the three Sonnet workloads. Strict concentrates tightly around the reference, while overcommit develops a long tail of heavily slowed calls. TideSand stays close to strict and removes most of this tail. Terminal-Bench shows the smallest gap because its calls are short and rarely saturate the host. Mechanism Ablation: Figure 11 runs TideSand with one mechanism at a time on AlgoTune with Sonnet. Each mechanism alone moves above the overcommit curve, with defer only lands close to full policy but sacrifices throughput. Speculative swapping and rollback are slightly above overcommit for their ability to clear more spaces to reduce contention. However, no single mechanism is able to achieve the best tradeoff as TideSand does. Parameter Sensitivity: Figure 12 varies one parameter at a time from the default configuration on AlgoTune with Sonnet. Across all these settings, fidelity stays between 93% and 96%, and no setting causes a sharp drop in either metric. Changing these parameters only slightly shifts TideSand
R ELATED W ORK
LLM Inference: LLM serving systems improve inference through memory management and attention kernels (Kwon et al., 2023; Zheng et al., 2024; Ye et al., 2025), prefilldecode disaggregation (Zhong et al., 2024; Qin et al., 2026), and KV-cache compression, reuse, and offloading (Liu et al., 2024b; Yao et al., 2026; Gao et al., 2024; Liu et al., 2025). For agent workloads, Agentix (Luo et al., 2026) schedules calls using program-level history, Continuum (Li et al., 2026a) retains KV caches during tool calls with bounded time-to-live, and MORI (Xia et al., 2026) uses relative idleness to place caches across GPU and CPU memory. ThunderAgent (Kang et al., 2026) coordinates programaware inference scheduling with tool-resource management. TideSand addresses the complementary challenge of sharing CPU and memory for sandboxes. Serverless Container and Sandbox: Serverless systems reduce environment startup and memory costs through caching, prefetching, and reclamation. Catalyzer (Du et al., 2020) reuses initialized state for fast sandbox startup, and MITOSIS (Wei et al., 2023) enables RDMA-based remote fork without provisioning cached instances on each host. RainbowCake (Yu et al., 2024) shares container layers, REAP (Ustiugov et al., 2021) prefetches snapshot working sets, and FaaSMem (Xu et al., 2024) and Squeezy (Lagkas Nikolos et al., 2026) improve memory efficiency through offloading and reclamation. Jiagu (Liu et al., 2024a) combines performance-aware scheduling and staged scaling to improve utilization while maintaining QoS. TideSand complements these mechanisms by exploiting agent specific improvements by efficient sharing while controlling contention for fidelity to preserve autoresearch agent measurements. Commercial Sandbox: We describe the oversubscription policies of two leading commercial sandbox providers: E2B supports memory oversubscription through userfaultfdbased lazy memory loading, allocating physical memory only as sandbox pages are accessed (E2B, 2026b;a). Modal supports CPU oversubscription by separating guaranteed CPU reservations from maximum usage limits, allowing sandboxes to burst beyond their reserved capacity when
10
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
spare resources are available (Modal, 2026b;a). However, both policies are designed to improve execution time rather than fidelity. Our focus is preserving that criterion for autoresearch measurements while sharing idle resources.
8
F UTURE W ORK
Extension to More Sandbox Types: Extending TideSand to GPU or TPU sandboxes requires tracking and reclaiming accelerator state alongside CPU memory. Tools may load model weights, allocate device buffers, or launch kernels, so restoring a sandbox must preserve consistency between host and device state while weighing transfer costs against expected idle intervals. While utilities like NVIDIA’s CUDA checkpoint (NVIDIA, 2026) support saving and restoring GPU state alongside CPU checkpoints, arbitrary accelerator workloads and other backends (such as TPUs) require assessing backend-specific runtime and driver capabilities. Co-design with Inference System: Sandbox and inference systems can coordinate in both directions: inference progress can guide sandbox restoration, while tool execution signals can inform KV-cache retention. For example, Continuum uses tool-aware time-to-live policies to keep an agent’s KV cache in GPU memory across short tool calls (Li et al., 2026a). A joint scheduler could refine these decisions using live signals, such as evicting KV cache when sandbox server is already under contention, or reclaiming sandbox memory during extended inference waits. Better Mechanism Support: Our main contribution in TideSand is outlining three key ideas for obtaining performance accurate sandboxes. However, the mechanisms that implement these ideas, can be made more efficient and left as future work. For example, we found no good preexisting read-to-use methods for implementing memory bandwidth isolation between sandboxes, and this made perfect tool-call fidelity hard to obtain. Checkpoint and restore overhead can also be further reduced with more efficient mechanisms such as (Dong et al., 2026).
9
C ONCLUSION
Agent sandboxes introduce new opportunities for sandbox management: bursty tool execution allows resource multiplexing for more efficient resource utilization. However, resource contention can distort the measurements that guide subsequent agent decisions, compromising tool-call fidelity and task quality. We present TideSand, which combines agent-aware scheduling, speculative swapping, and selective rollback to obtain performance accurate sandbox multiplexing. Across six model-workload pairs, our evaluation shows that TideSand achieves 3.8–10× the throughput of strict reservation while preserving tool-call fidelity, 7–44% higher fidelity than overcommitting at similar throughput, and reduces the error in the agent’s task reward from 77% to
4%. We hope this work motivates the development of more performance-accurate sandbox systems for LLM agents that operate with high resource utilization.
R EFERENCES Agache, A., Brooker, M., Iordache, A., Liguori, A., Neugebauer, R., Piwonka, P., and Popa, D.-M. Firecracker: Lightweight Virtualization for Serverless Applications. In 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI 20), pp. 419–434. USENIX Association, 2020. URL https://www.usenix.o rg/conference/nsdi20/presentation/ag ache. Artificial Analysis. Terminal-Bench 2.1 Benchmark, 2026. URL https://artificialanalysis.ai/ev aluations/terminalbench- 2-1. Accessed October 25, 2026. Chen, Z., Chen, S., Ning, Y., Zhang, Q., Wang, B., Yu, B., Li, Y., Liao, Z., Wei, C., Lu, Z., Dey, V., Xue, M., Baker, F. N., Burns, B., Adu-Ampratwum, D., Huang, X., Ning, X., Gao, S., Su, Y., and Sun, H. ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discovery. In International Conference on Learning Representations, volume 2025, pp. 96934–96990, 2025. URL https://proceeding s.iclr.cc/paper_files/paper/2025/fil e/f12b4df26344f3be803c06b555252efe-P aper-Conference.pdf. Dong, Y., He, J., Liu, S., Hou, Y., Du, D., Xu, Z., Yu, S., Yang, B., Xia, Y., and Chen, H. DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollback. arXiv preprint arXiv:2605.22781, 2026. URL https://arxiv.org/abs/2605.2 2781v2. Du, D., Yu, T., Xia, Y., Zang, B., Yan, G., Qin, C., Wu, Q., and Chen, H. Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting. In Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 467–481. ACM, 2020. doi: 10.1145/3373376.3378512. URL https://doi.or g/10.1145/3373376.3378512. E2B. E2B Infrastructure Architecture, 2026a. URL https: //github.com/e2b-dev/runtime/blob/ma in/docs/ARCHITECTURE.md. Accessed October 25, 2026. E2B. E2B Embed with Docker Compose, 2026b. URL ht tps://github.com/e2b-dev/runtime/blo b/main/embed/compose/README.md. Accessed October 25, 2026.
11
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
Gao, B., He, Z., Sharma, P., Kang, Q., Jevdjic, D., Deng, J., Yang, X., Yu, Z., and Zuo, P. Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttention. In 2024 USENIX Annual Technical Conference (USENIX ATC 24), pp. 111–126. USENIX Association, 2024. URL https://www.usenix.o rg/conference/atc24/presentation/gao -bin-cost. Huang, J., Ma, T., Liu, Z., Lin, S., Chen, K., Jiang, J., Liao, X., Shan, Y., Wu, Y., Zhang, N., Lu, M., Ma, T., Gong, H., and Zhang, M. TrEnv-X: Transparently Share Serverless Execution Environments Across Different Functions and Nodes. ACM Transactions on Computer Systems, 44(3): 1–39, 2026a. doi: 10.1145/3805475. URL https: //doi.org/10.1145/3805475. Huang, J., Tang, H., Chen, J., Liu, Y., Chen, Y., Cheng, Y., Tao, Y., Zhou, J., Chen, Y., Chen, H., et al. DeepSeek Elastic Compute (DSec): A Sandbox Infrastructure for Effective Agentic Training at Scale. arXiv preprint arXiv:2609.22978, 2026b. URL https://arxiv. org/abs/2609.22978v1. Kang, H., Li, Z., Xu, W., Yang, X., Chen, Y., Wang, J., Chen, B., Krishna, T., Xu, C., and Arora, S. ThunderAgent: A Simple, Fast and Program-Aware Agentic Inference System. arXiv preprint arXiv:2602.13692, 2026. URL https://arxiv.org/abs/2602.13692v3. Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J., Zhang, H., and Stoica, I. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611– 626. ACM, 2023. doi: 10.1145/3600006.3613165. URL https://doi.org/10.1145/3600006.3613 165. Lagkas Nikolos, O., Alverti, C., Psomadakis, S., Goumas, G., and Koziris, N. Squeezy: Rapid VM Memory Reclamation for Serverless Functions. In Proceedings of the 21st European Conference on Computer Systems, pp. 1467–1482. ACM, 2026. doi: 10.1145/3767295.3769357. URL https://doi.org/10.1145/3767295. 3769357. Li, H., He, R., Mang, Q., Zhang, Q., Mao, H., Chen, X., Zhou, H., Zhang, H., Cheung, A., Gonzalez, J., and Stoica, I. Continuum: Efficient and Robust MultiTurn LLM Agent Scheduling with KV Cache Time-toLive. arXiv preprint arXiv:2511.02230, 2026a. URL https://arxiv.org/abs/2511.02230v7. Li, M., XU, C., Zhang, Q., Yu, J., Sun, X., Mai, H., and Xie, Z. Memory Compression for High-Fanout Agent Sandboxes. arXiv preprint arXiv:2609.11294, 2026b.
URL https://arxiv.org/abs/2609.11294 v1. Liu, Q., Yang, Y., Du, D., Xia, Y., Zhang, P., Feng, J., Larus, J. R., and Chen, H. Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu. In 2024 USENIX Annual Technical Conference (USENIX ATC 24), pp. 1–17. USENIX Association, 2024a. URL https: //www.usenix.org/conference/atc24/pr esentation/liu-qingyuan. Liu, Y., Li, H., Cheng, Y., Ray, S., Huang, Y., Zhang, Q., Du, K., Yao, J., Lu, S., Ananthanarayanan, G., Maire, M., Hoffmann, H., Holtzman, A., and Jiang, J. CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving. In Proceedings of the ACM SIGCOMM 2024 Conference, pp. 38–56. ACM, 2024b. doi: 10.1145/3651890.3672274. URL https://doi. org/10.1145/3651890.3672274. Liu, Y., Cheng, Y., Yao, J., An, Y., Chen, X., Feng, S., Huang, Y., Shen, S., Zhang, R., Du, K., and Jiang, J. LMCache: An Efficient KV Cache Layer for EnterpriseScale LLM Inference. arXiv preprint arXiv:2510.09665, 2025. URL https://arxiv.org/abs/2510.0 9665v2. Lu, C., Lu, C., Lange, R. T., Foerster, J., Clune, J., and Ha, D. The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery. arXiv preprint arXiv:2408.06292, 2024. URL https://arxiv.org/abs/2408.0 6292v3. Luo, M., Shi, X., Cai, C., Zhang, T., Wong, J., Wang, Y., Wang, C., Huang, Y., Chen, Z., Gonzalez, J. E., and Stoica, I. Agentix: An Efficient Serving Engine for LLM Agents as General Programs. In 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI 26), pp. 2443–2459. USENIX Association, 2026. URL https://www.usenix.org/conference/ nsdi26/presentation/luo. Mang, Q., Chai, W., Li, Z., Mao, H., Zhou, S., Du, A., Li, H., Liu, S., Chen, E., Wang, Y., Chu, X., Cheng, Z., Xu, Y., Xia, T., Wang, Z., Shi, T., Yao, J., Zhao, Y., Zhang, Q., Ruan, C., Shen, Z., Liu, K., He, R., Xing, D., Li, Z., Zeng, Z., Jiang, Y., Cheng, L., Zhao, Z., Sun, Y., Zheng, W., Zhang, M., Ji, R., Tu, X., Zheng, Z., Chen, Z., Zhou, K., Wang, Z., Chen, J., Korolova, A., Henderson, P., Viswanath, P., Ganesh, V., Xie, S., Liu, Z., Song, D., Min, S., Stoica, I., Gonzalez, J. E., Shang, J., and Cheung, A. Frontiercs: Evolving challenges for evolving intelligence, 2025. URL https://arxiv.org/abs/2512.1 5699.
12
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
Mang, Q., Chai, W., He, R., Li, D., Zheng, Z., He, Y., Zhou, X., Wang, H., Ray, S., Peng, B., Ji, R., Yang, S., Xi, H., Chen, B., Han, X. D., Pan, M., Mishra, M., Yu, B., Liu, S., Akillioglu, K., Pan, Y., Wang, Z., Cemri, M., Antunes, D., Wang, Y., Zhang, A. I., Chen, Z., Zhang, Q., Liu, K., Huang, W., Ruan, S., Liu, S., Li, D., Cheng, Z., Shen, Z., Zhou, S., Chen, H., Zhang, Y., Lyu, B., Ao, Q., Zheng, H., Jiang, C., Hu, J., Chen, X., Li, K., Zhong, Z., Tian, H., Zhao, T., He, Y., Li, H., Press, O., Jiao, J., Olukotun, K., Narasimhan, K. R., Shang, J., Sen, K., Zaharia, M., Dimakis, A., Stoica, I., Gonzalez, J. E., and Cheung, A. Frontiercs 2: A benchmark for computer science r&d, 2026. URL https://arxiv.org/abs/2610.2 9932. Maslej, N., Fattorini, L., Perrault, R., Gil, Y., Parli, V., Kariuki, N., Capstick, E., Reuel, A., Brynjolfsson, E., Etchemendy, J., et al. Artificial Intelligence Index Report 2025. arXiv preprint arXiv:2504.07139, 2025. URL https://arxiv.org/abs/2504.07139v3. Merrill, M., Shaw, A., Carlini, N., Li, B., Raj, H., Bercovich, I., Shi, L., Shin, J., Walshe, T., Buchanan, E. K., et al. Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces. In International Conference on Learning Representations, volume 2026, pp. 40903–40986, 2026. URL https: //proceedings.iclr.cc/paper_files/pa per/2026/file/444a3737adaee10d86ad2e f5f74468e6-Paper-Conference.pdf. Modal. Configuring CPU, Memory, and Disk, 2026a. URL https://modal.com/docs/guide/resourc es. Accessed October 25, 2026. Modal. Sandbox, 2026b. URL https://modal.co m/docs/sdk/py/latest/Sandbox. Accessed October 25, 2026. NVIDIA. CUDA Checkpoint and Restore Utility, 2026. URL https://github.com/NVIDIA/cuda-c heckpoint. Accessed October 25, 2026. Press, O., Amos, B., Zhao, H., Wu, Y., Ainsworth, S., Krupke, D., Kidger, P., Sajed, T., Stellato, B., Park, J., et al. AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs? In Advances in Neural Information Processing Systems, volume 38, Main Conference. Curran Associates, Inc., 2025. doi: 10.52202/085713-3585. URL https://doi.org/ 10.52202/085713-3585. Qin, R., Li, Z., He, W., Cui, J., Tang, H., Ren, F., Ma, T., Cai, S., Zhang, Y., Zhang, M., Wu, Y., Zheng, W., and Xu, X. Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving. ACM Transactions on
Storage, 22(4):1–38, 2026. doi: 10.1145/3773772. URL https://doi.org/10.1145/3773772. Terminal-Bench-Science Team. Terminal-Bench-Science: Evaluating AI agents on research workflows across scientific domains. Computer software, 2026. URL https: //doi.org/10.5281/zenodo.22110253. The gVisor Authors. What is gVisor?, 2026. URL https: //gvisor.dev/docs/. Accessed October 25, 2026. The Terminal-Bench Team. Terminal-Bench 2.1 Leaderboard, 2026a. URL https://www.tbench.ai/ leaderboard/terminal-bench/2.1. Accessed October 25, 2026. The Terminal-Bench Team. Terminal-Bench 2.1, 2026b. URL https://www.tbench.ai/news/termi nal-bench-2-1. Accessed October 25, 2026. The Terminal-Bench Team. Terminal-Bench 4.0, 2026c. URL https://www.tbench.ai/news/termi nal-bench-4-0. Accessed October 25, 2026. Ustiugov, D., Petrov, P., Kogias, M., Bugnion, E., and Grot, B. Benchmarking, analysis, and optimization of serverless function snapshots. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 559–572. ACM, 2021. doi: 10.1145/3445814.3446714. URL https://doi.org/10.1145/3445814. 3446714. Vals AI. Terminal-Bench 2.1 Leaderboard and Methodology, 2026. URL https://vals-ai.com/benchm arks/terminal-bench-2-1. Accessed October 25, 2026. Wang, X., Li, B., Song, Y., Xu, F. F., Tang, X., Zhuge, M., Pan, J., Song, Y., Li, B., Singh, J., et al. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. In International Conference on Learning Representations, volume 2025, pp. 65882–65919, 2025. URL https://proceedings.iclr.cc/paper_fi les/paper/2025/file/a4b6ad6b48850c0c 331d1259fc66a69c-Paper-Conference.pd f. Wei, X., Lu, F., Wang, T., Gu, J., Yang, Y., Chen, R., and Chen, H. No Provisioned Concurrency: Fast RDMAcodesigned Remote Fork for Serverless Computing. In 17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23), pp. 497–517. USENIX Association, 2023. URL https://www.usenix.o rg/conference/osdi23/presentation/we i-rdma.
13
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
Xia, T., Li, H., Li, Z., Chen, X., Kang, H., Qiao, Y., Xu, Y., and Stoica, I. Idleness is Relative: Exploiting Tool-Call Idle Windows for Offloading in Agentic Systems with MORI. arXiv preprint arXiv:2606.00866, 2026. URL https://arxiv.org/abs/2606.00866v1. Xu, C., Liu, Y., Li, Z., Chen, Q., Zhao, H., Zeng, D., Peng, Q., Wu, X., Zhao, H., Fu, S., and Guo, M. FaaSMem: Improving Memory Efficiency of Serverless Computing with Memory Pool Architecture. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, pp. 331–348. ACM, 2024. doi: 10.1145/3620666.3651355. URL https: //doi.org/10.1145/3620666.3651355. Yang, J., Jimenez, C., Wettig, A., Lieret, K., Yao, S., Narasimhan, K., and Press, O. SWE-agent: AgentComputer Interfaces Enable Automated Software Engineering. In Advances in Neural Information Processing Systems, volume 37, pp. 50528–50652. Curran Associates, Inc., 2024. doi: 10.52202/079017-1601. URL https://doi.org/10.52202/079017-1601. Yao, J., Li, H., Liu, Y., Ray, S., Cheng, Y., Zhang, Q., Du, K., Lu, S., and Jiang, J. CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion. ACM Transactions on Computer Systems, 2026. doi: 10.1145/3790254. URL https://doi.org/10.1 145/3790254. Ye, Z., Chen, L., Lai, R., Lin, W., Zhang, Y., Wang, S., Chen, T., Kasikci, B., Grover, V., Krishnamurthy, A., and Ceze, L. FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving. In Proceedings of Machine Learning and Systems, volume 7. MLSys, 2025. URL https://proceedings.mlsys.org/pa per_files/paper/2025/file/dbf02b21d7 7409a2db30e56866a8ab3a-Paper-Confere nce.pdf.
Zheng, L., Yin, L., Xie, Z., Sun, C., Huang, J., Yu, C. H., Cao, S., Kozyrakis, C., Stoica, I., Gonzalez, J. E., Barrett, C., and Sheng, Y. SGLang: Efficient Execution of Structured Language Model Programs. In Advances in Neural Information Processing Systems, volume 37, pp. 62557–62583. Curran Associates, Inc., 2024. doi: 10.52202/079017-2000. URL https://doi.org/ 10.52202/079017-2000. Zheng, Y., Fan, J., Fu, Q., Yang, Y., Zhang, W., and Quinn, A. AgentCgroup: Understanding and Controlling OS Resources of AI Agents. arXiv:2602.09345, 2026. Zhong, Y., Liu, S., Chen, J., Hu, J., Zhu, Y., Liu, X., Jin, X., and Zhang, H. DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), pp. 193–210. USENIX Association, 2024. URL https://www.usenix.org/conference/os di24/presentation/zhong-yinmin. Zhou, S., Xu, F. F., Zhu, H., Zhou, X., Lo, R., Sridhar, A., Cheng, X., Ou, T., Bisk, Y., Fried, D., Alon, U., and Neubig, G. WebArena: A Realistic Web Environment for Building Autonomous Agents. In International Conference on Learning Representations, volume 2024, pp. 15585–15606, 2024. URL https: //proceedings.iclr.cc/paper_files/pa per/2024/file/4410c0711e9154a7a2d26f 9b3816d1ef-Paper-Conference.pdf.
10
AI U SAGE D ISCLOSURE
We mainly used coding agents to help generate code. We also used AI tools to proofread, correct grammar, and refine sentences for writing.
Yu, H., Basu Roy, R., Fontenot, C., Tiwari, D., Li, J., Zhang, H., Wang, H., and Park, S.-J. RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and Sharing. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1, pp. 335–350. ACM, 2024. doi: 10.1145/3617232.3624871. URL https: //doi.org/10.1145/3617232.3624871. Zhang, Y., Wo, T., Wang, J., Sun, X., Zhang, M., Yuan, C., Li, L., Hu, C., Zomaya, A. Y., and Yang, R. SpecBox: Speculative Sandbox Scheduling for Efficient LLM Agent Serving. arXiv preprint arXiv:2607.23933, 2026. URL https://arxiv.org/abs/2607.23933v2.
14
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
A
LLM P RICE DATA
Table 2. Models scoring at least 50% on Terminal-Bench 2.1, as plotted in Figure 1(a). Scores are the best independent result recorded in our data: T is the official tbench.ai leaderboard (The Terminal-Bench Team, 2026a), V is Vals AI (Terminus 2 harness) (Vals AI, 2026), and A is Artificial Analysis (Artificial Analysis, 2026). Prices are listed input/output rates in USD per 1M tokens compiled in October 2026; blended weights input and output 3:1. Bold rows set a new lowest blended price.
B
Model
Developer
Release
Gemini 3 Pro Gemini 3 Flash Claude Sonnet 4.6 Gemini 3.1 Pro GPT-5.4 mini GLM-5.1 Qwen3.6 Plus Claude Opus 4.7 Kimi K2.6 MiMo V2.5 MiMo V2.5 Pro GPT-5.5 DeepSeek V4 Composer 2.5 Gemini 3.5 Flash Qwen3.7 Max Claude Opus 4.8 MiniMax-M3 Qwen3.7 Plus Nemotron 3 Ultra Claude Fable 5 Kimi K2.7 Code GLM-5.2 Claude Sonnet 5 Grok 4.5 GPT-5.6 Luna GPT-5.6 Sol GPT-5.6 Terra Muse Spark 1.1 Inkling Kimi K3 Gemini 3.5 Flash-Lite Gemini 3.6 Flash Ling 3.0 Flash Claude Opus 5 Inkling Small DeepSeek V4 Flash 0731 Qwen3.8 Max Muse Spark 1.2 Grok 4.6 DeepSeek V4 Pro 0813 Gemini 3.7 Flash Qwen3.8 27B GLM-5.3 GLM-5.3-Flash Hy4 Preview Claude Fable 5.1 Gemini 3.8 Flash Muse Spark 1.3 Qwen3.8 Max 0902 GPT-6 Astra DeepSeek V4.1 Flash Grok 4.7 MiMo V2.6 Flash MiMo V2.6 Pro Claude Opus 5.5 GPT-6 Luna GPT-6 Sol Claude Sonnet 5.5 Gemini 4 Argon Muse Spark Open
Google Google Anthropic Google OpenAI Zhipu Alibaba Anthropic Moonshot Xiaomi Xiaomi OpenAI DeepSeek Cursor Google Alibaba Anthropic MiniMax Alibaba NVIDIA Anthropic Moonshot Zhipu Anthropic xAI OpenAI OpenAI OpenAI Meta Thinking Machines Moonshot Google Google InclusionAI Anthropic Thinking Machines DeepSeek Alibaba Meta xAI DeepSeek Google Alibaba Zhipu Zhipu Tencent Anthropic Google Meta Alibaba OpenAI DeepSeek xAI Xiaomi Xiaomi Anthropic OpenAI OpenAI Anthropic Google Meta
2025-11-18 2025-12-17 2026-02-17 2026-02-19 2026-03-17 2026-03-27 2026-03-31 2026-04-16 2026-04-20 2026-04-22 2026-04-22 2026-04-23 2026-04-24 2026-05-18 2026-05-19 2026-05-19 2026-05-28 2026-06-01 2026-06-02 2026-06-03 2026-06-09 2026-06-12 2026-06-16 2026-06-30 2026-07-08 2026-07-09 2026-07-09 2026-07-09 2026-07-09 2026-07-15 2026-07-16 2026-07-21 2026-07-21 2026-07-23 2026-07-24 2026-07-30 2026-07-31 2026-08-02 2026-08-05 2026-08-12 2026-08-13 2026-08-13 2026-08-14 2026-08-18 2026-08-26 2026-08-27 2026-09-01 2026-09-02 2026-09-02 2026-09-02 2026-09-03 2026-09-09 2026-09-21 2026-09-21 2026-09-21 2026-09-22 2026-09-22 2026-09-22 2026-09-28 2026-09-30 2026-10-15
Open
✓ ✓ ✓ ✓ ✓
✓ ✓ ✓ ✓
✓ ✓ ✓ ✓ ✓
✓ ✓ ✓ ✓ ✓
✓ ✓ ✓
✓
TB2.1 (%)
Src
Input
Output
Blended
73.9 53.9 57.3 70.8 54.7 58.6 53.2 68.9 53.6 60.7 57.3 83.2 50.2 58.4 74.2 61.0 78.9 65.2 52.8 50.9 83.8 67.0 67.8 74.6 79.3 79.0 89.5 78.4 76.2 55.1 85.0 50.2 73.8 50.2 84.6 55.1 67.0 67.4 69.7 78.3 54.7 77.5 79.8 83.9 84.3 55.1 91.4 87.6 79.0 88.8 89.9 74.5 73.4 76.4 67.8 87.6 73.0 83.2 83.2 57.7 76.4
T V V V V T V T V V V T V V V V T A V V T V V T T V A T T A A V V V V V V V V V V V A A A V A A V A A V V V V V V V V V A
2.00 0.50 3.00 2.00 0.75 1.00 0.50 5.00 0.95 0.14 0.435 5.00 1.32 0.50 1.50 2.50 5.00 0.60 0.40 0.60 10.00 0.95 1.40 2.00 2.00 0.20 4.00 2.00 1.25 1.00 3.00 0.30 1.50 0.075 5.00 0.30 0.44 2.00 1.25 2.00 1.32 1.50 0.50 1.40 0.075 0.834 10.00 1.50 1.25 2.00 10.00 0.30 2.00 0.14 0.435 4.00 0.10 2.00 2.00 4.00 1.25
12.00 3.00 15.00 12.00 4.50 3.20 3.00 25.00 4.00 0.28 0.87 30.00 3.96 2.50 9.00 7.50 25.00 2.40 1.60 2.40 50.00 4.00 4.40 10.00 6.00 1.20 20.00 12.00 4.25 4.05 15.00 2.50 7.50 0.22 25.00 1.20 1.32 6.00 4.25 6.00 3.96 7.50 3.00 4.40 0.25 2.501 50.00 7.50 4.25 6.00 50.00 1.20 6.00 0.28 0.87 20.00 0.50 10.00 10.00 20.00 4.25
4.500 1.125 6.000 4.500 1.688 1.550 1.125 10.000 1.712 0.175 0.544 11.250 1.980 1.000 3.375 3.750 10.000 1.050 0.700 1.050 20.000 1.712 2.150 4.000 3.000 0.450 8.000 4.500 2.000 1.762 6.000 0.850 3.000 0.111 10.000 0.525 0.660 3.000 2.000 3.000 1.980 3.000 1.125 2.150 0.119 1.251 20.000 3.000 2.000 3.000 20.000 0.525 3.000 0.175 0.544 8.000 0.200 4.000 4.000 8.000 2.000
AGENT C GROUP BASELINE
The AgentCgroup baseline in §6 is a port of the tool-call resource controller of AgentCgroup (Zheng et al., 2026), run as its cgroup-v2 control loop inside the same daemon as the other policies.
15
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
Each tool call, delimited by the sandbox’s model requests, opens a resource domain. A hint derived from the call (file tools and light shell commands low, package fetches medium, everything else high) sets the sandbox’s memory.high to the call’s allowance over the sandbox’s memory at the call’s start (256 MiB, 1 GiB, or the limit) and its CPU weight to its class’s (150 high, 50 low). Memory pressure, from host memory use above 85%, memory PSI above 10%, or a high-class call stalling on memory, opens one-second protection windows in which high-class sandboxes are protected with memory.low and low-class sandboxes are squeezed to their current use plus 256 MiB and frozen after three seconds over their cap. The controller’s per-call child cgroups cannot be created on the container’s exec path, so the domain is the sandbox’s cgroup, and the agent’s response to the controller’s throttling feedback, re-issuing the call with a higher hint, is replayed as a promotion of the hint after 30 seconds of throttling.
16
Related documents
- TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents#1762626
- FuzzingBrain V2: A Multi-Agent LLM System for Automated Vulnerability Discovery and Reproduction#216739
- Automated performance evaluation technique for cryptologic sites#1242809
- IVA 2026: Proceedings of the 26th ACM International Conference on Intelligent Virtual Agents#965772
- CRAFT: Clustering Rubrics to Diagnose Weak LLM Capabilities and Generate Targeted Fine-Tuning Data#381731
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive