# US 2019/0171387 A1 · Direct memory addresses for address swapping between inline memory modules

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

- Number: US 2019/0171387 A1
- Document ID: US20190171387A1
- Status: Published application
- Kind: A1
- Application number: 16/264,451
- Filed: 2019-01-31
- Published: 2019-06-06
- Earliest claimed: 2019-01-31
- Inventors: Thomas WILLHALM; Francesc GUIM BERNAT; Karthik KUMAR; Benjamin GRANIELLO; Mustafa HAJEER
- Web page: https://patentgrep.com/patent/US20190171387A1

## CPC

- G06F 3/0647: {Migration mechanisms}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0673: {Single storage device}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/683: Invalidation
- G06F 2212/7211: Wear leveling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques and mechanisms for wear leveling across dual inline memory modules (DIMMs) by migrating data using direct memory accesses. In an embodiment, a direct memory access (DMA) controller detects that a metric of accesses to a first page of a first DIMM is outside of some range. Based on the detecting, the DMA controller disables an access to the first page by a processor core. While the access is disabled, the DMA controller performs DMA operations to migrate data from the first page to a second page of a second DIMM. The first page and the second page correspond, respectively, to a first physical address and a second physical address. In another embodiment, an update to address mapping information replaces a first correspondence of a virtual address to the first physical address with a second correspondence of the virtual address to the second physical address.

## Claims

### Claim 1

A controller circuit comprising:
first circuitry to couple the controller circuit to a processor core, a first dual inline memory module (DIMM) and a second DIMM;
second circuitry to detect a condition wherein a metric of accesses to a first page of the first DIMM is outside of a range, wherein the accesses are based on information which associates virtual addresses each with a respective physical address, wherein the first page corresponds to a first physical address;
third circuitry, responsive to the second circuitry, to:
disable a functionality of the processor core which supports a class of transactions that access the first page;
perform a direct memory access to migrate data of the first page to a second page of a second DIMM, wherein the second page corresponds to a second physical address; and
update the information to replace a first correspondence of a virtual address to the first physical address with a second correspondence of the virtual address to the second physical address.

### Claim 2 (depends on 1)

The controller circuit of claim 1, further comprising:
fourth circuitry to select the second page from among multiple pages each of a respective DIMM other than the first DIMM, wherein, for each page of the multiple pages, a utilization of the page is determined to be less than a utilization of a respective one or more other pages.

### Claim 3 (depends on 2)

The controller circuit of claim 2, further comprising:
fifth circuitry to determine a ranked order of the multiple pages relative to each other, wherein the ranked order is based on access metrics each corresponding to a respective one of the multiple pages, wherein the second page is selected from among the multiple pages according to the ranked order.

### Claim 4 (depends on 1)

The controller circuit of claim 1, further comprising fourth circuitry to receive from the first DIMM a result of an evaluation which is based on a value of the metric and a threshold value, wherein the second circuitry detects the condition based on the result.

### Claim 5 (depends on 4)

The controller circuit of claim 4, wherein, for each of multiple random access memory (RAM) devices of the first DIMM, the fourth circuitry is further to receive from the RAM device a respective result of an evaluation, by the RAM device, of a corresponding metric of accesses to the RAM device.

### Claim 6 (depends on 1)

The controller circuit of claim 1, wherein the processor core comprises a translation lookaside buffer, and wherein the third circuitry to disable the functionality comprises the third circuitry to signal a cache controller of the processor to invalidate an entry of the translation lookaside buffer.

### Claim 7 (depends on 1)

The controller circuit of claim 1, wherein a page table comprises the information.

### Claim 8 (depends on 1)

The controller circuit of claim 1, wherein, of all memory lines of the first page, the metric of accesses is based on accesses to only a first memory line.

### Claim 9

A memory device comprising:
first circuitry to couple the memory device to a host while a first dual inline memory module (DIMM) comprises the memory device, and while the host is further coupled to a second DIMM, wherein the host is to comprise a processor and a controller circuit;
second circuitry to communicate to the controller circuit a signal indicating a condition wherein a metric of accesses to a first page of the first DIMM is outside of a range, wherein the accesses are based on information which associates virtual addresses each with a respective physical address, wherein the first page corresponds to a first physical address, wherein responsive to the signal, the controller circuit is to:
disable a functionality of the processor core which supports a class of transactions that access the first page; and
perform a direct memory access to migrate data of the first page to a second page of the second DIMM, the second page corresponding to a second physical address; and
update the information to replace a first correspondence of a virtual address to the first physical address with a second correspondence of the virtual address to the second physical address.

### Claim 10 (depends on 9)

The memory device of claim 9, further comprising:
third circuitry to calculate a value of the metric;
fourth circuitry to perform an evaluation based on the value of the metric and a corresponding threshold value, wherein the signal indicates a result of the evaluation.

### Claim 11 (depends on 10)

The memory device of claim 10, wherein the first DIMM is the memory device.

### Claim 12 (depends on 10)

The memory device of claim 10, wherein the first DIMM comprises multiple RAM devices, wherein the memory device is a first RAM device of the multiple RAM devices.

### Claim 13 (depends on 9)

The memory device of claim 9, wherein, of all memory lines of the first page, the metric of accesses is based on accesses to only a first memory line.

### Claim 14 (depends on 9)

The memory device of claim 9, further comprising:
third circuitry to determine access metrics each corresponding to a different respective page of multiple pages of the memory device;
fourth circuitry to determine, based on the access metrics, a ranked order the multiple pages relative to each other;
fifth circuitry to select a third page from among the multiple pages based on the ranked order; and
sixth circuitry to communicate another signal to identify the third page to the controller circuit, wherein data is migrated from the third page based on the other signal.

### Claim 15

A system comprising:
a memory sub-system comprising a first dual inline memory module (DIMM) and a second DIMM;
a processor comprising a core;
a controller circuit coupled to each of the processor, the first DIMM and the second DIMM, the controller circuit comprising:
first circuitry to detect a condition wherein a metric of accesses to a first page of the first DIMM is outside of a range, wherein the accesses are based on information which associates virtual addresses each with a respective physical address, wherein the first page corresponds to a first physical address;
second circuitry, responsive to the first circuitry, to:
perform a direct memory access to migrate data of the first page to a second page of the second DIMM; and
update the information to replace a first correspondence of a virtual address to the first physical address with a second correspondence of the virtual address to a second physical address which corresponds to the second page; and
a display device coupled to the processor, the display device to display an image based on the data.

### Claim 16 (depends on 15)

The system of claim 15, the second circuitry further to disable a functionality of the core based on the condition, wherein the functionality supports a class of transactions that access the first page, and wherein the second circuitry is to both perform the direct memory access and update the information while the functionality is disabled.

### Claim 17 (depends on 15)

The system of claim 15, the controller circuit further comprising:
third circuitry to select the second page from among multiple pages each of a respective DIMM other than the first DIMM, wherein, for each page of the multiple pages, a utilization of the page is determined to be less than a utilization of a respective one or more other pages.

### Claim 18 (depends on 17)

The system of claim 17, the controller circuit further comprising:
fourth circuitry to determine a ranked order of the multiple pages relative to each other, wherein the ranked order is based on access metrics each corresponding to a respective one of the multiple pages, wherein the second page is selected from among the multiple pages according to the ranked order.

### Claim 19 (depends on 15)

The system of claim 15, the controller circuit further comprising third circuitry to receive from the first DIMM a result of an evaluation which is based on a value of the metric and a threshold value, wherein the first circuitry detects the condition based on the result.

### Claim 20 (depends on 19)

The system of claim 19, wherein, for each of multiple random access memory (RAM) devices of the first DIMM, the third circuitry is further to receive from the RAM device a respective result of an evaluation, by the RAM device, of a corresponding metric of accesses to the RAM device.

### Claim 21 (depends on 15)

The system of claim 15, wherein the processor further comprises a cache controller, and wherein the processor core comprises a translation lookaside buffer, wherein the second circuitry to disable the functionality comprises the second circuitry to signal the cache controller to invalidate an entry of the translation lookaside buffer.

### Claim 22 (depends on 15)

The system of claim 15, wherein, of all memory lines of the first page, the metric of accesses is based on accesses to only a first memory line.
