# US 2018/0321962 A1 · Os/hypervisor-based persistent memory

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

- Number: US 2018/0321962 A1
- Document ID: US20180321962A1
- Status: Published application
- Kind: A1
- Application number: 15/586,109
- Filed: 2017-05-03
- Published: 2018-11-08
- Earliest claimed: 2017-05-03
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Venkata Subhash Reddy Peddamallu; Kiran Tati; Rajesh Venkatasubramanian; Pratap Subrahmanyam
- Web page: https://patentgrep.com/patent/US20180321962A1

## CPC

- G06F 9/5016: {the resource being the memory}
- G06F 1/30: Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations (for resetting only G06F1/24)
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 11/07: Responding to the occurrence of a fault, e.g. fault tolerance
- G06F 11/1441: {Resetting or repowering}
- G06F 12/16: Protection against loss of memory contents {(contains no material, see G06F11/00)}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for implementing OS/hypervisor-based persistent memory are provided. In one embodiment, an OS or hypervisor running on a computer system can allocate a portion of the volatile memory of the computer system as a persistent memory allocation. The OS/hypervisor can further receive a signal from the computer system's BIOS indicating an AC power loss or cycle event and, in response to the signal, can save data in the persistent memory allocation to a nonvolatile backing store. Then, upon restoration of AC power to the computer system, the OS/hypervisor can restore the saved data from the nonvolatile backing store to the persistent memory allocation.

## Claims

### Claim 1

A method for implementing operating system (OS) or hypervisor-based persistent memory, the method comprising:
allocating, by an OS or a hypervisor running on a computer system, a portion of a volatile memory of the computer system as a persistent memory allocation;
receiving, by the OS or the hypervisor, a signal from a BIOS (Basic Input/Output System) of the computer system indicating an alternating current (AC) power loss or cycle event;
in response to the signal, saving, by the OS or the hypervisor, data in the persistent memory allocation to a nonvolatile backing store; and
upon restoration of AC power to the computer system, restoring, by the OS or the hypervisor, the saved data from the nonvolatile backing store to the persistent memory allocation.

### Claim 2 (depends on 1)

The method of claim 1 further comprising, prior to receiving the signal:
tracking one or more portions of the persistent memory allocation that are modified or likely to be modified during runtime of the computer system; and
periodically flushing the one or more portions to the nonvolatile backing store, wherein the data saved in response to the signal corresponds to data that has been modified but not yet flushed.

### Claim 3 (depends on 2)

The method of claim 2 wherein the OS or hypervisor ensures that an amount of data in the persistent memory allocation that has not been flushed to the nonvolatile backing store does not exceed a threshold.

### Claim 4 (depends on 3)

The method of claim 3 wherein the threshold is dynamically increased or decreased during the runtime of the computer system in response to a change in write bandwidth of the nonvolatile backing store.

### Claim 5 (depends on 3)

The method of claim 3 wherein the threshold is dynamically increased or decreased during the runtime of the computer system in response to a change in charge capacity or charge level of a battery of the computer system.

### Claim 6 (depends on 1)

The method of claim 1 wherein the restoring comprises:
intercepting a memory access request directed to a particular portion of the saved data; and
in response to the intercepting, restoring the particular portion from the nonvolatile backing store to the persistent memory allocation.

### Claim 7 (depends on 1)

The method of claim 1 further comprising:
dynamically modifying the persistent memory allocation's size during runtime of the computer system.

### Claim 8

A non-transitory computer readable storage medium having stored thereon program code executable by an operating system (OS) or hypervisor running on a computer system, the program code embodying a method for implementing OS or hypervisor-based persistent memory, the method comprising:
allocating a portion of a volatile memory of the computer system as a persistent memory allocation;
receiving a signal from a BIOS (Basic Input/Output System) of the computer system indicating an alternating current (AC) power loss or cycle event;
in response to the signal, saving data in the persistent memory allocation to a nonvolatile backing store; and
upon restoration of AC power to the computer system, restoring the saved data from the nonvolatile backing store to the persistent memory allocation.

### Claim 9 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the method further comprises, prior to receiving the signal:
tracking one or more portions of the persistent memory allocation that are modified or likely to be modified during runtime of the computer system; and
periodically flushing the one or more portions to the nonvolatile backing store, wherein the data saved in response to the signal corresponds to data that has been modified but not yet flushed.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium of claim 9 wherein the OS or hypervisor ensures that an amount of data in the persistent memory allocation that has not been flushed to the nonvolatile backing store does not exceed a threshold.

### Claim 11 (depends on 10)

The non-transitory computer readable storage medium of claim 10 wherein the threshold is dynamically increased or decreased during the runtime of the computer system in response to a change in write bandwidth of the nonvolatile backing store.

### Claim 12 (depends on 10)

The non-transitory computer readable storage medium of claim 10 wherein the threshold is dynamically increased or decreased during the runtime of the computer system in response to a change in charge capacity or charge level of a battery of the computer system.

### Claim 13 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the restoring comprises:
intercepting a memory access request directed to a particular portion of the saved data;
and in response to the intercepting, restoring the particular portion from the nonvolatile backing store to the persistent memory allocation.

### Claim 14 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the method further comprises:
dynamically modifying the persistent memory allocation's size during runtime of the computer system.

### Claim 15

A computer system comprising:
a battery;
a BIOS (Basic Input/Output System);
an operating system (OS) or hypervisor;
a volatile memory; and
a non-transitory computer readable medium having stored thereon program code for implementing OS or hypervisor based persistent memory, the program code causing the OS or hypervisor to:
allocate a portion of the volatile memory as a persistent memory allocation;
receive a signal from the BIOS indicating an alternating current (AC) power loss or cycle event;
in response to the signal, save data in the persistent memory allocation to a nonvolatile backing store; and
upon restoration of AC power to the computer system, restore the saved data from the nonvolatile backing store to the persistent memory allocation.

### Claim 16 (depends on 15)

The computer system of claim 15 wherein the program code further causes the OS or hypervisor to, prior to receiving the signal:
track one or more portions of the persistent memory allocation that are modified or likely to be modified during runtime of the computer system; and
periodically flush the one or more portions to the nonvolatile backing store,
wherein the data saved in response to the signal corresponds to data that has been modified but not yet flushed.

### Claim 17 (depends on 16)

The computer system of claim 16 wherein the OS or hypervisor ensures that an amount of data in the persistent memory allocation that has not been flushed to the nonvolatile backing store does not exceed a threshold.

### Claim 18 (depends on 17)

The computer system of claim 17 wherein the threshold is dynamically increased or decreased during the runtime of the computer system in response to a change in write bandwidth of the nonvolatile backing store.

### Claim 19 (depends on 17)

The computer system of claim 17 wherein the threshold is dynamically increased or decreased during the runtime of the computer system in response to a change in charge capacity or charge level of a battery of the computer system.

### Claim 20 (depends on 15)

The computer system of claim 15 wherein the program code that causes the OS or hypervisor to restore the saved data comprises program code that causes the OS or hypervisor to:
intercept a memory access request directed to a particular portion of the saved data; and
in response to intercepting the memory access request, restore the particular portion from the nonvolatile backing store to the persistent memory allocation.

### Claim 21 (depends on 15)

The computer system of claim 15 wherein the program code further causes the OS or hypervisor to:
dynamically modify the persistent memory allocation's size during runtime of the computer system.
