# US 2025/0156092 A1 · Adaptive control for in-memory versioning

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

- Number: US 2025/0156092 A1
- Document ID: US20250156092A1
- Status: Published application
- Kind: A1
- Application number: 19/022,888
- Filed: 2025-01-15
- Published: 2025-05-15
- Earliest claimed: 2022-10-20
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: David Andrew Roberts; Haojie Ye
- Web page: https://patentgrep.com/patent/US20250156092A1

## CPC

- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0622: {in relation to access}
- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed in some examples are systems, devices, machine-readable mediums, and methods for customizing an in-memory versioning mode for each memory location according to a predicted access behavior to optimize memory device performance. Usage data in a previous time period may be utilized along with policy rules to determine whether to configure a particular memory address as a zero copy or direct copy mode. For example, memory addresses that are read frequently may be configured as direct copy mode to reduce the read latency penalty. This improves the functioning of the memory system by reducing read latency for memory addresses that are frequently read but written to less frequently, and reduces write latency for memory locations that are frequently written to, but not read as frequently.

## Claims

### Claim 1

A method comprising:
using a processor of a memory device:
selecting, for a checkpoint interval, an in-memory versioning mode for a memory location using past access information for memory accesses of the memory location, the past access information storing access information for a previous checkpoint, the selection of the in-memory versioning mode selecting either a direct copy mode or a zero copy mode, wherein the direct copy mode copies a working value from a first memory location of a pair of memory locations to a second memory location of the pair of memory locations as a result of a commit operation, the zero copy mode switches a value of a select field between the pair of memory locations as a result of a commit or rollback operation, wherein the value of the select field indicates a working location of the pair of memory locations; and
processing memory commands for the memory location according to the selected in-memory versioning mode during the checkpoint interval.

### Claim 2 (depends on 1)

The method of claim 1, wherein selecting the in-memory versioning mode comprises:
querying the memory location in an access profile data structure, the access profile data structure returning an indication of whether the memory location was written to in a previous checkpoint interval and selecting a zero-copy mode if the indication indicates that the memory location was written to in the previous checkpoint interval.

### Claim 3 (depends on 1)

The method of claim 1, wherein the past access information is stored in an access profile data structure comprising a first bloom filter tracking memory accesses for the previous checkpoint and a second bloom filter tracking memory accesses for a current checkpoint.

### Claim 4 (depends on 3)

The method of claim 3, wherein selecting the in-memory versioning mode comprises:
querying the memory location in the first bloom filter to determine whether the memory location was written to or read from in a previous checkpoint interval and selecting the zero copy mode if the memory location was written to but not read in the previous checkpoint.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
updating the second bloom filter based upon memory accesses during a current checkpoint interval.

### Claim 6 (depends on 1)

The method of claim 1, wherein the past access information comprises access counters tracking a number of read accesses and write accesses to the memory location.

### Claim 7 (depends on 6)

The method of claim 6, wherein selecting the in-memory versioning mode comprises:
selecting the zero copy mode if a ratio of read accesses to write accesses is less than a specified value.

### Claim 8

A computing device for managing memory versioning, the computing device comprising:
a hardware processor;
a memory, the memory storing instructions, which when executed by the hardware processor cause the computing device to perform operations comprising:
selecting, for a checkpoint interval, an in-memory versioning mode for a memory location using past access information for memory accesses of the memory location, the past access information storing access information for a previous checkpoint, the selection of the in-memory versioning mode selecting either a direct copy mode or a zero copy mode, wherein the direct copy mode copies a working value from a first memory location of a pair of memory locations to a second memory location of the pair of memory locations as a result of a commit operation, the zero copy mode switches a value of a select field between the pair of memory locations as a result of a commit or rollback operation, wherein the value of the select field indicates a working location of the pair of memory locations; and
processing memory commands for the memory location according to the selected in-memory versioning mode during the checkpoint interval.

### Claim 9 (depends on 8)

The computing device of claim 8, wherein the operation of selecting the in-memory versioning mode further comprises:
querying the memory location in an access profile data structure, the access profile data structure returning an indication of whether the memory location was written to in a previous checkpoint interval and selecting a zero-copy mode if the indication indicates that the memory location was written to in the previous checkpoint interval.

### Claim 10 (depends on 8)

The computing device of claim 8, wherein the past access information is stored in an access profile data structure comprising a first bloom filter tracking memory accesses for the previous checkpoint and a second bloom filter tracking memory accesses for a current checkpoint.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the operation of selecting the in-memory versioning mode further comprises:
querying the memory location in the first bloom filter to determine whether the memory location was written to or read from in a previous checkpoint interval and selecting the zero copy mode if the memory location was written to but not read in the previous checkpoint.

### Claim 12 (depends on 10)

The computing device of claim 10, wherein the operations further comprise:
updating the second bloom filter based upon memory accesses during a current checkpoint interval.

### Claim 13 (depends on 8)

The computing device of claim 8, wherein the past access information comprises access counters tracking a number of read accesses and write accesses to the memory location.

### Claim 14 (depends on 13)

The computing device of claim 13, wherein the operation of selecting the in-memory versioning mode further comprises:
selecting the zero copy mode if a ratio of read accesses to write accesses is less than a specified value.

### Claim 15

A non-transitory machine-readable medium, storing instructions for managing memory versioning, the instructions, which when executed, cause the machine to perform operations comprising:
selecting, for a checkpoint interval, an in-memory versioning mode for a memory location using past access information for memory accesses of the memory location, the past access information storing access information for a previous checkpoint, the selection of the in-memory versioning mode selecting either a direct copy mode or a zero copy mode, wherein the direct copy mode copies a working value from a first memory location of a pair of memory locations to a second memory location of the pair of memory locations as a result of a commit operation, the zero copy mode switches a value of a select field between the pair of memory locations as a result of a commit or rollback operation, wherein the value of the select field indicates a working location of the pair of memory locations; and
processing memory commands for the memory location according to the selected in-memory versioning mode during the checkpoint interval.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operation of selecting the in-memory versioning mode further comprises:
querying the memory location in an access profile data structure, the access profile data structure returning an indication of whether the memory location was written to in a previous checkpoint interval and selecting a zero-copy mode if the indication indicates that the memory location was written to in the previous checkpoint interval.

### Claim 17 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the past access information is stored in an access profile data structure comprising a first bloom filter tracking memory accesses for the previous checkpoint and a second bloom filter tracking memory accesses for a current checkpoint.

### Claim 18 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein the operation of selecting the in-memory versioning mode further comprises:
querying the memory location in the first bloom filter to determine whether the memory location was written to or read from in a previous checkpoint interval and selecting the zero copy mode if the memory location was written to but not read in the previous checkpoint.

### Claim 19 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein the operations further comprise:
updating the second bloom filter based upon memory accesses during a current checkpoint interval.

### Claim 20 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the past access information comprises access counters tracking a number of read accesses and write accesses to the memory location.
