# US 2022/0283741 A1 · Memory system, controller, and wear leveling method

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

- Number: US 2022/0283741 A1
- Document ID: US20220283741A1
- Status: Published application
- Kind: A1
- Application number: 17/459,956
- Filed: 2021-08-27
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: Akiyuki KANEKO
- Web page: https://patentgrep.com/patent/US20220283741A1

## CPC

- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- 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/0647: {Migration mechanisms}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/1024: Latency reduction
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F 2212/7211: Wear leveling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory system includes a nonvolatile memory and a controller. The nonvolatile memory has first regions in which data writes and data reads can be executed in parallel. Each of the first regions has second regions which are each a data write/read unit. The controller acquires first values indicating a data write load for each of the first regions, detects a first region having a first value greater than or equal to a first threshold, acquires second values indicating a data write load for each of the plurality of second regions in the detected first region, detects a second region having a second value greater than or equal to a second threshold but less than or equal to a third threshold that is higher than the second threshold, and then move data from the detected second region to a second region in another first region.

## Claims

### Claim 1

A memory system, comprising:
a nonvolatile memory that includes a plurality of first regions, data writes and data reads being executable in parallel for the plurality of first regions, each of the first regions including a plurality of second regions as data read/write units; and
a controller connected to the nonvolatile memory and configured to:
acquire first values indicating a data write load of each of the plurality of first regions,
detect a first region having a first value greater than or equal to a first threshold,
acquire second values indicating a data write load of each of the second regions within the detected first region,
detect a second region within the detected first region having a second value greater than or equal to a second threshold but less than or equal to a third threshold higher than the second threshold, and
move data from the detected second region to a second region in a first region other than the detected first region.

### Claim 2 (depends on 1)

The memory system according to claim 1, wherein the controller is further configured to:
acquire values corresponding to a data write load of each of the first regions over a certain time period as the first values, and
acquire values corresponding to a data write load of each of the second regions in the detected first region over the certain time period as the second values.

### Claim 3 (depends on 2)

The memory system according to claim 2, wherein, when data writes are concentrated in a first number of the second regions or less, the third threshold is set based on a ratio of a write load of the first number of second regions to a total write load in the plurality of second regions.

### Claim 4 (depends on 2)

The memory system according to claim 2, wherein, when data writes are distributed across a second number or less of the second regions, the second threshold is set based on a ratio of a write load of the second number of second regions to a total write load in the plurality of second regions.

### Claim 5 (depends on 2)

The memory system according to claim 2, wherein the controller includes:
a first counter that adds up a write count for each of the plurality of first regions over the certain time period, and
a second counter that adds up a write count for each of the plurality of second regions within a first region that has been indicated as a first region to be monitored among the plurality of first regions during the certain time period.

### Claim 6 (depends on 5)

The memory system according to claim 5, wherein the controller is further configured to:
acquire the first value for each of the plurality of first regions from a total write count for the plurality of first regions and the write count for each of the plurality of first regions, which are obtained by the first counter, and
acquire the second value for each of the plurality of second regions from a total write count for the plurality of second regions and the write count for each of the plurality of second regions, which are obtained by the second counter.

### Claim 7 (depends on 2)

The memory system according to claim 2, further comprising:
a plurality of queues provided on a one-to-one basis with the plurality of first regions, the queues for temporarily storing write data for the plurality of first regions, wherein
the controller is configured to acquire the first value for each of the plurality of first regions based on utilization rates of each of the plurality of queues.

### Claim 8 (depends on 7)

The memory system according to claim 7, wherein the controller the includes a counter configured to add up a write count for each of the plurality of second regions in the first region being monitored among the plurality of first regions in the certain time period.

### Claim 9 (depends on 8)

The memory system according to claim 8, wherein the controller is further configured to acquire the second value of each of the plurality of second regions from a total write count of the plurality of second regions and the write count of each of the plurality of second regions, which are obtained by the counter.

### Claim 10

A controller for controlling a nonvolatile memory that includes a plurality of first regions in which data writes and data reads are executable in parallel, each of the first regions including a plurality of second regions which are each a data write/read unit, the controller configured to:
acquire first values indicating a data write load of each of the plurality of first regions;
detect a first region having a first value greater than or equal to a first threshold;
acquire second values indicating a data write load of each of the second regions within the detected first region,
detect a second region within the detected first region having a second value greater than or equal to a second threshold but less than or equal to a third threshold that is higher than the second threshold; and
move data from the detected second region to a second region in a first region other than the detected first region.

### Claim 11 (depends on 10)

The controller according to claim 10, wherein the controller is further configured to:
acquire values corresponding to a data write load of each of the first regions over a certain time period as the first values; and
acquire values corresponding to a data write load of each of the second regions in the detected first region over the certain time period as the second values.

### Claim 12 (depends on 11)

The controller according to claim 11, wherein, when data writes are concentrated in a first number of the second regions or less, the third threshold is set based on a ratio of a write load in the first number of second regions to a total write load in the plurality of second regions.

### Claim 13 (depends on 11)

The controller according to claim 11, wherein, when data writes are distributed across a second number or less of the second regions, the second threshold is set based on a ratio of a write load in the second number of second regions to a total write load in the plurality of second region.

### Claim 14 (depends on 11)

The controller according to claim 11, the controller comprising:
a first counter that adds up a write count for each of the plurality of first regions over the certain time period; and
a second counter that adds up a write count for each of the plurality of second regions within the first region that has been indicated as a first region to be monitored among the plurality of the first regions during the certain time period.

### Claim 15 (depends on 14)

The controller according to claim 14, wherein the controller is further configured to:
acquire the first value for each of the plurality of first regions from a total write count for the plurality of first regions and the write count for each of the plurality of first regions, which are obtained by the first counter, and
acquire the second value for each of the plurality of second regions from a total write count for the plurality of second regions and the write count for each of the plurality of second regions, which are obtained by the second counter.

### Claim 16 (depends on 11)

The controller according to claim 11, wherein the controller is further configured to acquire the first value for the plurality of first regions based on a utilization rate of a plurality of queues provided on a one-to-one basis with the plurality of first regions, the queues for temporarily storing write data for the plurality of first regions.

### Claim 17 (depends on 16)

The controller according to claim 16, further comprising:
a counter configured to add up a write count for each of the plurality of second regions in the first region being monitored among the plurality of first regions in the certain time period.

### Claim 18 (depends on 17)

The controller according to claim 17, wherein the controller is further configured to acquire the second value for each of the plurality of second regions from a total write count for the plurality of second regions and the write count for each of the plurality of second regions, which are obtained by the counter.

### Claim 19

A wear leveling method for a nonvolatile memory that includes a plurality of first regions in which a data writes and data reads are executable in parallel, each of the plurality of first regions including a plurality of second regions which are each a data write/read unit, the method comprising:
acquiring first values indicating a data write load of each of the plurality of first regions;
detecting a first region having a first value greater than or equal to a first threshold;
acquiring second values indicating a data write load of each of the plurality of second regions within the detected first region;
detecting a second region within the detected first region having a second value greater than or equal to a second threshold but less than or equal to a third threshold that is higher than the second threshold; and
moving data from the detected second region to a second region in a first region other than the detected first region.

### Claim 20 (depends on 19)

The wear leveling method according to claim 19, wherein, when data writes are concentrated in a first number of the second regions or less, the third threshold is set based on a ratio of a write load in the first number of second regions to a total write load in the plurality of second regions.
