# US 2021/0081324 A1 · Page table hooks to memory types

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

- Number: US 2021/0081324 A1
- Document ID: US20210081324A1
- Status: Published application
- Kind: A1
- Application number: 16/573,527
- Filed: 2019-09-17
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Samuel E. Bradshaw; Justin M. Eno; Sean S. Eilert; Shivasankar Gunasekaran; Hongyu Wang; Shivam Swami
- Web page: https://patentgrep.com/patent/US20210081324A1

## CPC

- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 2212/657: Virtual address space management
- G06F 2212/68: Details of translation look-aside buffer [TLB]
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A computer system includes physical memory devices of different types that store randomly-accessible data in memory of the computer system. In one approach, access to memory in an address space is maintained by an operating system of the computer system. A virtual page is associated with a first memory type. A page table entry is generated to map a virtual address of the virtual page to a physical address in a first memory device of the first memory type. The page table entry is used by a memory management unit to store the virtual page at the physical address.

## Claims

### Claim 1

A method comprising:
associating, by at least one processing device, a virtual page with a first memory type;
generating a page table entry to map a virtual address of the virtual page to a physical address in a first memory device of the first memory type; and
storing, using the page table entry, the virtual page at the physical address in the first memory device.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
associating, by the at least one processing device, the virtual page with a second memory type;
updating the page table entry to map the virtual address of the virtual page to a physical address in a second memory device of the second memory type; and
transferring, using the updated page table entry, the virtual page from the first memory device to the second memory device.

### Claim 3 (depends on 1)

The method of claim 1, wherein an operating system runs on the at least one processing device, and generating the page table entry is performed by the operating system in response to associating the virtual page with the first memory type.

### Claim 4 (depends on 1)

The method of claim 1, wherein associating the virtual page with the first memory type is performed in response to a request received by an operating system from an application.

### Claim 5 (depends on 4)

The method of claim 4, wherein the first memory type is provided with the request from the application.

### Claim 6 (depends on 1)

The method of claim 1, further comprising managing, by an operating system of a computing device, physical locations for virtual pages stored in memory devices, wherein the memory devices include the first memory device and a second memory device of a second memory type, and wherein a power or performance characteristic of the first memory device is less than a corresponding power or performance characteristic of the second memory device.

### Claim 7 (depends on 6)

The method of claim 6, wherein the first memory type is dynamic random access memory, and the second memory type is non-volatile random access memory or flash memory.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
monitoring, by an operating system, an application running on the at least one processing device; and
updating, based on the monitoring, the page table entry to map the virtual address of the virtual page to a physical address in a second memory device of a second memory type.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
determining a context of operation associated with the at least one processing device;
selecting, based on the determined context, a second memory type; and
in response to selecting the second memory type, updating the page table entry to map the virtual address of the virtual page to a physical address in a second memory device of the second memory type.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
associating, by the at least one processing device, the virtual page with a second memory type;
in response to associating the virtual page with the second memory type, updating mapping data in a translation lookaside buffer; and
transferring, by a memory management unit based on accessing the updated mapping data in the translation lookaside buffer, the virtual page from the first memory device to a second memory device.

### Claim 11 (depends on 1)

The method of claim 1, wherein processes are executing on the at least one processing device, and the page table entry comprises a process identifier for a first process that uses the virtual page.

### Claim 12 (depends on 1)

The method of claim 1, wherein the page table entry comprises data regarding a pattern of usage by one or more applications running on the at least one processing device.

### Claim 13 (depends on 12)

The method of claim 12, wherein the data regarding the pattern of usage is at least one of a frequency of use or a time of last use.

### Claim 14

A system comprising:
a first memory device;
a page table storing page table entries that map virtual addresses to physical addresses in memory devices of different memory types, the memory devices including the first memory device;
at least one processing device; and
memory containing instructions configured to instruct the at least one processing device to:
determine an association of a virtual page to a first memory type;
determine that the first memory device corresponds to the first memory type; and
generate a page table entry to map a virtual address of the virtual page to a first physical address of the first memory device.

### Claim 15 (depends on 14)

The system of claim 14, wherein the at least one processing device uses main memory having data stored on the memory devices, and wherein determining the association of the virtual page to the first memory type is performed in response to a request by an application for an allocation of the main memory.

### Claim 16 (depends on 14)

The system of claim 14, wherein the instructions are further configured to instruct the at least one processing device to:
store metadata that associates address ranges in main memory to physical addresses in the memory devices;
wherein determining that the first memory device corresponds to the first memory type is based on the stored metadata.

### Claim 17 (depends on 14)

The system of claim 14, wherein the instructions are further configured to instruct the at least one processing device to store, using the page table entry, the virtual page at the first physical address in the first memory device.

### Claim 18 (depends on 14)

The system of claim 14, further comprising a memory management unit and a translation lookaside buffer, wherein the instructions are further configured to instruct the at least one processing device to:
update mapping data in the translation lookaside buffer based on a change in memory type associated with the virtual page from the first memory type to a second memory type; and
transfer, by the memory management unit based on the updated mapping data, the virtual page from the first memory device to a second memory device of the second memory type.

### Claim 19 (depends on 18)

The system of claim 18, wherein the change in memory type is performed in response to a request by an application executing on the at least one processing device, or in response to a determination by the at least one processing device that a priority of a process or application has changed.

### Claim 20

A non-transitory machine-readable storage medium storing instructions which, when executed on at least one processing device, cause the at least one processing device to at least:
associate a virtual page with a first memory type;
generate a page table entry to map a virtual address of the virtual page to a physical address in a first memory device of the first memory type; and
store, using the page table entry, the virtual page at the physical address in the first memory device.
