# US 2022/0283873 A1 · Vm memory reclamation by buffering hypervisor-swapped pages

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283873 A1
- Document ID: US20220283873A1
- Status: Published application
- Kind: A1
- Application number: 17/191,980
- Filed: 2021-03-04
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Nutanix, Inc.
- Applicants: Nutanix, Inc.
- Inventors: Carl Alan Waldspurger; Florian Anselm Johannes Schmidt; Jonathan James Davies
- Web page: https://patentgrep.com/patent/US20220283873A1

## CPC

- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In some aspects, a non-transitory computer readable storage medium includes instructions stored thereon that, when executed by a processor, cause the processor to detect that system software is proceeding to swap memory content of a virtual machine (VM) from memory to storage, wherein the memory is allocated to the VM; buffer the memory content; and perform alternative memory reclamation of the memory.

## Claims

### Claim 1

A non-transitory computer readable storage medium comprising instructions stored thereon that, when executed by a processor, cause the processor to:
detect that system software is proceeding to swap memory content of a virtual machine (VM) from memory to storage, wherein the memory is allocated to the VM;
buffer the memory content; and
perform alternative memory reclamation of the memory.

### Claim 2 (depends on 1)

The medium of claim 1, further comprising instructions stored thereon that, when executed by a processor, cause the processor to request, to the VM, to reclaim a predetermined amount of the memory.

### Claim 3 (depends on 1)

The medium of claim 1, wherein the memory content is buffered by a hypervisor.

### Claim 4 (depends on 1)

The medium of claim 1, wherein the memory content is buffered by a component in a swap-out path.

### Claim 5 (depends on 1)

The medium of claim 1, further comprising instructions stored thereon that, when executed by a processor, cause the processor to:
buffer the memory content for no greater than a predetermined time interval for performing the alternative memory reclamation; and
within the predetermined time interval, perform the alternative memory reclamation.

### Claim 6 (depends on 1)

The medium of claim 1, further comprising instructions stored thereon that, when executed by a processor, cause the processor to determine an upper-threshold on an amount of buffer memory that can be used for buffering the memory content.

### Claim 7 (depends on 1)

The medium of claim 1, wherein buffering the memory content is performed by a first service and performing the alternative memory reclamation is performed by a second service.

### Claim 8 (depends on 1)

The medium of claim 1, further comprising instructions stored thereon that, when executed by a processor, cause the processor to use a Linux frontswap interface to detect that the system software is proceeding to swap the memory content.

### Claim 9

An apparatus comprising a processor and a memory, wherein the memory includes programmed instructions that, when executed by the processor, cause the apparatus to:
detect that system software is proceeding to swap memory content of a virtual machine (VM) from memory to storage, wherein the memory is allocated to the VM;
buffer the memory content; and
perform alternative memory reclamation of the memory.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the memory further includes programmed instructions that, when executed by the processor, cause the apparatus to:
request, to the VM, to reclaim a predetermined amount of the memory.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the memory content is buffered by a hypervisor.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein the memory content is buffered by a component in a swap-out path.

### Claim 13 (depends on 9)

The apparatus of claim 9, wherein the memory further includes programmed instructions that, when executed by the processor, cause the apparatus to:
buffer the memory content for no greater than a predetermined time interval for performing the alternative memory reclamation; and
within the predetermined time interval, perform the alternative memory reclamation.

### Claim 14 (depends on 9)

The apparatus of claim 9, wherein the memory further includes programmed instructions that, when executed by the processor, cause the apparatus to determine an upper-threshold on an amount of buffer memory that can be used for buffering the memory content.

### Claim 15

A computer-implemented method comprising:
detecting that system software is proceeding to swap memory content of a virtual machine (VM) from memory to storage, wherein the memory is allocated to the VM;
buffering the memory content; and
performing alternative memory reclamation of the memory.

### Claim 16 (depends on 15)

The method of claim 15, further comprising requesting, to the VM, to reclaim a predetermined amount of the memory.

### Claim 17 (depends on 15)

The method of claim 15, wherein the memory content is buffered by a hypervisor.

### Claim 18 (depends on 15)

The method of claim 15, wherein the memory content is buffered by a component in a swap-out path.

### Claim 19 (depends on 15)

The method of claim 15, further comprising:
buffering the memory content for no greater than a predetermined time interval for performing the alternative memory reclamation; and
within the predetermined time interval, performing the alternative memory reclamation.

### Claim 20 (depends on 15)

The method of claim 15, further comprising determining an upper-threshold on an amount of buffer memory that can be used for buffering the memory content.
