DeepSeek Elastic Compute (DSec)
Reading guide · Based on sections of the original paper
Why read this
This is for practitioners who build or operate rollout infrastructure for agentic RL and need measured evidence on how image distribution, environment setup, memory and CPU overcommit behave at sandbox-burst scale.
What the authors found
- The authors burst 8,192 containers across a 10-node test cluster on a real RL evaluation workload. On-demand EROFS loading from 3FS finished in about 35 minutes, matching pre-cached local images. Eager cold Docker pulls took over 60 minutes, a 1.71× slowdown. Per-node disk writes were about 700 GB on demand, versus over 1,600 GB for eager pulls and about 600 GB for cached images. 8.2 On-Demand Image Loading
- Workspaces and toolkits were provisioned from the same files, and tool calls were replaced with a deterministic replay. Mounting them as composable EROFS layers cut completion time from 79 minutes with per-sandbox tar.gz extraction to 45 minutes, a 1.76× speedup. Tar extraction produced about 5.5× the total disk-write traffic. 8.3 Composable Image Layers: EROFS vs. Tar
- The test workload was a latency-sensitive chess task co-located with 50% best-effort load. Without QoS, per-step latency rose 45.2% over the no-co-location baseline. SCHED_IDLE alone improved latency by at most 3.4%. Adding core scheduling limited the inflation to 17.3%. 8.5 CPU QoS under Overcommit
Main limitation
The experiments cover only four infrastructure mechanisms and ran on a dedicated 10-node test cluster rather than in production. The RL-framework integration is outside the evaluation scope. That includes the decoupled agent loop, pause/resume and the access controls against reward hacking. Production scale figures such as about 380K concurrent sandboxes are reported as deployment numbers, not as controlled experiments. 8 Evaluation
Where to start
6.4 Agent Misbehavior and System Failures · Look for the authors' production observations of agents obtaining answers through unintended channels and accidentally destabilizing infrastructure. These show why final-output checks alone may not validate rewards. The access controls in S28 are not experimentally evaluated.
Abstract
Large-scale agentic training and evaluation with large language models (LLMs) rely on isolated, stateful execution environments in which models inspect repositories, invoke tools, execute commands, and interact with task-specific services. These workloads create sandboxes in large bursts, span heterogeneous functionality and isolation requirements, retain state across long interactions, and draw from large image corpora with limited reuse. Supporting them therefore requires an elastic execution platform rather than a single sandbox runtime. This report presents DeepSeek Elastic Compute (DSec), a production sandbox platform that exposes FnCall, container, microVM, and full-VM sandbox backends through a unified SDK. DSec coordinates placement and lifecycle management across the cluster, composes environments from independently versioned layers, combines memory sharing, reclamation, and CPU scheduling for high-density execution, and loads image data on demand from Fire-Flyer File System (3FS), a cluster-wide distributed filesystem. DSec is co-designed with the reinforcement learning (RL) framework, decouples stateful rollout execution from preemptible GPU training, coordinates sandbox lifecycle with training to preserve rollout state while reclaiming idle resources, and mitigates agent misbehavior such as reward hacking. A single production-scale unit of DSec spans around 160 nodes, serving about 3 million sandboxes per day; in production, it supports over 380,000 concurrent sandboxes and sustains over 5,000 sandbox creations per second. Our evaluation and deployment experience show that these mechanisms reduce environment setup and image-distribution overhead, improve memory efficiency, and preserve latency-sensitive performance under high-density overcommit.