Data storage device and method for read scrub with reduced read amplification
Abstract
A data storage device tracks information about the ages and read counts of blocks of memory, which are indicative of data retention and read disturb issues, respectively. The data storage device uses a machine-learning model to predict which blocks in the memory are likely to contain errors based on the tracked information, and a read scrub operation is performed only on those blocks. Limiting the number of blocks that are read scrubbed reduces read amplification and reduces the time required for the read scrub process.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 0.
Claims (16 — 3 Independent, 13 Dependent)
- Claim 1Independent Claim
A data storage device comprising: a memory; and a processor coupled with the memory and configured to: identify a plurality of blocks in the memory that may require a read scrub operation by tracking age and read count of each block of the plurality of blocks, wherein age and read count of a block are directly proportional to a likelihood of data retention errors and read disturb errors, respectively, in the block, and wherein each block in the plurality of blocks is identified by: incrementing a read counter when the block is read; determining whether a scan flag is set; in response to determining that the scan flag is not set: determining if the read counter for the block is greater than a read threshold; and in response to determining that the read counter for the block is greater than the read threshold: set the scan flag; and reset the read counter for the block; and in response to determining that the read counter for the block is not greater than the read threshold, continue tracking reads on the block; and in response to determining that the scan flag is set: queue the block for scrubbing; and reset the scan flag; train a machine learning Y(X1,X2) model, wherein Y is a target variable that designates a number of bit-flips for a block, X1 is a dependent variable that designates a number of reads done on a block since a block was opened for programming, and X2 is a dependent variable that designates an age of a block; use the machine learning Y(X1,X2) model to estimate a number of bit-flips in each of the plurality blocks based on the tracked ages and read counts of each of the plurality of blocks, wherein the ages are tracked based on time stamps created when each of the plurality of blocks was opened; determine whether the machine learning Y(X1,X2) model needs to be refreshed; in response to determining that the machine learning Y(X1,X2) model does not need to be refreshed, identify a subset of the plurality of blocks that have an estimated number of bit-flips above a threshold; in response to determining that the machine learning Y(X1,X2) model needs to be refreshed, refresh the machine learning Y(X1,X2) model before identifying the subset of the plurality of blocks that have the estimated number of bit-flips above the threshold, wherein the machine learning Y(X1,X2) model is refreshed using offline error characterization data or using run-time data samples collected when a scan happens; and improve a scan-hit-rate by: instead of scanning all of the plurality of blocks, scanning only the subset of the plurality of blocks to determine which blocks of the subset of the plurality of blocks require the read scrub operation; and performing the read scrub operation only on the blocks of the subset of the plurality of blocks that are determined to require the read scrub operation; wherein the scan-hit-rate is improved by reducing a number of blocks that are scanned to find the blocks that require the read scrub operation.
- Claim 2Depends on #1
The data storage device of claim 1, wherein the processor is further configured to track a number of inherent bit-flips in each block, and wherein the tracked number of inherent bit-flips is excluded from the estimated number of bit-flips.
- Claim 3Depends on #1
The data storage device of claim 1, wherein the processor is further configured to identify blocks on which the read scrub operation has not been performed and perform the read scrub operation on the identified blocks.
- Claim 4Depends on #1
The data storage device of claim 1, wherein the processor is further configured to stop using the machine learning model to estimate the number of bit-flips in response to the estimated number of bit-flips reaching a second threshold.
- Claim 5Depends on #1
The data storage device of claim 1, wherein the processor is further configured to reset tracked age and read count of a block after performing the read scrub operation.
- Claim 6Depends on #1
The data storage device of claim 1, wherein the processor is further configured to determine the blocks of the subset of the plurality of blocks by comparing a data-write temperature with a data-read temperature.
- Claim 7Depends on #1
The data storage device of claim 1, further comprising a volatile memory, wherein the processor is further configured to store the tracked age and read counts in the volatile memory.
- Claim 8Depends on #1
The data storage device of claim 1, wherein the memory comprises a three-dimensional memory.
- Claim 9Depends on #1
The data storage device of claim 1, wherein the processor is further configured to determine the blocks of the subset of the plurality of blocks by comparing specific read-voltage level shifts.
- Claim 10Independent Claim
In a data storage device comprising a memory comprising a plurality of blocks, a method comprising: identifying a plurality of blocks in the memory that may require a read scrub operation by tracking age and read count of each block of the plurality of blocks, wherein age and read count of a block are directly proportional to a likelihood of data retention errors and read disturb errors, respectively, in the block, and wherein each block in the plurality of blocks is identified by: incrementing a read counter when the block is read; determining whether a scan flag is set; in response to determining that the scan flag is not set: determining if the read counter for the block is greater than a read threshold; and in response to determining that the read counter for the block is greater than the read threshold: setting the scan flag; and resetting the read counter for the block; and in response to determining that the read counter for the block is not greater than the read threshold, continuing tracking reads on the block; and in response to determining that the scan flag is set: queuing the block for scrubbing; and resetting the scan flag; training a machine learning Y(X1,X2) model, wherein Y is a target variable that designates a number of bit-flips for a block, X1 is a dependent variable that designates a number of reads done on a block since a block was opened for programming, and X2 is a dependent variable that designates an age of a block; using the machine learning Y(X1,X2) model to estimate a number of bit-flips in each of the plurality blocks based on the tracked ages and read counts of each of the plurality of blocks, wherein the ages are tracked based on time stamps created when each of the plurality of blocks was opened; determining whether the machine learning Y(X1,X2) model needs to be refreshed; in response to determining that the machine learning Y(X1, X2) model does not need to be refreshed, identifying a subset of the plurality of blocks that have an estimated number of bit-flips above a threshold; in response to determining that the machine learning Y(X1 X2) model needs to be refreshed, refreshing the machine learning Y(X1,X2) model before identifying the subset of the plurality of blocks that have the estimated number of bit-flips above the threshold, wherein the machine learning Y(X1 X2) model is refreshed using offline error characterization data or using run-time data samples collected when a scan happens; and improving a scan-hit-rate by: instead of scanning all of the plurality of blocks, scanning only the subset of the plurality of blocks to determine which blocks of the subset of the plurality of blocks require the read scrub operation; and performing the read scrub operation only on the blocks of the subset of the plurality of blocks that are determined to require the read scrub operation; wherein the scan-hit-rate is improved by reducing a number of blocks that are scanned to find the blocks that require the read scrub operation.
- Claim 11Depends on #10
The method of claim 10, further comprising identifying a block with a highest estimated number of bit flips.
- Claim 12Depends on #10
The method of claim 10, further comprising excluding a tracked number of inherent bit-flips from the estimated number of bit-flips.
- Claim 13Depends on #10
The method of claim 10, further comprising: identifying blocks that have not been read scrubbed; and read scrubbing the identified blocks.
- Claim 14Depends on #10
The method of claim 10, further comprising stopping using the machine learning model to estimate the number of bit-flips in response to the estimated number of bit-flips reaching a second threshold.
- Claim 15Depends on #10
The method of claim 10, further comprising queuing the blocks of the subset of the plurality of blocks prior to performing the read scrub operation.
- Claim 16Independent Claim
A data storage device comprising: a memory comprising a plurality of memory areas; and means for: identifying a plurality of blocks in the memory that may require a read scrub operation by tracking age and read count of each block of the plurality of blocks, wherein age and read count of a block are directly proportional to a likelihood of data retention errors and read disturb errors, respectively, in the block, and wherein each block in the plurality of blocks is identified by: incrementing a read counter when the block is read; determining whether a scan flag is set; in response to determining that the scan flag is not set: determining if the read counter for the block is greater than a read threshold; and in response to determining that the read counter for the block is greater than the read threshold: setting the scan flag; and resetting the read counter for the block; and in response to determining that the read counter for the block is not greater than the read threshold, continuing tracking reads on the block; and in response to determining that the scan flag is set: queuing the block for scrubbing; and resetting the scan flag; training a machine learning Y(X1,X2) model, wherein Y is a target variable that designates a number of bit-flips for a block, X1 is a dependent variable that designates a number of reads done on a block since a block was opened for programming, and X2 is a dependent variable that designates an age of a block; using the machine learning Y(X1,X2) model to estimate a number of bit-flips in each of the plurality blocks based on the tracked ages and read counts of each of the plurality of blocks, wherein the ages are tracked based on time stamps created when each of the plurality of blocks was opened; determining whether the machine learning Y(X1,X2) model needs to be refreshed; in response to determining that the machine learning Y(X1,X2) model does not need to be refreshed, identifying a subset of the plurality of blocks that have an estimated number of bit-flips above a threshold; in response to determining that the machine learning Y(X1 X2) model needs to be refreshed, refreshing the machine learning Y(X1,X2) model before identifying the subset of the plurality of blocks that have the estimated number of bit-flips above the threshold, wherein the machine learning Y(X1,X2) model is refreshed using offline error characterization data or using run-time data samples collected when a scan happens; and improving a scan-hit-rate by: instead of scanning all of the plurality of blocks, scanning only the subset of the plurality of blocks to determine which blocks of the subset of the plurality of blocks require the read scrub operation; and performing the read scrub operation only on the blocks of the subset of the plurality of blocks that are determined to require the read scrub operation; wherein the scan-hit-rate is improved by reducing a number of blocks that are scanned to find the blocks that require the read scrub operation.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATION This application claims priority to U.S. provisional patent application No. 63/450,422, filed Mar. 7, 2023, which is hereby incorporated by reference. BACKGROUND Data stored in a memory of a data storage device can be susceptible to corruption by ordinary read, program, and erase sequences. When the corruption is beyond the ability of an error correction code (ECC) algorithm to repair, data may be lost. To help prevent such data loss, a read scrub operation can be used to copy data from one block of memory to another, correcting any accumulated correctable errors in the process. In some data storage devices, read scrub operations are automatically performed at regular intervals (e.g., after a fixed number of read operations) to help ensure that the read scrub operation is performed before an uncorrectable error occurs. However, performing frequent copying operations can affect performance and life span of the memory. So, in other data storage devices, a targeted read scrub operation is used, wherein a read scrub operation is performed on only a portion of a targeted wordline at certain intervals (e.g., based on received host read commands). BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 A is a block diagram of a data storage device of an embodiment. FIG. 1 B is a block diagram illustrating a storage module of an embodiment. FIG. 1 C is a block diagram illustrating a hierarchical storage system of an embodiment. FIG. 2 A is a block diagram illustrating components of the controller of the data storage device illustrated in FIG. 1 A according to an embodiment. FIG. 2 B is a block diagram illustrating components of the memory data storage device illustrated in FIG. 1 A according to an embodiment. FIG. 3 is a block diagram of a host and data storage device of an embodiment. FIG. 4 is a flow chart of a method of an embodiment for setting and clearing a scan flag. FIG.
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (26)
Non-Patent Literature (10)
- R. Ma, F. Wu, M. Zhang, Z. Lu, J. Wan and C. Xie,
- “
- RBER-Aware Lifetime Prediction Scheme for 3D-TLC NAND Flash Memory,
- ”
- in IEEE Access, vol. 7, pp. 44696-44708, 2019 (Year: 2019).
- H. Choe, J. Jee, S.-C. Lim, S. M. Joe, I. H. Park and H. Park,
- “
- Machine-Learning-Based Read Reference Voltage Estimation for NAND Flash Memory Systems Without Knowledge of Retention Time,
- ”
- in IEEE Access, vol. 8, pp. 176416-176429, 2020 (Year: 2020).