---
title: "Local disk"
url: https://www.daytona.com/compute-glossary/storage/local-disk
---

# Local disk

Part of the [Compute Glossary](https://www.daytona.com/compute-glossary.md), section [Storage](https://www.daytona.com/compute-glossary/storage.md).

Also called NVMe, Local SSD, Instance storage.

A local disk is a drive inside the same [server](https://www.daytona.com/compute-glossary/hardware/server.md) as the processors that use it, connected over PCIe rather than over a network. Cloud providers call it a local SSD or instance storage. The processors reach it directly, with nothing in between but the host's own bus and drivers. On a virtualized server, the hypervisor either hands the drive to one guest or splits it among several.

Because the drive belongs to one server, a local disk shares the fate of that server. A [virtual machine](https://www.daytona.com/compute-glossary/virtualization/virtual-machine.md) keeps it only while it stays on that host, and no other machine can reach its contents. Any redundancy has to come from software, such as a database that copies its writes to other servers. Some servers mirror local drives in pairs, which survives a dead drive but not a dead server.

Local disks therefore trade durability and mobility for speed. Data that must outlive the machine is copied to [block storage](https://www.daytona.com/compute-glossary/storage/block-storage.md) or [object storage](https://www.daytona.com/compute-glossary/storage/object-storage.md), which live apart from any one server. Many systems use both, with the working copy on the local disk and the lasting copy in remote storage. The design question is which data can be rebuilt after a loss and which cannot.

## Speed

The speed of a local disk comes from NVMe, an interface that talks to the drive through many parallel command queues. With no network round trip, each request reaches the drive at a fraction of the [latency](https://www.daytona.com/compute-glossary/foundations/latency.md) of network storage. Each processor core can have its own queue, so cores submit requests without waiting on a shared lock. The drive works through many queued requests at once, which is how it reaches its high operation counts.

That speed makes the local disk the usual place for scratch space and build directories. It also suits database files that are replicated elsewhere, where losing one copy does no harm. Builds and test runs create and delete many small files, a pattern that suffers most from a round trip per operation. If the disk vanishes, the job simply runs again.

The unpacked layers of container and machine images are often kept on the local disk too. A workload reads its files from them at every start, so their speed shows directly in start time. A slow disk here becomes a slow start for every machine on the host. Machines started from one image read the same files, so a single local copy serves them all.

| **Measure**                                          | **Typical value**                                                  |
| ---------------------------------------------------- | ------------------------------------------------------------------ |
| [**Latency**](https://www.daytona.com/compute-glossary/foundations/latency.md) | Latency is the time between asking for something and receiving it. |
| **Operations per second**                            | Hundreds of thousands.                                             |
| **Throughput**                                       | Several gigabytes per second.                                      |

## Durability

The durability of a local disk is limited to the life of its host. A reboot of the same virtual machine usually keeps the data, but a hardware failure loses it, and so does any stop that releases the host to other tenants. Once the host is released, the data cannot wait for the machine to return. The provider promises no copy, so the disk counts as temporary by design.

Providers wipe the drive before handing it to the next tenant. Nothing written to a local disk can be recovered once the machine has left the host, even by its owner. Many drives encrypt everything with a key held inside the drive, and a wipe simply throws that key away. The old blocks stay on the flash but can no longer be read.

A workload on a local disk also cannot move to another server without copying its data first. That ties placement to wherever the data already is, which limits how freely machines can be scheduled. Host maintenance gets harder as well, since emptying a host means copying or giving up every local disk on it. Providers often warn the workload ahead of such events, so it can save what it needs.

| **Event**                | **Data on the local disk**    |
| ------------------------ | ----------------------------- |
| **Reboot**               | Usually kept.                 |
| **Stop**                 | Lost if the host is released. |
| **Move to another host** | Lost.                         |
| **Hardware failure**     | Lost.                         |

## Local caching

Local caching is the use of the local disk as a fast copy of data whose lasting home is elsewhere. Images and [snapshots](https://www.daytona.com/compute-glossary/sandboxes/snapshot.md) stay in object storage, and a host pulls them to its local disk on first use. The cache fills as workloads run and keeps the items used most often. When space runs low, the host evicts the items left unused the longest.

Later starts on the same host read them at local speed, without another trip over the network. The first start on a new host still pays for the full download. Hosts that start the same images all day keep them warm and rarely touch the network. A rarely used image, by contrast, may be evicted between runs and fetched again each time.

A [scheduler](https://www.daytona.com/compute-glossary/infrastructure/scheduler.md) can prefer hosts that already hold the data of a workload, so caching shapes placement as well as speed. A lost cache costs only time, since the data can be fetched again. Sending every start of a popular image to the same few hosts would overload them, so the scheduler weighs cache hits against load. Some platforms also push new images to hosts ahead of demand, so the first start finds them waiting.

## Related terms

- [Server](https://www.daytona.com/compute-glossary/hardware/server.md)
- [Block storage](https://www.daytona.com/compute-glossary/storage/block-storage.md)
- [Object storage](https://www.daytona.com/compute-glossary/storage/object-storage.md)
- [Snapshot](https://www.daytona.com/compute-glossary/sandboxes/snapshot.md)
