# US 2018/0024754 A1 · Adapting in-memory database in hybrid memory systems and operating system interface

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

- Number: US 2018/0024754 A1
- Document ID: US20180024754A1
- Status: Published application
- Kind: A1
- Application number: 15/213,754
- Filed: 2016-07-19
- Published: 2018-01-25
- Earliest claimed: 2016-07-19
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Ahmad Hassan
- Web page: https://patentgrep.com/patent/US20180024754A1

## CPC

- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/205: Hybrid memory, e.g. using both volatile and non-volatile memory
- G06F 2212/502: using adaptive policy
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Implementations of the present disclosure include methods, systems, and computer-readable storage mediums for determining a first cost and a second cost associated with a virtual memory page accessed during execution of an application, the first cost being associated with a first memory type, and the second cost being associated with a second memory type in a hybrid memory system, comparing the first cost and the second cost to provide a comparison result, determining a current location of the virtual memory page, the current location including one of the first memory type and the second memory type, and selectively migrating the virtual memory page from the current location based on the comparison result and the current location.

## Claims

### Claim 1

A computer-implemented method executed by one or more processors, the method comprising:
determining, by the one or more processors, a first cost and a second cost associated with a virtual memory page accessed during execution of an application, the first cost being associated with a first memory type, and the second cost being associated with a second memory type in a hybrid memory system;
comparing, by the one or more processors, the first cost and the second cost to provide a comparison result;
determining, by the one or more processors, a current location of the virtual memory page, the current location comprising one of the first memory type and the second memory type; and
selectively migrating, by the one or more processors, the virtual memory page from the current location based on the comparison result and the current location.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the first cost and the second cost is determined based on a read energy and a write energy expended for the virtual memory page with the respect to the first memory type and the second memory type, respectively.

### Claim 3 (depends on 1)

The method of claim 1, wherein selectively migrating the virtual memory page comprises migrating the virtual memory page from the second memory type to the first memory type in response to determining that the second cost exceeds the first cost, and that the virtual memory page is stored in the second memory type.

### Claim 4 (depends on 1)

The method of claim 1, wherein selectively migrating the virtual memory page comprises migrating the virtual memory page from the first memory type to the second memory type in response to determining that the second cost does not exceed the first cost, and that the virtual memory page is stored in the first memory type.

### Claim 5 (depends on 1)

The method of claim 1, wherein migrating the virtual memory page comprises copying the virtual memory page from one of the first memory type and the second memory type to the other of the first memory type and the second memory type, and deleting the virtual memory page from the one of the first memory type and the second memory type.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining the first cost and the second cost is performed in response to the virtual memory page being accessed.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first memory type comprises dynamic random access memory (DRAM), and the second memory type comprises non-volatile memory (NVM).

### Claim 8

A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
determining a first cost and a second cost associated with a virtual memory page accessed during execution of an application, the first cost being associated with a first memory type, and the second cost being associated with a second memory type in a hybrid memory system;
comparing the first cost and the second cost to provide a comparison result;
determining a current location of the virtual memory page, the current location comprising one of the first memory type and the second memory type; and
selectively migrating the virtual memory page from the current location based on the comparison result and the current location.

### Claim 9 (depends on 8)

The computer-readable storage medium of claim 8, wherein each of the first cost and the second cost is determined based on a read energy and a write energy expended for the virtual memory page with the respect to the first memory type and the second memory type, respectively.

### Claim 10 (depends on 8)

The computer-readable storage medium of claim 8, wherein selectively migrating the virtual memory page comprises migrating the virtual memory page from the second memory type to the first memory type in response to determining that the second cost exceeds the first cost, and that the virtual memory page is stored in the second memory type.

### Claim 11 (depends on 8)

The computer-readable storage medium of claim 8, wherein selectively migrating the virtual memory page comprises migrating the virtual memory page from the first memory type to the second memory type in response to determining that the second cost does not exceed the first cost, and that the virtual memory page is stored in the first memory type.

### Claim 12 (depends on 8)

The computer-readable storage medium of claim 8, wherein migrating the virtual memory page comprises copying the virtual memory page from one of the first memory type and the second memory type to the other of the first memory type and the second memory type, and deleting the virtual memory page from the one of the first memory type and the second memory type.

### Claim 13 (depends on 8)

The computer-readable storage medium of claim 8, wherein determining the first cost and the second cost is performed in response to the virtual memory page being accessed.

### Claim 14 (depends on 8)

The computer-readable storage medium of claim 8, wherein the first memory type comprises dynamic random access memory (DRAM), and the second memory type comprises non-volatile memory (NVM).

### Claim 15

A system, comprising:
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations comprising:
determining a first cost and a second cost associated with a virtual memory page accessed during execution of an application, the first cost being associated with a first memory type, and the second cost being associated with a second memory type in a hybrid memory system;
comparing the first cost and the second cost to provide a comparison result;
determining a current location of the virtual memory page, the current location comprising one of the first memory type and the second memory type; and
selectively migrating the virtual memory page from the current location based on the comparison result and the current location.

### Claim 16 (depends on 15)

The system of claim 15, wherein each of the first cost and the second cost is determined based on a read energy and a write energy expended for the virtual memory page with the respect to the first memory type and the second memory type, respectively.

### Claim 17 (depends on 15)

The system of claim 15, wherein selectively migrating the virtual memory page comprises migrating the virtual memory page from the second memory type to the first memory type in response to determining that the second cost exceeds the first cost, and that the virtual memory page is stored in the second memory type.

### Claim 18 (depends on 15)

The system of claim 15, wherein selectively migrating the virtual memory page comprises migrating the virtual memory page from the first memory type to the second memory type in response to determining that the second cost does not exceed the first cost, and that the virtual memory page is stored in the first memory type.

### Claim 19 (depends on 15)

The system of claim 15, wherein migrating the virtual memory page comprises copying the virtual memory page from one of the first memory type and the second memory type to the other of the first memory type and the second memory type, and deleting the virtual memory page from the one of the first memory type and the second memory type.

### Claim 20 (depends on 15)

The system of claim 15, wherein determining the first cost and the second cost is performed in response to the virtual memory page being accessed.
