Memory ballooning plays a key role in modern virtualized data storage architectures. With both physical and virtual assets demanding memory resources, there is a need to claim, release and reclaim memory in a variety of ways. Memory ballooning is a common technique used by virtualization technology, one that makes use of virtual machine memory. In […]
Memory ballooning plays a key role in modern virtualized data storage architectures. With both physical and virtual assets demanding memory resources, there is a need to claim, release and reclaim memory in a variety of ways.
Memory ballooning is a common technique used by virtualization technology, one that makes use of virtual machine memory. In this Enterprise Storage Forum article we define memory ballooning and explain the concept of ballooning, including the technique’s relationship to virtualization hypervisors.
A basic concept of cloud computing and virtualization that IT professionals have become accustomed to in recent years is the idea of elasticity or auto-scaling. That is, services and resources that scale up or down as needed to complete a given task or to meet a certain availability requirement.
Memory ballooning isn’t quite the same as auto-scaling, but it can be considered to be conceptually similar. Memory ballooning is all about enabling virtual machine memory to scale up if there is a requirement to do so. With memory ballooning, a system can provide more memory to a specific virtual machine as a burst-able capacity when needed.
The concept and approach of memory ballooning is specific to virtual machine memory and how VMware memory usage and VMware memory performance operates. Other hypervisors, including Microsoft’s Hyper-V, as well as the open source KVM project, have similar processes in place to provide a virtual ballooning capability for hypervisor memory.
Memory ballooning works within a virtualization hypervisor. A brief hypervisor definition: a hypervisor is the technology that enables virtual machines to run, providing a virtual abstraction layer for software.
There are multiple hypervisor technologies that are widely used today, including VMware ESXi, Microsoft Hyper-V as well as the open source Xen and KVM technologies. Each hypervisor can be used to enable guest virtual machines, which run operating systems and applications in an abstracted, virtual approach.
The hypervisor makes use of drivers across running guest virtual machines to handle different requirements, including resource constraints such as virtual CPUs , disk space and memory. The balloon drivers runs across virtual machines and enable a hypervisor to reallocate memory from one virtual machine to another.
Understanding how a hypervisor works is inherently related to understanding the process of memory ballooning. A hypervisor abstracts finite system resources and then allocates them to running virtual machine processes.
Host Physical Memory. The underling server or cloud platform has a certain amount of installed system memory that represents the absolute total amount of available memory.
Guest Physical Memory. The hypervisor is allocated a certain amount of the host’s physical memory in order to provide resources to running virtual machines. The guest physical memory is maximum amount of available memory to the hypervisor.
Guest Virtual Memory. The hypervisor allocates a given amount of its total memory resources as virtual memory to the running guest virtual machines.
In the memory ballooning model, one virtual machine that, for example, had 8 GB of guest virtual memory allocated to it that it was not using, could have a portion of that RAM reallocated to another running virtual machine that required the additional memory.
The balloon driver tracks the memory allocations from one virtual machine to another. The main objective of memory ballooning is to enable a virtual machine to get the memory it needs to meet a certain process or application demand spike. This happens even if it doesn’t normally have enough memory allocated to it.
Sean Michael Kerner is an Internet consultant, strategist, and contributor to several leading IT business web sites.
Enterprise Storage Forum offers practical information on data storage and protection from several different perspectives: hardware, software, on-premises services and cloud services. It also includes storage security and deep looks into various storage technologies, including object storage and modern parallel file systems. ESF is an ideal website for enterprise storage admins, CTOs and storage architects to reference in order to stay informed about the latest products, services and trends in the storage industry.
Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.