# US 2022/0283939 A1 · Slc cache allocation

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

- Number: US 2022/0283939 A1
- Document ID: US20220283939A1
- Status: Published application
- Kind: A1
- Application number: 17/750,933
- Filed: 2022-05-23
- Published: 2022-09-08
- Earliest claimed: 2019-08-26
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Xinghui Duan; Guan Zhong Wang; Xu Zhang; Eric Kwok Fung Yuen
- Web page: https://patentgrep.com/patent/US20220283939A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0646: {Configuration or reconfiguration}
- G06F 12/0893: Caches characterised by their organisation or structure
- G11C 11/5628: {Programming or writing circuits; Data input circuits}
- G11C 11/5671: {using charge trapping in an insulator}
- G11C 16/0483: {comprising cells having several storage transistors connected in series}
- G11C 16/10: Programming or data input circuits
- G11C 16/349: {Arrangements for evaluating degradation, retention or wearout, e.g. by counting erase cycles}
- G06F 2212/601: Reconfiguration of cache memory
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G11C 16/26: Sensing or reading circuits; Data output circuits
- G11C 2207/2245: Memory devices with an internal cache buffer
- G11C 2211/5641: Multilevel memory having cells with different number of storage levels
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

Disclosed in some examples are memory devices which feature intelligent adjustments to SLC cache configurations that balances memory cell lifetime with performance. The size of the SLC cache can be adjusted during usage of the memory device based upon a write amplification (WA) metric of the memory device. In some examples, the size of the SLC cache can be adjusted during usage of the memory device based upon a write amplification (WA) metric of the memory device and a memory device logical saturation metric (percentage of valid user data written in the device of the total user size).

## Claims

### Claim 1

A method, comprising:
during operation of a memory device, tracking a write amplification metric that measures a difference between an amount of data physically written to memory cells of the memory device and an amount of data requested to be written to the memory device by a host;
calculating an optimal single-level cell (SLC) cache size using a formula including a value of the write amplification metric and a logical saturation level of the memory device;
determining that a current size of an SLC cache is greater than the optimal SLC cache size; and
responsive to determining that the current size of the SLC cache is greater than the optimal SLC cache size, scheduling a reallocation of a portion of a pool of memory cells of the memory device between use as SLC cache and multi-level cell (MLC) storage, a size of the portion based upon the optimal SLC cache size, the reallocation scheduled for a time when there is free space in the SLC cache that can be reclaimed as MLC storage.

### Claim 2 (depends on 1)

The method of claim 1, wherein memory cells allocated as MLC storage store three or more bits of data per memory cell.

### Claim 3 (depends on 1)

The method of claim 1, comprising:
receiving a write request to write host data to the memory device; and
writing the host data to SLC cache based upon a determination that enough memory cells in the SLC cache are free to store the host data.

### Claim 4 (depends on 1)

The method of claim 1, wherein calculating the optimal SLC cache comprises utilizing a cache size table where ranges of logical saturation values are divided into zones and ranges of write amplification values are divided into zones and wherein the write amplification metric and the logical saturation level are used as an index into the cache size table to determine the optimal SLC cache size.

### Claim 5 (depends on 1)

The method of claim 1, further comprising determining that the write amplification metric exceeds a threshold, and wherein the scheduling the reallocation of the portion of the pool of memory cells of the memory device between use as the SLC cache and the MLC storage is also in response to the write amplification metric exceeding the threshold.

### Claim 6 (depends on 1)

The method of claim 1, wherein the write amplification metric is a write amplification currently observed and does not factor in a predicted write amplification given data in the SLC cache.

### Claim 7 (depends on 1)

The method of claim 1, wherein the write amplification metric is over a past predetermined period of time.

### Claim 8

A memory device comprising:
a processor; and
a memory, storing instructions, which when executed by the processor, cause the memory device to perform operations comprising:
during operation of a memory device, tracking a write amplification metric that measures a difference between an amount of data physically written to memory cells of the memory device and an amount of data requested to be written to the memory device by a host;
calculating an optimal single-level cell (SLC) cache size using a formula including a value of the write amplification metric and a logical saturation level of the memory device;
determining that a current size of an SLC cache is greater than the optimal SLC cache size; and
responsive to determining that the current size of the SLC cache is greater than the optimal SLC cache size, scheduling a reallocation of a portion of a pool of memory cells of the memory device between use as SLC cache and multi-level cell (MLC) storage, a size of the portion based upon the optimal SLC cache size, the reallocation scheduled for a time when there is free space in the SLC cache that can be reclaimed as MLC storage.

### Claim 9 (depends on 8)

The memory device of claim 8, wherein memory cells allocated as MLC storage store three or more bits of data per memory cell.

### Claim 10 (depends on 8)

The memory device of claim 8, wherein the operations further comprise:
receiving a write request to write host data to the memory device; and
writing the host data to SLC cache based upon a determination that enough memory cells in the SLC cache are free to store the host data.

### Claim 11 (depends on 8)

The memory device of claim 8, wherein the operations of calculating the optimal SLC cache comprises utilizing a cache size table where ranges of logical saturation values are divided into zones and ranges of write amplification values are divided into zones and wherein the write amplification metric and the logical saturation level are used as an index into the cache size table to determine the optimal SLC cache size.

### Claim 12 (depends on 8)

The memory device of claim 8, wherein the operations further comprise determining that the write amplification metric exceeds a threshold, and wherein the scheduling the reallocation of the portion of the pool of memory cells of the memory device between use as the SLC cache and the MLC storage is also in response to the write amplification metric exceeding the threshold.

### Claim 13 (depends on 8)

The memory device of claim 8, wherein the write amplification metric is a write amplification currently observed and does not factor in a predicted write amplification given data in the SLC cache.

### Claim 14 (depends on 8)

The memory device of claim 8, wherein the write amplification metric is over a past predetermined period of time.

### Claim 15

A non-transitory computer-readable medium storing instructions, which, when executed by a machine, cause the machine to perform operations comprising:
during operation of a memory device, tracking a write amplification metric that measures a difference between an amount of data physically written to memory cells of the memory device and an amount of data requested to be written to the memory device by a host;
calculating an optimal single-level cell (SLC) cache size using a formula including a value of the write amplification metric and a logical saturation level of the memory device;
determining that a current size of an SLC cache is greater than the optimal SLC cache size; and
responsive to determining that the current size of the SLC cache is greater than the optimal SLC cache size, scheduling a reallocation of a portion of a pool of memory cells of the memory device between use as SLC cache and multi-level cell (MLC) storage, a size of the portion based upon the optimal SLC cache size, the reallocation scheduled for a time when there is free space in the SLC cache that can be reclaimed as MLC storage.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein memory cells allocated as MLC storage store three or more bits of data per memory cell.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the operations further comprise:
receiving a write request to write host data to the memory device; and
writing the host data to SLC cache based upon a determination that enough memory cells in the SLC cache are free to store the host data.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the operations of calculating the optimal SLC cache comprises utilizing a cache size table where ranges of logical saturation values are divided into zones and ranges of write amplification values are divided into zones and wherein the write amplification metric and the logical saturation level are used as an index into the cache size table to determine the optimal SLC cache size.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the operations further comprise determining that the write amplification metric exceeds a threshold, and wherein the scheduling the reallocation of the portion of the pool of memory cells of the memory device between use as the SLC cache and the MLC storage is also in response to the write amplification metric exceeding the threshold.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the write amplification metric is a write amplification currently observed and does not factor in a predicted write amplification given data in the SLC cache.

### Claim 21 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the write amplification metric is over a past predetermined period of time.
