Management of host physical memory allocation to virtual machines with a balloon application
Abstract
Methods and systems for managing distribution of host physical memory (HPM) among virtual machines (VMs) executing on a host via a hypervisor are presented, where each VM has guest system software including an operating system. A method includes an operation for reserving, by a balloon application executing in a first VM, a guest virtual memory (GVM) location in the first VM. The GVM location is mapped to a guest physical memory (GPM) location, which is mapped to a host physical memory (HPM) location. The balloon application is responsive to the hypervisor for reserving memory. Further, the method includes operations for writing a value to the reserved GVM location and for remapping a plurality of GPM locations containing the value to a single HPM location. The remapping is performed by a content-based page sharing component of the hypervisor. Additionally, the method reclaims the HPM location when the HPM location is freed due to the remapping, and assigns the reclaimed HPM location to a different VM or to a pool of available HPM locations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 27.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for managing distribution of host physical memory (HPM) among virtual machines (VMs) executing on a host via a hypervisor, each VM having guest system software including an operating system, the method comprising: reserving, by a balloon application executing in a first VM, a guest virtual memory (GVM) location mapped to a guest physical memory (GPM) location, which is mapped to a host physical memory (HPM) location, the balloon application being responsive to commands sent from the hypervisor for reserving memory; reclaiming the HPM location associated with the reserved GVM location
- Claim 2Depends on #1
The method as recited in claim 1 , further including: writing a valu
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 27 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (3)
- Alexander Thomas Garthwaiteet al., "Efficient Readable Ballooning of Guest Memory by Backing Balloon Pages With a Shared Page", U.S. Appl. No. 12/835,303, filed Jul. 13, 2010.
- C. A. Waldspurger, "Memory Resource Management in VMware ESX Server," Proceedings of the 5th Symposium on Operating Systems Design and Implementation (OSDI 2002), ACM Operating Systems Review, pp. 181-194, Dec. 2002.
- Xiaoxin Chen et al., "Controlling Memory Conditions in a Virtual Machine", U.S. Appl. No. 11/525,373, filed Sep. 21, 2006.