Improved memory management for busy virtual machine guests
AssigneeRed Hat, Inc.
InventorsMichael Tsirkin, Andrea Arcangeli
Life of this patent
Estimating the term…
Abstract
Systems and methods for enhancing memory management for virtual machines. An example method may comprise: accessing, by a hypervisor running on a host computer system, a data structure exposed by a virtual machine managed by the hypervisor, wherein the data structure includes an estimated next access time for one or more memory pages of a plurality of memory pages associated with the virtual machine; estimating a read latency time associated with the virtual machine; identifying, using the data structure, a memory page associated with an estimated next access time that satisfies a predefined condition with respect to the read latency time; and swapping out the memory page.
Claims20
A method comprising:
- accessing, by a hypervisor running on a host computer system, a data structure exposed by a virtual machine managed by the hypervisor, wherein the data structure includes an estimated next access time for one or more memory pages of a plurality of memory pages associated with the virtual machine;
- estimating a read latency time associated with the virtual machine;
- identifying, using the data structure, a memory page associated with an estimated next access time that satisfies a predefined condition with respect to the read latency time;
- and
- swapping out the memory page.
A system comprising:
- a memory;
- a processing device executing a hypervisor and operatively coupled to the memory, the processing device configured to:
- access, by a hypervisor running on a host computer system, a data structure exposed by a virtual machine managed by the hypervisor, wherein the data structure includes an estimated next access time for one or more memory pages of a plurality of memory pages associated with the virtual machine;
- estimate a read latency time associated with the virtual machine;
- and
- identify, using the data structure, a memory page associated with an estimated next access time that satisfies a predefined condition with respect to the read latency time.
A non-transitory machine-readable storage medium storing instructions which, when executed, cause a processing device executing a hypervisor to perform operations comprising:
- accessing, by a hypervisor running on a host computer system, a data structure exposed by a virtual machine managed by the hypervisor, wherein the data structure includes an estimated next access time for one or more memory pages of a plurality of memory pages associated with the virtual machine;
- estimating a read latency time associated with the virtual machine;
- and
- identifying, using the data structure, a memory page associated with an estimated next access time that satisfies a predefined condition with respect to the read latency time.
Dependencies are inferred from the claim text.