# US 11,307,983 B2 · Maintaining data consistency in a memory subsystem that uses hybrid wear leveling operations

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

- Number: US 11,307,983 B2
- Document ID: US11307983B2
- Status: Granted
- Kind: B2
- Application number: 17/247,373
- Filed: 2020-12-09
- Published: 2021-04-01
- Granted: 2022-04-19
- Earliest claimed: 2018-09-06
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Ning Chen; Jiangli Zhu; Ying Yu Tai
- Web page: https://patentgrep.com/patent/US11307983B2

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/064: {Management of blocks}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 2212/1036: Life time enhancement
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7211: Wear leveling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processing device in a memory sub-system maintains a mapping data structure to track data movements from a plurality of data management units associated with a media management operation on a memory device. The processing device further uses a first indicator and a second indicator of a plurality of indicators to indicate which data of data management units of a source group of data management units have been copied to a destination group of data management units during the media management operation. Data located in data management units preceding the first indicator have been copied to data management units of the destination group of data management units. Data located in data management units associated with the first indicator and the second indicator or between the first indicator and the second indicator are either copied to data management units of the destination group of data management units or remain located in data management units of the source group of data management units. Data located in data management units subsequent to the second indicator remain located in data management units of the source group of data management units and have not been copied to the destination group of data management units.

## Claims

### Claim 1

A method comprising:
maintaining a mapping data structure to track data movements from a plurality of data management units associated with a media management operation on a memory device; and
using a first indicator and a second indicator of a plurality of indicators to indicate which data of data management units of a source group of data management units have been copied to a destination group of data management units during the media management operation, wherein:
data located in data management units preceding the first indicator have been copied to data management units of the destination group of data management units;
data located in data management units associated with the first indicator and the second indicator or between the first indicator and the second indicator are either copied to data management units of the destination group of data management units or remain located in data management units of the source group of data management units; and
data located in data management units subsequent to the second indicator remain located in data management units of the source group of data management units and have not been copied to the destination group of data management units.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining whether the data located in the data management units between the first indicator and the second indicator have completed copying to the destination group of data management units based on respective flags associated with the data.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining that the source group of data management units satisfies a threshold wear condition pertaining to a number of write operations performed on data management units of the source group of data management units; and
responsive to determining that the source group of data management units satisfies the threshold wear condition, performing the media management operation.

### Claim 4 (depends on 3)

The method of claim 3, wherein performing the media management operation comprises copying data from a first data management unit of the source group of data management units to a second data management unit of the destination group of data management units.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining a logical address of the first data management unit; and
moving, by a processing device, one or more indicators in the mapping data structure from the one or more entries associated with the first data management unit to another one or more entries in the mapping data structure that are subsequent to the one or more entries associated with the first data management unit.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
determining a state of the media management operation in response to a write operation to the logical address of the first data management unit from a host system; and
modifying the state of the media management operation to enable the write operation from the host system to process.

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
responsive to copying the data from the first data management unit of the source group of data management units to the second data management unit of the destination group of data management units, updating, in the mapping data structure, a logical index associated with the data of the first data management unit to reference a physical location of the second data management unit of the destination group of data management units.

### Claim 8

A system comprising:
a memory device; and
a processing device, operatively coupled with the memory device, to perform operations comprising:
maintaining a mapping data structure to track data movements from a plurality of data management units associated with a media management operation on the memory device; and
using a first indicator and a second indicator of a plurality of indicators to indicate which data of data management units of a source group of data management units have been copied to a destination group of data management units during the media management operation, wherein:
data located in data management units preceding the first indicator have been copied to data management units of the destination group of data management units;
data located in data management units associated with the first indicator and the second indicator or between the first indicator and the second indicator are either copied to data management units of the destination group of data management units or remain located in data management units of the source group of data management units; and
data located in data management units subsequent to the second indicator remain located in data management units of the source group of data management units and have not been copied to the destination group of data management units.

### Claim 9 (depends on 8)

The system of claim 8, wherein the processing device to perform further operations comprising:
determining whether the data located in the data management units between the first indicator and the second indicator have completed copying to the destination group of data management units based on respective flags associated with the data.

### Claim 10 (depends on 8)

The system of claim 8, wherein the processing device to perform further operations comprising:
determining that the source group of data management units satisfies a threshold wear condition pertaining to a number of write operations performed on data management units of the source group of data management units; and
responsive to determining that the source group of data management units satisfies the threshold wear condition, performing the media management operation.

### Claim 11 (depends on 10)

The system of claim 10, wherein performing the media management operation comprises copying data from a first data management unit of the source group of data management units to a second data management unit of the destination group of data management units.

### Claim 12 (depends on 11)

The system of claim 11, wherein the processing device to perform further operations comprising:
determining a logical address of the first data management unit; and
moving, by a processing device, one or more indicators in the mapping data structure from the one or more entries associated with the first data management unit to another one or more entries in the mapping data structure that are subsequent to the one or more entries associated with the first data management unit.

### Claim 13 (depends on 12)

The system of claim 12, wherein the processing device to perform further operations comprising:
determining a state of the media management operation in response to a write operation to the logical address of the first data management unit from a host system; and
modifying the state of the media management operation to enable the write operation from the host system to process.

### Claim 14 (depends on 11)

The system of claim 11, wherein the processing device to perform further operations comprising:
responsive to copying the data from the first data management unit of the source group of data management units to the second data management unit of the destination group of data management units, updating, in the mapping data structure, a logical index associated with the data of the first data management unit to reference a physical location of the second data management unit of the destination group of data management units.

### Claim 15

A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising:
maintaining a mapping data structure to track data movements from a plurality of data management units associated with a media management operation on a memory device; and
using a first indicator and a second indicator of a plurality of indicators to indicate which data of data management units of a source group of data management units have been copied to a destination group of data management units during the media management operation, wherein:
data located in data management units preceding the first indicator have been copied to data management units of the destination group of data management units;
data located in data management units associated with the first indicator and the second indicator or between the first indicator and the second indicator are either copied to data management units of the destination group of data management units or remain located in data management units of the source group of data management units; and
data located in data management units subsequent to the second indicator remain located in data management units of the source group of data management units and have not been copied to the destination group of data management units.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, the operations further comprising:
determining whether the data located in the data management units between the first indicator and the second indicator have completed copying to the destination group of data management units based on respective flags associated with the data.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, the operations further comprising:
determining that the source group of data management units satisfies a threshold wear condition pertaining to a number of write operations performed on data management units of the source group of data management units; and
responsive to determining that the source group of data management units satisfies the threshold wear condition, performing the media management operation.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein performing the media management operation comprises copying data from a first data management unit of the source group of data management units to a second data management unit of the destination group of data management units.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, the operations further comprising:
determining a logical address of the first data management unit; and
moving, by a processing device, one or more indicators in the mapping data structure from the one or more entries associated with the first data management unit to another one or more entries in the mapping data structure that are subsequent to the one or more entries associated with the first data management unit.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, the operations further comprising:
determining a state of the media management operation in response to a write operation to the logical address of the first data management unit from a host system; and
modifying the state of the media management operation to enable the write operation from the host system to process.
