---
title: "Cold start"
url: https://www.daytona.com/definitions/c/cold-start
---

# Cold start

Cold start is the time that a new sandbox takes to start, and it is one of the main metrics for sandbox compute.

Cold start is the delay between a request for a new environment and the moment that environment is ready to run code. The term applies to sandboxes, virtual machines, containers and serverless functions. A cold start begins from nothing in memory, so the system must create the environment and boot it. A warm start, by contrast, reuses an environment that is already running.

Several steps add to a cold start. The platform must pick a host, fetch or attach the file system image and allocate memory and processors. It then boots a kernel or starts a container runtime, and finally starts the processes inside. Platforms shorten these steps with cached images, pools of ready environments and restore from snapshots.

Cold start matters most when environments are short-lived. An agent may need an environment for a few seconds, so a long start would dominate the total time. Sandbox platforms therefore aim for cold starts measured in milliseconds. Traditional infrastructure compute accepts boot times of tens of seconds, because its machines run for hours or days.

## Related terms

- [Boot process](https://www.daytona.com/definitions/b/boot-process.md)
- [Density](https://www.daytona.com/definitions/d/density.md)
- [Image cache](https://www.daytona.com/definitions/i/image-cache.md)
- [Orchestration](https://www.daytona.com/definitions/o/orchestration.md)
- [Pause and resume](https://www.daytona.com/definitions/p/pause-and-resume.md)
- [Serverless](https://www.daytona.com/definitions/s/serverless.md)
