Memory ballooning

Short description: Computing technique

In computing, memory ballooning is a technique that is used to eliminate the need to overcommit host memory used by virtual machines (VMs) by letting each VM effectively "give back" unused pages of [virtual] memory.

To implement memory ballooning, the virtual machine's kernel implements a "balloon driver" that allocates unused memory within the VM's address space into a pool of memory (the "balloon"), which makes that memory unavailable to other processes on that VM. The balloon driver doesn't use the pool of memory; instead it tells the host operating system's hypervisor which memory addresses are in that pool (unused). The host operating system then unmaps physical memory from those memory pages (with no need to copy them to secondary storage). The released pages of physical memory return to the host machine's pool of available RAM, and the host machine can use them to keep other virtual machines in physical memory and/or to cache secondary storage.

Depending on the amount of memory required by applications running on the VM, the balloon driver inside the VM can dynamically decrease or increase the number of pages in its "balloon", causing the host computer to remap or unmap physical memory to the VM, as-needed.[1][2]

## References

1. ↑ Savill, John (2014-04-11) (in en). Mastering Hyper-V 2012 R2 with System Center and Windows Azure. John Wiley & Sons. ISBN 9781118828335. https://books.google.com/books?id=crZaAwAAQBAJ&dq=ballooning+driver&pg=PT133.
2. ↑ "Balloon Driver". https://docs.redhat.com/en/documentation/red_hat_virtualization/4.4/html/technical_reference/balloon_driver.

## See also

* Memory overcommitment
* Thin provisioning

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Memory ballooning. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Memory_ballooning&oldid=4348924"