Definitions

How computers for agents work, from the hardware to the sandbox.

Definitionsc

Checkpoint and restore

Checkpoint and restore saves the full state of a running program or machine, so it can continue later from exactly that point.

A checkpoint is a saved copy of the full state of something that is running, such as a process, a container or a virtual machine. It includes memory, open files, CPU registers and other state that the kernel or hypervisor holds. Restoring the checkpoint brings the program back to exactly that moment, as if it had never stopped. Tools such as CRIU do this for Linux processes, and hypervisors do it for whole virtual machines.

Checkpoints let long work survive a stop. A program can be paused, moved to another host, or recovered after a failure without starting over. A checkpoint can also be restored many times, which turns a slow setup into a fast start for every copy. The cost is the time and storage to save memory, which grows with the size of the program.

Sandbox snapshots, forks and pause and resume are all forms of checkpoint and restore. A sandbox can be saved once its tools are installed and its data is loaded, then restored in seconds. Reinforcement learning uses the same idea to reset an environment to a known state before each episode. Restored copies share their original state, so anything random or secret in it is shared too and may need refreshing.