DeepSeek DSec: Agent Training Sandboxes Have 90% CPU Idle Time, Yet Memory Must Remain Resident
DeepSeek revealed the technical architecture of its elastic computing team, DSec, via QbitAI. In Agent training sandboxes, CPUs are mostly idle, but memory cannot be released to preserve file and process states; creation requests surge in bursts, and environments are highly heterogeneous. DSec addresses these characteristics through three-layer image splitting, on-demand loading, page cache sharing, and overcommit scheduling, achieving a resource overcommit ratio exceeding 50x in production. The team also introduced a trajectory branching mechanism, allowing multiple branches to explore in parallel from the same sandbox state, facilitating environment state reuse for reinforcement learning.
Agent training sandboxes exhibit an counterintuitive operational characteristic: the CPU is mostly idle while waiting for the model to generate the next action, yet memory cannot be released. In a technical share published by DeepSeek via QbitAI in October 2026 titled "DeepSeek Elastic Computing (DSec): Sandbox Infrastructure for Large-Scale Agent Training," the company described its infrastructure design around this constraint.
During Agent training, models must continuously enter real-world environments to execute tasks—reading code, modifying files, installing dependencies, running tests, and operating services. Each step alters the current environment, and subsequent interactions must continue from that state. DeepSeek’s statistics show that approximately 90% of sandboxes have average CPU utilization below 5% of allocated resources, yet files, processes, and other environmental states must be preserved, meaning memory cannot be directly freed. Creation requests often flood in sudden bursts, different Agent tasks require vastly different execution environments with low base image reuse rates, and training processes may be interrupted due to GPU resource preemption. These characteristics distinguish Agent sandbox workloads from typical cloud computing scenarios.
DSec’s approach involves splitting the environment into three layers: the operating system and basic software are placed in a base image, task code and dependencies go into a workspace, and tools like DeepSeek Harness are packaged separately as toolkits. Each part manages versions independently, and they are combined when creating a sandbox. Updating tools only requires rebuilding the specific layer containing them, rather than recreating the entire environment. DeepSeek’s production data from a week in 2026 showed that the Container backend alone utilized 11,266 base images, 102,171 workspaces, and hundreds of toolkits.