← Back to Paper Radar

DeepSeek Elastic Compute (DSec)

Jia-Liang Huang, Hong-Xuan Tang, Jing-Chang Chen, Yuxuan Liu, Yi-Xiao Chen, Yuan Cheng, Ying-Da Tao, Jing-Li Zhou, Yu-Peng Chen, Hao-Yu Chen, Jia-Rui Wang, Shengkai Lin, Chu-Qi Zhang, Brian L. Teng, Lian Guo, Zhe Fu, Wen-Jun Gao, Yi Wang, Liang Zhao, Ze-Hao Wang, Zi-Wei Xie, Yong-Qiang Guo, Pei-Xin Cong, Zi-Yi Gao, Shuiping Yu, Hang Xu, Zuo-Fan Wu, Zhi-Zhou Ren, Yu-Yang Zhou, Bo-Wei Zhang, Zhi-Hua Huang, Qi-Hao Zhu, Lei Wang, Tian-Le Lin, Han Yu, Jie-Wen Hu, De-Jian Yang, Shuo Yang, Shanghao Lu, Shao-Yuan Chen, Jun Qiu, Zhangli Sha, Yin-Min Zhong, Yong-Tong Wu, Shi-Yu Wang, Wei-Ran Liu, Bin Xu, Long-Hao Chen, Qiu-Shi Du, Yuzhi Huang, Shi-Rong Ma, Yao-Hui Wang, Ming-Shu Chen, Tong Xiong, Y.-C. Yan, Hao-Wen Luo, Hao Liang, Xiao-Kang Zhang, Wei-Hao Zeng, R. Xu, Pei-Yi Wang, Jin-Hua Zhu, Ruo-Yu Zhang, Wen-Kai Yang, Qian-Xue Tang, Ji-Ping Yu, Tian Ye, Rui Pan, Honghui Ding, Xiao-Dong Liu, Li M. M. Luo, Zhi-Hong Shao, Yu-Han Wu, Ji-Bai Lu, Wen-Jing Liu, Hao-Ling Zhang, Jing-Cheng Hu, Yao Ye, Chao-Fan Lin, Zhao Zhang, Jian Tong, Heng-Tao Wu, Zhi-Hao Li, Yi Wang, Lu-Yao Wang, Yu-Zhuo Bai, Li Fu, Rui-Fan Xu, Y.-Z. Wang, Zong-Ling Li, Min Wei, Hai-Yang Shen, Cheng Zhang, Chao Jin, Zi-Li Zhang, R.-H. Yang, Xin-Bo Xu, Jian-Ye Zhou, Rui-Dong Zhu, Yu-Zhe Guo, Ze-Lun Pan, Shao Nie, Erhang Li, Shu-Han Lin, Zheng Liu, An Chen, Z. Lyu, Si-Nuo Cao, Rui Yu, Chu-Hao Wang, Jun-Yi Guo, J. Song, Kai-Feng Chen, Meng Ye, Jun-Xian Li, Di Wu, Hai-Yang Ma, Yi Wang, Hao-Ran Yang, Ying Cai, Shichun Liu, Yi-Ping Wang, Jun Sun, Shiheng Xu, Xiao Bi, Ying He, Yi-Chao Zhang, Ming-Xing Zhang, Li-Yue Zhang, Pan-Pan Huang, W. Liang
arXiv.org | 2026

Reading guide · Based on sections of the original paper

The authors present DSec, a production sandbox platform for agentic RL and evaluation. It places FnCall, container, microVM and full-VM backends behind one SDK and combines composable EROFS layers, on-demand image loading from 3FS, memory reclamation, QoS-aware CPU scheduling and lifecycle co-design with the RL trainer.

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.

Generated automatically from paper sections on 2026-11-28.