MANAGEMENT OF HOST PHYSICAL MEMORY ALLOCATION TO VIRTUAL MACHINES WITH A BALLOON APPLICATION
First Claim
1. 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 in the first VM, the GVM location being mapped to a guest physical memory (GPM) location, which is mapped to a host physical memory (HPM) location, the balloon application being responsive to the hypervisor for reserving memory;
writing a value to the reserved GVM location;
remapping a plurality of GPM locations containing the value to a single HPM location using a content-based page sharing component of the hypervisor;
reclaiming the HPM location when the HPM location is freed due to the remapping; and
assigning the reclaimed HPM location to a pool of available HPM locations.
1 Assignment
0 Petitions
Accused Products
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.
147 Citations
19 Claims
-
1. 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 in the first VM, the GVM location being mapped to a guest physical memory (GPM) location, which is mapped to a host physical memory (HPM) location, the balloon application being responsive to the hypervisor for reserving memory; writing a value to the reserved GVM location; remapping a plurality of GPM locations containing the value to a single HPM location using a content-based page sharing component of the hypervisor; reclaiming the HPM location when the HPM location is freed due to the remapping; and assigning the reclaimed HPM location to a pool of available HPM locations. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. 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:
-
receiving, by a balloon application executing in a first VM, a memory allocation request from the hypervisor; reserving a guest virtual memory (GVM) location in response to the memory allocation request, the GVM location being mapped to a guest physical memory (GPM) location, which is mapped to a host physical memory (HPM) location; sending the GVM location to the hypervisor; remapping the GPM location mapped by the GVM location; reclaiming the HPM location after remapping the GPM location; and assigning the reclaimed HPM location to a second VM. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A system for managing distribution of physical memory among virtual machines (VMs) executing on a host via a hypervisor, each VM having guest system software including an operating system, the system comprising:
-
a balloon application executing in a first VM, the balloon application defined to reserve a guest virtual memory (GVM) location in the first VM, the GVM location being mapped to a guest physical memory (GPM) location, which is mapped to a host physical memory (HPM) location, the balloon application being responsive to the hypervisor for reserving memory; and a content-based page sharing component in the hypervisor that remaps a plurality of GPM locations to a single HPM location when the balloon application writes a value to the reserved GVM location and each page from the plurality of GPM locations contains the value; wherein the hypervisor reclaims the HPM location when the HPM location is freed due to being remapped in order to make the HPM location available to a pool of available HPM locations. - View Dependent Claims (16, 17, 18, 19)
-
Specification