---
title: "Overcommit"
url: https://www.daytona.com/compute-glossary/infrastructure/overcommit
---

# Overcommit

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

Also called Oversubscription.

Overcommit is the practice of handing out more processor time or memory than a host physically has. It counts on [workloads](https://www.daytona.com/compute-glossary/foundations/workload.md) not to use their full share at the same time, which most of them rarely do. Each workload sees its full share and has no way to tell that others were promised the same hardware. The Linux kernel does the same with memory inside one machine, letting programs reserve more than exists and backing each page only when it is first touched.

A server whose tenants each reserve several processors but use a fraction of them can host far more tenants than a strict count allows. The operator then buys fewer machines for the same work. The savings grow with the number of tenants, since the peaks of many independent workloads rarely line up. Idle development machines and sandboxes waiting for input suit it well, because they sit unused most of the time.

The risk is the moment when demand does line up. If every tenant asks for its full share at once, the host cannot keep all its promises, and some work has to slow down or stop. Load that is linked makes this more likely than chance suggests, for example a batch of jobs that all start on the hour. A host can also move tenants elsewhere, but moving a running machine takes time a peak may not allow.

## Processor time and memory

Processor time and memory are the two resources most often overcommitted, and they behave differently when they run short. That difference sets how far each one can be pushed. Storage is often thin-provisioned in the same way, handing out disks larger than the space behind them. Whether a shortage causes a slowdown or a crash decides how cautious an operator must be.

Processor time is easy to share. A [vCPU](https://www.daytona.com/compute-glossary/virtualization/vcpu.md) that is not running costs nothing, and when too many want to run, the host takes turns, so work slows rather than crashes. Work with deadlines can still miss them or time out. A guest whose vCPU waits for a physical core sees the delay as stolen time, which most kernels report. Work that needs steady timing, such as audio or trading, suffers more than batch jobs that only care about the total.

[Memory](https://www.daytona.com/compute-glossary/hardware/memory.md) is harder, because a byte handed out cannot be in two places at once. When guests touch more memory than the host has, the host must take some back, and the last resort is killing a process. A guest also rarely gives memory back on its own, since its kernel fills spare memory with file cache. The host sees that cache as used, even though the guest could drop it at any time.

| **Aspect**        | **Processor**                                         | **Memory**                                                                                   |
| ----------------- | ----------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| **Unit promised** | The host promises vCPUs or shares of processor time.  | The host promises bytes of guest or container memory.                                        |
| **Shortage**      | Every workload runs slower, and some may time out.    | Some workload has to give up memory or stop.                                                 |
| **Reclaim**       | The host gives each vCPU a shorter slice of time.     | The host swaps pages to disk, merges identical pages, inflates a balloon or kills a process. |
| **Typical ratio** | Several virtual cores to one physical core is common. | The ratio stays close to one to one, or relies on swap and reclaim.                          |

## Ballooning

Ballooning is a way for a [hypervisor](https://www.daytona.com/compute-glossary/virtualization/hypervisor.md) to take memory back from a running [virtual machine](https://www.daytona.com/compute-glossary/virtualization/virtual-machine.md) with the help of its guest. A balloon driver inside the guest does the work. The guest has to cooperate, so the driver must be installed and running. A guest that is short of memory itself has little to give, so ballooning works best on guests with room to spare.

When the hypervisor needs memory, it tells the driver to inflate. The driver allocates pages inside the guest and reports them, and the hypervisor reuses the physical memory behind them. Inside the guest, those pages look allocated, and no other program there can use them. From the outside, the guest has simply shrunk.

The guest kernel chooses what to give up, which works better than the host guessing from outside. Deflating the balloon hands the memory back to the guest once the host has room again. A newer variant, free page reporting, has the guest tell the host about free pages without being asked. The host can then reclaim them early, before any shortage forces it to.

## Noisy neighbors

Noisy neighbors are tenants whose heavy use of a shared host slows the others down. They are the main cost of overcommit, and a higher ratio makes them more likely. The slowdown comes from contention for shared parts of the host, not from any bug in the victims. A tenant can be noisy without breaking any limit, simply by using all of its share at the wrong moment.

A low ratio wastes hardware, while a high one trades predictability for cost. In the worst case, memory runs out and the host kills processes that did nothing wrong. Shared caches and memory bandwidth are harder to divide than cores, so even a host without overcommit has some noise. Overcommit adds the wait for processor time on top.

Operators watch actual usage and set limits with features such as [control groups](https://www.daytona.com/compute-glossary/kernel/cgroup.md). The [scheduler](https://www.daytona.com/compute-glossary/infrastructure/scheduler.md) can then move work or refuse it before a host runs out. A limit caps how much one tenant may use, so no single tenant can take a whole host. Moving work costs time and network traffic, so schedulers move it only when a host stays overloaded.

## Related terms

- [Scheduler](https://www.daytona.com/compute-glossary/infrastructure/scheduler.md)
- [vCPU](https://www.daytona.com/compute-glossary/virtualization/vcpu.md)
- [Memory](https://www.daytona.com/compute-glossary/hardware/memory.md)
- [Control group](https://www.daytona.com/compute-glossary/kernel/cgroup.md)
