SSD and firmware-based SSD block failure prediction and prevention method

The firmware-based SSD block failure prediction method addresses inefficiencies in existing models by using a two-step identification and verification process to accurately predict and avoid block failures, minimizing storage and processing demands.

JP7573409B2Active Publication Date: 2024-10-25SAMSUNG ELECTRONICS CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
JP2020178218
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-12-02
Filing Date
2020-10-23
Publication Date
2024-10-25
Estimated Expiration
2040-10-23

AI Technical Summary

Technical Problem

Existing SSDs face challenges in predicting and avoiding block-level failures due to high false alarm rates and inefficiencies in existing threshold-based models, leading to unnecessary drive replacements and potential data loss.

Method used

A firmware-based method for SSD block failure prediction that utilizes a two-step identification and verification mechanism, leveraging temporal and spatial locality of errors to identify suspect blocks and employing a learning-based model for accurate failure prediction, minimizing data storage and computational demands.

Benefits of technology

The method effectively predicts and avoids SSD block failures by identifying suspect blocks early, reducing unnecessary replacements and data loss while maintaining minimal storage and processing overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007573409000001
    Figure 0007573409000001
  • Figure 0007573409000002
    Figure 0007573409000002
  • Figure 0007573409000003
    Figure 0007573409000003
Patent Text Reader

Abstract

To provide SSD and firmware-based SSD block failure prediction and avoidance methods.SOLUTION: A Solid State Drive (SSD) comprises: flash storage for data comprising a plurality of blocks; a controller to manage data reading from and data writing to the flash storage; metadata storage to store device-based log data for errors in the SSD; and identification firmware that may be executed on a processor, the identification firmware being operative to identify a suspect block in the plurality of blocks in response to the device-based log data. Verification firmware determines whether the suspect block is predicted to fail in response to both precise block-based data and the device-based log data.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to storage devices, and more particularly to SSDs that provide fine-grained block failure prediction and firmware-based SSD block failure prediction and avoidance methods. [Background technology]

[0002] Failure of a NAND flash solid state drive (SSD) in the field can lead to server shutdowns, thus compromising the performance and availability of data center-scale applications. To avoid such unexpected failures, systems that utilize SSDs have primarily used simple threshold-based models to avoid such failures by replacing drives before they fail. Such protection mechanisms lead to a high degree of false alarms or are unable to predict / avoid all SSD failures. Furthermore, in the case of physical errors, SSDs cannot recover from the errors and therefore cannot avoid device failure.

[0003] Thus, there remains a need to provide fine-grained block failure prediction. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] U.S. Pat. No. 10,223,029 [Patent Document 2] U.S. Pat. No. 9,349,476 [Patent Document 3] U.S. Patent No. 9,632,854 [Patent Document 4] US Patent Publication No. 20180357535 Summary of the Invention [Problem to be solved by the invention]

[0005] The present invention has been made in consideration of the above-mentioned problems in the conventional technology, and an object of the present invention is to provide an SSD and a firmware-based method for predicting and avoiding failures in SSD blocks. [Means for solving the problem]

[0006] In order to achieve the above-mentioned object, one aspect of the present invention provides a solid state drive (SSD) comprising: a flash storage for data consisting of a plurality of blocks; a controller for managing reading data from the flash storage and writing data to the flash storage; a metadata storage for storing device-based log data for errors in the solid state drive (SSD); and identification firmware executed on a processor and operative to identify suspect blocks among the plurality of blocks in response to the device-based log data. Effect of the Invention

[0007] In accordance with the present invention, a firmware-based SSD block failure prediction and avoidance scheme is provided, which can avoid drive failures, or at least premature drive replacement. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 illustrates a system including a solid-state drive (SSD) with fine-grained block failure prediction in accordance with an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing a detailed configuration of the machine shown in FIG. [Diagram 3] FIG. 2 is a diagram showing a detailed configuration of the SSD in FIG. [Figure 4]FIG. 2 illustrates an example of block-based data used by the SSD of FIG. 1. [Diagram 5] FIG. 2 illustrates device-based log data used by the SSD of FIG. 1. [Figure 6] 4 illustrates the identification firmware and verification firmware of FIG. 3 operating to determine whether a particular block is predicted to fail. [Figure 7A] 4 is a flowchart of a procedure for determining whether a block is predicted to fail according to one embodiment of the present invention. [Figure 7B] 4 is a flowchart of a procedure for determining whether a block is predicted to fail according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, specific examples of the embodiments of the present invention will be described in detail with reference to the drawings. In the following detailed description, various specific details are provided to facilitate a thorough understanding of the technical idea of ​​the present invention. However, those skilled in the art can realize the technical idea of ​​the present invention without such specific details. In other examples, well-known methods, procedures, components, circuits, and networks are not described in detail so as not to unnecessarily obscure aspects of the embodiments.

[0010] Here, terms such as first, second, etc. are used to describe various elements, but such elements are not limited by such terms. Such terms are used only to distinguish one element from another element. For example, a first module may be named a second module without departing from the scope of the technical idea of ​​the present invention. Similarly, a second module may be named a first module.

[0011] The terms used in the description of the technical concept of the present invention are used only for the purpose of describing certain embodiments, and are not intended to limit the technical concept of the present invention. As used in the description of the technical concept of the present invention and in the claims, the singular term is intended to include the plural term, unless the context clearly indicates otherwise. The term "and / or" refers to including any and all possible combinations of one or more of the associated items. The terms "comprises" and / or "comprising" specify the presence of the features, integers, steps, operations, elements, and / or components mentioned when used in the detailed description, and do not exclude the presence or addition of one or more of other features, integers, steps, operations, elements, components, and / or groups thereof. The components and features in the drawings are not necessarily drawn to scale.

[0012] A firmware-based solid-state drive (SSD) failure protection mechanism is provided for early detection and isolation of errors, which may avoid drive failure or at least prematurely replace the drive.

[0013] An SSD contains multiple flash chips, each containing many blocks. A block contains any number of pages. A page is usually several kilobytes in size and is the smallest unit for reading and writing data on a typical SSD. The SSD controller (firmware) contains all the logic required to service read and write requests, implement wear-leveling algorithms, and perform error recovery procedures.

[0014] Each SSD page contains error correcting code (ECC) metadata that is used by the SSD controller to recover and repair a limited number of bit errors (usually 1-2 bit errors). However, if the number of bit errors caused by hardware failure exceeds a certain number, the SSD controller will not be able to correct the errors, which will cause the SSD controller to provide corrupted data to the host. If such failures occur multiple times, the entire device may be selected for replacement, which incurs high costs for the device manufacturer and results in server shutdowns, impairing application performance and availability.

[0015] On the other hand, if an error occurs when writing data to a flash page (program operation), the page is marked as "faulty" and will not be used any further. When a certain number of pages in a block become faulty, the entire block is discarded (evicted). SSDs leave some margin (spare) blocks to replace such withdrawn blocks. When the number of margin blocks available to an SSD becomes insufficient (for example, more than 90% of the spare blocks are used), the device must be replaced.

[0016] There may be situations where many of the blocks in a drive are functioning normally (good blocks) and some of the blocks are defective (bad blocks). If read operations target bad blocks and frequently fail (reading damaged data or failing to read due to hardware defects), the entire drive is designated for replacement to prevent future failures and avoid data loss. However, if fine-grained block errors / defects can be predicted early and subsequently avoided / recovered, the bad blocks are discarded / withdrawn, thereby preventing the SSD from storing information from the bad blocks and avoiding additional failures and data damage / loss.

[0017] Predicting fine-grained (block-level) errors / defects in SSDs with thousands of blocks is not trivial and requires (i) storing a very large amount of history (time-series) data corresponding to each block, and (ii) processing / analysis of very large datasets to predict and avoid failures. Related to the amount of history data required, whether such metadata information is stored in the SSD's DRAM space or in the flash memory itself, the amount of data stored increases as the failure history information increases. Storing this information generates very high storage costs and sacrifices capacity on most drives. When using storage devices that contain a limited amount of DRAM and are very sensitive to the price per gigabyte, the data storage requirements are not trivial and it is not easy or efficient to sacrifice a large portion of the device's storage capacity to store such failure time-series data.

[0018] In relation to the processing required to make the prediction, SSDs typically have limited processing power, which is primarily used for internal operations of the SSD, such as the flash translation layer, wear levelling, and scheduling. Processing large amounts of data inside an SSD to predict block-level failures / errors is not easily accomplished.

[0019] To solve the above problems with block-level failure prediction, embodiments of the present invention exploit the temporal and spatial locality of physical errors of each block and / or pages within each block. Temporal locality refers to the frequent occurrence of errors in the same physical page and / or block. Spatial locality refers to the occurrence of errors in adjacent physical parts (e.g., pages or blocks). By exploiting the locality of error occurrence, only a very limited amount of data related to only a few past errors is needed (instead of the device's error history) to predict block failure. The intuition behind this idea is that a page / block that generated a defective page is more likely to generate errors in the future. Also, when a page of a block fails, pages adjacent to the failed page in the same block are more likely to generate the same errors as the adjacent pages are all in the same physical component. <Block-level failure prediction>

[0020] As mentioned above, predicting block-level failures is not trivial due to capacity and processing requirements. A simple approach would be to use fine-grained history log data corresponding to thousands of blocks to make accurate predictions, but the size of the data set would increase over time, reducing the storage of user data. Instead, embodiments of the present invention use a two-stage identification and verification mechanism to find suspect blocks, and then use a learning-based model to verify future failures of the next block.

[0021] First, when exploiting physical error locality to identify suspect drives, only recent error information needs to be stored. For example, instead of the entire error history during drive operation, only the last k entries of the error history, the most recent k incidents, are maintained. Errors older than the last k entries should be discarded. Despite only storing information related to recent errors, such limited information helps identify suspect blocks by error locality. For example, if 10 errors out of the last 100 errors were generated by a particular page in the identified block, that fact indicates that future errors are likely to occur in the same page or in adjacent pages of the same block. Thus, given information about the last k errors, suspect blocks can be identified using data that is potentially less extensive than the error history of the entire device.

[0022] In the second stage, simply calling out and discarding defective blocks would result in high inefficiency, even though the suspect blocks are likely to cause errors in the near future. Such threshold-based identification mechanisms may not be able to capture failure information accurately, generating many false alarms and discarding healthy blocks, wasting drive capacity. To prevent such inaccurate threshold-based predictions, after identifying the suspect blocks, a prediction model (already trained) is used to more accurately predict block failures. <Get block level parameters>

[0023] Executing the pre-trained prediction model requires time series information related to the suspect blocks to verify their failure. Keeping track of such fine-grained information results in high-volume requirements that far exceed the capacity of storage devices. Instead, embodiments of the present invention extract (directly or with some modification) block-based log data from available drive-based log data in association with the definition and interpretation of each parameter. In particular, to create a set of parameters for the suspect blocks (e.g., set S={parameter 1, parameter 2, ...}) and feed it to the prediction module, the log data is divided into two categories: (i) Precise block-based log data: S_Block_Precise={p1, p2, …}, and (ii) Approximate block-based log data: S_Block_Approx={a1, a2, …}.

[0024] Then, to derive S, S = S_Block_Precise ∪ S_Block_Approx, which is the same as S = S_Block_Precise + S_Block_Approx, since the two sets are disjoint. For parameters directly related to error / failure information (like number of read errors, write errors, and delete errors), precise information for each block is stored. The amount of block-based data required is ignored (even for a 1TB SSD, only a small megabyte of space is needed) and is managed by the SSD, which already contains several gigabytes of DRAM space. Moreover, such data does not refer to any time series information, it is just one counter for each parameter per block.

[0025] To extract the time series log data, such information is derived from global drive level error information maintained for the past k errors. Suspect blocks are selected based on the past k error incidents, so the recent error information for the suspect blocks is already present in the global drive level error data. The data for the most recent k errors associated with a drive includes the accumulated error information for the block, which is derived by adding the new error data with the error counter for the block. The counters used for each block simply include the accumulated error information. The global error information contains the complete data for the most recent k errors, including the errors generated by the suspect block.

[0026] Approximation parameters for the block (i.e., S_Block_Approx) are extracted from drive-level error information. The intuition behind this idea is that some log information for the suspect block is roughly (approximately) derived from drive-level parameters to refer to the drive / block status, not error information. That is, such parameters may be averaged across all blocks, and therefore may be representative of a single block. For example, some parameters, such as "Number of Reads" and "Number of Writes", based on the overall number of reads and writes for the drive (which is an indication of the life of the drive), are averaged across all blocks to approximate the corresponding parameters for the suspect block.

[0027] By combining the history-based drive information with the counter-based block-level log data, a set of parameters for the suspect block is generated and fed to the prediction module. Then, in the event of a failure alert for the suspect block, the block is discarded early to prevent additional errors associated with such block and the associated drive replacement. Thus, instead of maintaining increasingly large time series data for each block, only a lightweight counter for each block needs to be maintained. Moreover, the most recent k error events for the time series drive information are maintained, occupying only a few kilobytes of data. Through such optimization, the size of the data set and the computation / performance requirements required to perform fine-grained block-level failure prediction are addressed. The amount of data required for the proposed improvements is less than naive block-level time series log data, and subsequent processing of such a small amount of data is performed very quickly in real time. Required Metadata and Data Structure

[0028] As mentioned above, only lightweight error information / counters for each block need to be maintained. Assuming an SSD contains n blocks, only n entries are needed. Meanwhile, for drive level information, we just maintain information for the past k error events. For each k error event, information about the physical location of the error (page, block), the time when the error occurred (timestamp), the error counter for the block at that time, and the SMART log data of the SSD are stored.

[0029] As mentioned above, the overhead required by embodiments of the present invention is fairly low. Assume an SSD with 1 TB storage capacity, 256 pages per block, and pages of 4 KB size. That is, Number of pages = 1TB / 4KB = 256,000,000 Number of blocks = 256,000,000 / 256 = 1,000,000 If there are three error attributes for each block (counters one for each of the number of read errors, write errors, and delete errors (each of which is a 4-byte integer)), the total memory space required for block-level error data is 1,000,000 x 3 x 4B ≈ 12MB.

[0030] For the drive-level information, assume that k is 100 (i.e., information related to the most recent 100 error events is stored) and each error event requires 1KB of storage. Thus, the total space required for the drive-level metadata is 100KB. Thus, the total memory overhead should be 12.1MB, which is negligible for an SSD that contains several gigabytes of DRAM space.

[0031] Error log data for SSDs is usually specified based on firmware and device model. For illustrative purposes, some parameters of the log data that can be stored include Critical Warning, Available Space, Data Units Read, Data Units Written, Power Cycles, Power On Hours, Unsafe Shutdowns, Media Errors, Warning Temperature Time, and Critical Composite Temperature Time. Embodiments of the present invention can store other parameters. <Execution flow>

[0032] In the event of an error occurring in block I, the error counters for the block-level metadata are read and updated. The drive-level metadata is then updated to reflect the new error event information. The information stored in the drive-level metadata includes parameters such as location (page ID / block ID), timestamp, etc. for the error mentioned above. Identifying suspicious blocks

[0033] To identify suspect blocks, a drive-level metadata table is periodically scanned (by checking the block ID field in this table) to see if a block generates repeated errors. This scan can be performed periodically (e.g., every minute) or after some errors are logged (e.g., after every error, after every fifth error, etc.). If some previous errors occurred in the same block, the block is added to a suspect block pool. The SSD then avoids using the block to temporarily store data (although the block is still read because it could store valid data). More specifically, if the number of incidents corresponding to a particular block among the most recent k errors is greater than or equal to a threshold, the block is marked as "suspect."

[0034] There are two ways to set the threshold: (1) Define a static threshold α. If the number of error incidents corresponding to a particular block exceeds α% of the most recent k errors, the block is marked as suspicious. The threshold parameter α is adjusted based on the protection / reliability level required. For example, setting α to 10 indicates that the block is marked as suspicious if more than 10% of the most recent k error incidents are associated with a particular block ID. Alternatively, α is not a percentage but a fixed number. That is, setting α to 10 indicates that the block is marked as suspicious if more than 10 of the most recent k error incidents are associated with a particular block ID. (2) Define an average-based threshold. Such a threshold is obtained by averaging the total number of errors (from the device log) of all blocks in the drive. The decision to identify a suspicious block is made (directly or implicitly) based on such a threshold. That is, if a particular block has experienced more than its share of errors among the last k error incidents, then the block is marked as suspicious. For example, assume that a device with a total of 256,000 blocks has experienced a total of 100 errors. The ratio of the number of errors to the number of blocks is 100 / 256,000=1 / 2,560. If the block has experienced more than such number of errors, then the block is marked as suspicious.

[0035] It should be noted that until the number of errors is roughly proportional to the number of blocks, even a single error will lead to the block being marked as suspect. To prevent every error from triggering a block being marked as suspect, the average-based threshold is scaled by a desired factor. Thus, for example, the average-based threshold is multiplied by a number (e.g., 10,000) to effectively generate a threshold value greater than 1. The value of this scaling can vary over time or with the number of errors to prevent the average-based threshold from becoming too large. Prediction

[0036] Once a suspect block is identified, a set of parameters (set S) corresponding to the suspect block is generated and provided to the failure prediction module. As described above, part of S is based on block-level error information, and part of S is derived from drive-level log information extracted from the stored drive-level metadata of the past k errors (which reflects an average over all blocks to estimate the block-level data). An optional algorithm is then used to process such data to determine whether the block is actually predicted to fail. Examples of algorithms that may be used include Logistic Regression or Random Forest algorithms. If the predicted result indicates that the block is likely to fail in the future, the block is discarded by first copying the block's valid data to another block and removing the next suspect block from the list of available blocks. To minimize the processing power required for the prediction module, the prediction module does not need to run for every block or run continuously. Instead, the prediction module is triggered only for a suspect block and only if that block is identified as a suspect block.

[0037] As mentioned above, any desired prediction module is selected that uses some time series data to predict events. An example of a prediction module is initially trained, and the information for prediction (e.g., optimized weights) is a machine learning-based failure prediction model (e.g., Random Forest, Logistic Regression, Outlier Detection, Anomaly Detection, etc.) that is already built into the firmware of the drive. Thus, when receiving past error information, the model can perform lightweight to predict the probability of failure for a particular block.

[0038] FIG. 1 illustrates a system including a solid-state drive (SSD) with fine-grained block failure prediction according to an embodiment of the present invention. In FIG. 1, the machine includes a processor 105, a memory 110, and a solid-state drive 115. The processor 105 may be any of a variety of processors, such as an Intel Xeon, Celeron, Itanium, or Atom processor, an AMD Opteron processor, an ARM processor, etc. While FIG. 1 illustrates a single processor 105, the machine 120 may include single-core or multi-core processors, any number of processors mixed in any desired combination.

[0039] The processor 105 is coupled to memory 110. Memory 110 may be a variety of memory such as flash memory, Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Persistent Random Access Memory (PRAM), Ferroelectric Random Access Memory (FeRAM), or Non-Volatile Random Access Memory (NVRAM) such as Magnetoresistive Random Access Memory (MRAM). Memory 110 may also be any desired combination of different memory types and is managed by memory controller 125. Memory 110 is used to store data that is referred to as "short-term" - that is, data that is not expected to be stored for long periods of time. Examples of short-term data include temporary files, data used locally by an application (that has been copied from another storage location), etc.

[0040] The processor 105 and memory 110 also support an operating system on which various applications execute. Such applications issue requests to read data from or write data to the memory 110 or the SSD 115. For example, the SSD 115 is used to store initial parameters (or ranges of values ​​for the initial parameters, and the types of operations that the ranges of values ​​represent) that are used to initialize a simulation. The SSD 115 is accessed using a device driver 130. While FIG. 1 illustrates an SSD 115, embodiments of the invention include other storage device formats that can benefit from fine-grained block failure prediction. References below to "SSD" should be understood to include other embodiments of the invention.

[0041] Figure 2 is a diagram illustrating the detailed configuration of the machine of Figure 1. In Figure 2, the machine 120 typically includes one or more processors 105, including a memory controller 125 and a clock 205 that can be used to coordinate the operation of the machine's components. The processor 105 is also coupled to a memory 110, which may include, for example, a random access memory (RAM), a read-only memory (ROM), or other state storage medium. The processor 105 is also coupled to a storage device 115 and a network connector 210, which may be, for example, an Ethernet connector or a wireless connector. The processor 105 is also coupled to a bus 215 that is attached to a user interface 220 and input / output interface ports that are managed using an input / output engine 225, among other components.

[0042] FIG. 3 is a diagram showing a detailed configuration of the SSD of FIG. 1. In FIG. 3, the SSD 115 includes a host interface logic 305 that provides an interface between the SSD 115 and a host computer (such as the machine 120 of FIG. 1). The SSD 115 also includes an SSD controller 310, and various channels (315-1, 315-2, 315-3, and 315-4) in which various flash memory chips (320-1, 320-2, 320-3, 320-4, 320-5, 320-6, 320-7, 320-8) are arranged. Although FIG. 3 illustrates four channels and eight flash memory chips, one of ordinary skill in the art can recognize that there may be any number of channels containing any number of flash memory chips.

[0043] Within each flash memory chip, space is organized into blocks, which are further subdivided into pages. For example, flash memory chip 320-8 is illustrated as including first through nth blocks (identified as blocks (325-330)), each of which includes first through mth numbered pages. Although there may be multiple pages with the same number (e.g., page 1) assigned to multiple blocks, the combination of a page identifier (ID) and a block ID can uniquely identify a particular page within flash memory chip (320-8) (or the combination of page ID, block ID, and flash memory chip ID can uniquely identify a page within SSD 115).

[0044] The distinction between blocks and pages comes from the way SSDs handle read, write and delete operations. A page is the smallest unit of data that is typically read from or written to an SSD. The size of a page can vary as needed. For example, a page is 4KB of data. When less than an entire page is written, most of the space is "unused".

[0045] However, as pages are written to and pages are read, SSDs typically do not allow data to be overwritten; that is, existing data is not replaced "in place" with new data. Instead, when data is about to be updated, the new data is written to a new page on the SSD, and the original page is invalidated (marked as ready to be deleted). Thus, SSD pages typically have one of three states: free (ready to be written to), valid (contains valid data), and invalid (contains no more valid data, but cannot be used until it is deleted) (the exact names of these states may vary).

[0046] However, although pages are written and read individually, a block is the basic unit of deletable data; i.e., pages are not deleted individually. Because of this, all pages in a block are deleted at the same time. For example, if a block contains 256 pages, then the entire 256 pages in the block are deleted at the same time. Such an arrangement may cause some management issues for SSDs. When a block that still contains some valid data is selected for deletion, the corresponding valid data needs to be copied to a free page in the SSD before the block is deleted (in embodiments of the invention, the unit of deletion may be different from a block; for example, it may be a superblock, i.e., a set of multiple blocks).

[0047] The SSD controller 310 includes a flash translation layer 335, a metadata storage 340, an identification firmware 345, and a verification firmware 350. The flash translation layer 335 handles the translation of logical block addresses (used by the processor 105 of FIG. 1) and physical block addresses where data is stored in the flash chips (320-1 to 320-8). The metadata storage 340 stores metadata information used by the SSD 115 when performing fine-grained block failure prediction. The identification firmware 345 is used to identify blocks suspected of failing using the metadata information stored in the metadata storage 340. That is, the verification firmware 350 reuses the metadata information stored in the metadata storage 340 to determine whether a suspected block is likely to actually fail. The identification firmware 345 and the verification firmware 350 are executed using a processor (not shown in FIG. 3) that is part of the SSD 115, for example using the native processing power of the SSD controller 310.

[0048] FIG. 4 is a diagram illustrating an example of block-based data used by the SSD 115 of FIG. 1. In FIG. 4, the block-based data 405 includes data for each block, which is stored in the metadata storage 340 of FIG. 3. For example, FIG. 4 illustrates data for blocks 1 through n, although data for any number of blocks may be included (up to data for each block of the SSD 115 of FIG. 1). The data for each block includes counters (410-1, 410-2, and 410-3) that store the number of read errors, the number of write errors, and the number of erase errors that occurred for that block. The counters (410-1, 410-2, and 410-3) are accumulated after the SSD 115 of FIG. 1 is manufactured. That is, the block-based data 405 is also referred to as accurate block-based data. The block-based data 405 is accurate relative to other data described below with reference to FIG.

[0049] Each of the counters (410-1, 410-2, and 410-3) requires 4 bytes per counter. Because each counter (410-1, 410-2, and 410-3) contains three counters (one each for the number of read errors, write errors, and delete errors), a total of 12 bytes are used to store each counter (410-1, 410-2, and 410-3). Multiplying 12 bytes by the number of blocks in the SSD of FIG. 1 calculates the overhead imposed by block-based data 405.

[0050] For example, consider an SSD that provides 1 TB of total storage, where each block contains 256 pages, and each page contains 4 KB of data. To store 1 TB of data in 4 KB pages, 268,435,456 pages are required. Using 256 pages per block means that the SSD contains a total of 1,048,576 blocks. At 12 bytes for 3 counters per block, the block-based data 405 requires a total of 12 MB of storage, which is only 1 / 1000th of a percent of the total storage provided by the SSD.

[0051] Counters (410-1, 410-2, and 410-3) indicate the number of errors that have occurred from each "block." Such errors may be clustered in any one or some of the pages of the block, or the errors may be scattered among the pages of the block. Thus, block-based data 405 is provided to determine the spatial locality of some of the errors, since a page with one error is more likely to have other errors as well as other nearby pages (when compared to pages in other blocks).

[0052] FIG. 5 is a diagram illustrating device-based log data used by the SSD 115 of FIG. 1. In FIG. 5, device-based log data 505 is shown. The device-based log data 505 includes data for a particular error that occurred on the SSD 115 of FIG. 1 and is stored in the metadata storage 340 of FIG. 3. However, rather than storing data for all errors that occurred on the SSD 115 of FIG. 1, the device-based log data 505 stores data for the most recent k errors that occurred on the SSD 115 of FIG. 1. Older errors are discarded. Thus, the first through kth errors may not be the first k errors to occur on the SSD 115 of FIG. 1, but may be the most recent k errors (along with the older errors that were previously discarded). k is any desired value. That is, a larger value provides more information that is used to determine whether a particular block is predicted to fail, but at the cost of having to store more data (hence increased overhead).

[0053] A variety of data is stored for each error currently being tracked. For example, as shown for errors (510-1, 510-2, and 510-3), an ID for the page and block is stored along with the time the error occurred, an error counter for the block (i.e., the value of the exact block-based data 405 of FIG. 4 for the block in which the error occurred at the time the error occurred), a timestamp for when the error occurred, and other log data as shown in SMART log data 515. The data shown in FIG. 5 for device-based log data 505 represents one embodiment of the invention. That is, other embodiments may include, without limitation, more, less, or other data than the data shown in FIG. 5.

[0054] In contrast to the precise block-based data 405 of Figure 4, the device-based log data 505 is used to derive approximate block-based data. Because the device-based log data 505 stores information only for the most recent k errors of the SSD 115 of Figure 1, the device-based log data 505 (and thus the approximate block-based data derived therefrom) provides for determining some temporal locality among the errors, making it possible to identify blocks that have experienced more recent errors than other blocks.

[0055] Because only the data for the most recent k errors is stored, the overhead required to store the device-based log data 505 is calculated by knowing the size of the data stored for one error and then multiplying that data by the number of errors. For example, if data for the most recent 100 errors is stored with 1 KB of storage for each error, then the total storage required to store the device-based log data is 100 KB. Again, relative to the size of the SSD 115 of FIG. 1, this storage overhead is a small percentage of the size of the SSD 115 of FIG. 1 (approximately 1 / 100,000 for a 1 TB SSD).

[0056] The value of k is preset. Thereafter, the value of k remains constant for the lifetime of the SSD 115 of FIG. 1. Also, k is configurable and can change over time depending on user preferences. For example, as the SSD 115 of FIG. 1 ages, more error information may be preferred.

[0057] Figure 6 illustrates the identification firmware 345 and verification firmware 350 of Figure 3 operating to determine whether a particular block is predicted to fail. In Figure 6, the identification firmware 345 receives device-based log data 505 (including SMART log data 515, not shown in detail in Figure 6). The identification firmware 345 then identifies the block in which each stored error occurred. If the number of errors for a particular block among the most recent k errors exceeds a certain threshold, the block is suspected to fail soon. Thus, the identification firmware 345 can generate approximate block-based data 605 from the device-based log data 505.

[0058] Any desired threshold value can be used to determine whether a particular block is suspected of failing soon. For example, a pre-determined user-specified threshold value can be set, and if a number of errors occurs in the last k errors in a particular block that is greater than the threshold value, the block is suspected of failing soon. The threshold value can be a number (e.g., 10 errors in the last k errors) or a percentage (e.g., 10% of the errors in the last k errors). The threshold value can be adjusted based on the number of errors that actually occurred. For example, if the threshold value is set to a percentage of the total number of errors, the block where the first error occurs is automatically suspected because 100% of the errors are associated with that block. To avoid such a result, the identification firmware 345 does not operate until the number of errors that have occurred on the SSD 115 of FIG. 1 exceeds some other value. That is, this prevents the identification firmware 345 from identifying blocks that are suspected of failing too soon.

[0059] Another threshold that can be used is to calculate the average number of errors per block across the entire SSD. That is, the total number of errors that occurred (after the SSD is manufactured) can be calculated and divided by the total number of blocks in the SSD. Any block that has a very large number of errors relative to this average is suspected of soon failing. A percentage of this average is also used. Again, this average (or use of the average) can be adjusted. For example, until the number of errors generated by the SSD approaches the number of blocks in the SSD, any block that has a single error will have more than the average number of errors and will be automatically considered suspect by the identification firmware 345. Thus, the identification firmware 345 may not start considering whether a block is suspected of soon failing until the number of errors exceeds a preset value. Instead, the identification firmware 345 calculates the relative percentage of errors that occur from a particular block (with respect to k) and compares that value to the average number of errors per block across the SSD. If a block experiences a higher than average percentage of the most recent k errors, then identification firmware 345 suspects the block to be an upcoming failing block.

[0060] In another embodiment of the invention, the identification firmware 345 may suspect that a block will fail based on its total error count, not because the block has experienced a greater share of errors recently. For example, assume k is selected to be 100 (i.e., the device-based log data is stored only for the most recent 100 errors). If every 50th error occurs from a particular block, that block may not necessarily be considered suspect based on having a higher percentage of errors in the most recent k errors. However, in the device's history, this block having 1 out of every 50 errors means that this block has experienced many more errors than other blocks. Thus, the identification firmware 345 examines the exact block-based data 405 of FIG. 4 to find blocks that are suspected to soon fail. Blocks with total error counts that exceed some threshold are identified as suspect, even if the block does not exceed the threshold based on the approximate block-based data 605.

[0061] In some embodiments of the invention, the identification firmware 345 examines the accurate block-based data 405 of FIG. 4 without regard to the device-based log data 505. That is, in such embodiments of the invention, the identification firmware 345 examines the total error counts of all blocks of the SSD 115 of FIG. 1. In other embodiments of the invention, the identification firmware 345 examines the accurate block-based data 405 of FIG. 4 only for blocks that have experienced one (or more) of the most recent k errors. That is, in such embodiments of the invention, the identification firmware 345 considers the accurate block-based data 405 of FIG. 4 in addition to the device-based log data 505.

[0062] Regardless of the particular approach used, the identification firmware 345 can simply operate by comparing two values ​​to determine if a particular block is deemed suspect. Through this process, suspect blocks can be easily identified.

[0063] The identification firmware 345 can run based on any desired schedule. The identification firmware 345 can run at regular time intervals, such as every minute, every 10 minutes, or every day (smaller and larger intervals are possible). Alternatively, the identification firmware 345 can run after a certain number of errors have occurred, such as after every error or after the fifth error (other numbers of errors are possible).

[0064] Although identification firmware 345 has been described as using device-based log data 505 to determine whether a block is suspect, embodiments of the invention may use precise block-based data 405 of Figure 4 in place of or in addition to device-based log data 505. For example, a particular firmware 345 may simply identify a block as suspect based on the sum of counters (410-1) of Figure 4 exceeding a predetermined threshold.

[0065] When the identification firmware 345 identifies a block suspected of soon-to-fail, the verification firmware 350 is invoked. The verification firmware 350 uses the precise block-based data 405 (specifically, the counter of blocks (410-1) applied to the soon-to-fail blocks) and the approximate block-based data 605 of FIG. 4 to determine whether the block identified by the identification firmware 345 as a suspect block is actually predicted to fail soon. The verification firmware 350 uses any desired approach to make such a determination. For example, the verification firmware 350 can implement a machine learning-based failure prediction model such as random forest, logistic regression, outlier detection, anomaly detection, etc., where the model can be trained and the information for prediction (e.g., optimized weights) is already built into the verification firmware 350. The verification firmware 350 then generates a result 610 indicating whether the block suspected of soon-to-fail is actually predicted to fail soon by the identification firmware 345.

[0066] 6 illustrates the identification firmware 345 as generating the approximate block-based data 605 from the device-based log data 505, embodiments of the invention may have other components that generate the approximate block-based data 605. For example, the verification firmware 350 selects the device-based log data 505 and generates the approximate block-based data 605 itself.

[0067] It should be noted that the identification firmware 345 and the verification firmware 350 have different functions. The identification firmware 345 simply identifies blocks that are suspected to fail soon. The identification firmware 345 is used in isolation (i.e., all blocks suspected to fail soon are simply assumed to fail soon). However, such an approach causes many blocks that have been working properly for a long time to be discarded from operation. The identification firmware 345 can be considered similar to the police arresting a suspect who has committed a crime. That is, the fact that a suspect is arrested does not automatically mean that the suspect is guilty.

[0068] Verification firmware 350, on the other hand, can be thought of as analogous to a criminal trial that returns a guilty or innocent verdict. Verification firmware 350 makes the final decision as to whether a particular block should actually be retired from use. Using an additional step to verify that a block is actually ready to be retired can prevent a block from being prematurely retired.

[0069] It is important to note what computations are actually required to identify a block as suspect and to verify whether the block is ready for retirement. Identifying a block as suspect is completed through a simple comparison of the number of errors that have occurred in that block relative to a threshold. This computation is usually very fast and easy to perform, and does not require complex operations before analyzing the block to see if it is predicted to fail soon and therefore ready for retirement.

[0070] The verification firmware 350 includes more computations than the identification firmware 345. However, the verification firmware 350 is executed only after a block is identified as suspect. This condition prevents the verification firmware 350 from being executed repeatedly for many blocks, which, as mentioned above, would exceed the available computational resources of the SSD 115 of FIG. 1. It is much preferable to invoke the verification firmware 350 as needed for each suspect block, rather than continuing to check every block with intensive computations to determine whether the block should be discarded. Thus, the use of both the identification firmware 345 and the verification firmware 350 achieves the goal of providing fine-grained block failure prediction without imposing the computational demands of implementing fine-grained block failure prediction.

[0071] 7A and 7B are flow charts of a procedure for determining whether a block is expected to fail according to an embodiment of the present invention. In FIG. 7A, in step 705, the SSD 115 of FIG. 1 tracks errors that have occurred from blocks 325 to 330 of FIG. 3. In step 710, the SSD 115 of FIG. 1 stores the device-based log data 505 of FIG. 5 in the metadata storage 340 of FIG. 3. In step 715, the SSD 115 of FIG. 1 discards the drive-based log data 505 of FIG. 5 for the oldest error. Step 715 is omitted if there is no drive-based log data 505 of FIG. 5 for the oldest error to discard, as indicated by dashed line 720. In step 725, the SSD 115 of FIG. 1 stores the accurate block-based data 405 of FIG. 4 in the metadata storage 340 of FIG. 3.

[0072] At step 730, the SSD 115 of Figure 1 obtains the approximate block-based data 605 of Figure 6. As described above with reference to Figure 6, the approximate block-based data 605 of Figure 6 is obtained by the identification firmware 345 of Figure 3, the verification firmware 350 of Figure 3, or some other component of the SSD 115 of Figure 1 (e.g., by the SSD controller 310 of Figure 3).

[0073] At step 735, the identification firmware 345 of FIG. 3 identifies blocks suspected of soon to fail. As described above with reference to FIG. 6, the identification firmware 345 identifies the blocks using the approximate block-based data 605 of FIG. 6, the device-based log data 505 of FIG. 5, or other data. At step 740, the verification firmware 350 of FIG. 3 verifies whether the suspected blocks are actually predicted to fail. As described above with reference to FIG. 6, the verification firmware 350 of FIG. 5 makes such a determination using the approximate block-based data 605 of FIG. 6, the precise block-based data 405 of FIG. 4, or the device-based log data 505 of FIG. 5, and may do so using any desired algorithm, such as a machine learning-based failure prediction model using a random forest algorithm, a logistic regression algorithm, an outlier detection algorithm, an anomaly detection algorithm, or any other desired algorithm.

[0074] At step 745, the verification firmware 350 of FIG. 3 determines whether the suspect block is indeed predicted to fail soon. If so, at step 750, the verification firmware 350 of FIG. 3 discards the suspect block. Discarding the suspect block involves copying any valid data currently stored in the block to another block (and updating a table that identifies where such data is stored) and marking the block to prevent the SSD 115 of FIG. 1 from writing any new data to the block. For example, the verification firmware 350 of FIG. 5 may mark each block as containing data that is not valid, but in some way block some garbage collection logic from selecting the block for garbage collection.

[0075] At this point, whether or not the verification firmware 350 of FIG. 3 has discarded the suspect block, control returns to any of a number of points. Control returns to step 705 to track new errors that have occurred in the SSD 115 of FIG. 3, as indicated by dashed line 755. Control also returns to step 730 to scan the SSD 115 of FIG. 3 for new blocks that are suspected of failing soon, as indicated by dashed line 760. The former approach is used in systems that scan for suspect blocks after a predetermined number of errors have occurred, and the latter approach is used in systems that scan for suspect blocks after a predetermined time interval has elapsed. Control may also end completely.

[0076] In Figures 7A and 7B, several embodiments of the present invention are shown. However, one of ordinary skill in the art will recognize that other embodiments of the present invention are possible by changing the order of the blocks, omitting blocks, or including links not shown in the drawings. All such variations of the flow charts, whether or not explicitly described, are considered to be embodiments of the present invention.

[0077] Embodiments of the present invention provide technical advantages over previous techniques. First, embodiments of the present invention enable fine-grained block failure prediction not provided by conventional systems. Second, embodiments of the present invention avoid the high likelihood of false positives of blocks predicted to fail by separating identification of suspect blocks from verifying whether the suspect blocks are actually predicted to fail. Third, embodiments of the present invention are able to verify whether a suspect block is predicted to fail without requiring the substantial computational resources associated with such predictions in conventional systems. Fourth, embodiments of the present invention are able to minimize computational resources used by verifying whether a particular block is predicted to fail without having to determine whether other blocks are also predicted to fail.

[0078] The following discussion is intended to provide a brief, general description of a suitable machine or machines on which certain aspects of the invention may be implemented. The machine or machines may be controlled at least in part by input from traditional input devices such as a keyboard, mouse, etc., but also by instructions received from other machines, interaction with a virtual reality (VR) environment, biometric feedback, or other input signals. As used herein, the term "machine" is intended to broadly include a single machine, a virtual machine or communicatively coupled machines, multiple virtual machines, or a system of devices operating together. Exemplary machines include computing devices such as personal computers, workstations, servers, portable computers, handheld devices, phones, tablets, etc., as well as transportation devices such as personal or public transportation (e.g., cars, trains, taxis, etc.).

[0079] The machine or machines may include embedded controllers such as programmable or non-programmable logic devices or arrays, application specific integrated circuits (ASICs), embedded computers, smart cards, and the like. The machine or machines may utilize one or more connections to one or more remote machines, such as via a network interface, modem, or other communications coupling. The machines may be interconnected through physical and / or logical networks, such as an intranet, the Internet, a local area network, a wide area network, and the like. One of ordinary skill in the art will appreciate that network communications may utilize a variety of wired and / or wireless short or long range carriers and protocols, including radio frequency (RF), satellite, microwave, Institute of Electrical and Electronics Engineers (IEEE) 802.11, Bluetooth, optical, infrared, cable, laser, and the like.

[0080] Embodiments of the present invention are described with reference to or in conjunction with associated data, including functions, procedures, data structures, applications, etc., which when accessed by a machine cause the machine to perform a task or define an abstract data type or low level hardware context. Associated data may be stored in other storage devices, including volatile and / or non-volatile memory (e.g., RAM, ROM, etc.), hard drives, floppy disks, optical storage, tape, flash memory, memory sticks, digital video disks, biological storage, etc., as well as associated storage media. Associated data may be conveyed over transmission environments, including physical and / or logical networks, in the form of packets, serial data, parallel data, propagated signals, etc., and may be used in compressed or encrypted form. Associated data may be used in distributed environments and stored locally and / or remotely for machine access.

[0081] Embodiments of the present invention include a tangible non-transitory machine-readable medium comprising instructions executable by one or more processors, the instructions including instructions for performing elements of the present invention described herein.

[0082] The various operations of the methods described above may be performed by any suitable means for performing operations, such as various hardware and / or software elements, circuits, and / or modules. Software includes an ordered list of executable instructions for performing logical functions, and may be implemented for use on any "processor-readable medium" or in connection with an instruction execution system, apparatus, or device, such as a single or multiple core processor or a system including a processor.

[0083] The methods, algorithms, or functional blocks or steps described in connection with the embodiments disclosed herein may be implemented directly in a software module executed by a processor, in hardware, or a combination of both. If implemented in software, the functions may be stored on or transmitted as one or more instructions or codes on a tangible non-transitory computer-readable recording medium. The software modules may reside in Random Access Memory (RAM), Flash memory, Read Only Memory (ROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0084] It will be understood that the illustrated embodiments may be modified in arrangement and detail and combined in any manner necessary, without departing from the principles of the inventive concept as described with reference to the above-mentioned embodiments. Although the above description has focused on specific embodiments, other configurations are also contemplated. In particular, despite descriptions such as "according to an embodiment of the present invention" or the like used herein, such phrases generally refer to possible embodiments and are not intended to limit the inventive concept to the configuration of a specific embodiment. As used herein, such terms refer to the same or different embodiments that can be combined with other embodiments.

[0085] The above-described embodiments are not to be construed as limiting the technical idea of ​​the present invention thereto. Although only a few embodiments have been described, those skilled in the art will fully understand that many modifications to such embodiments are possible without substantially departing from the novel teachings and advantages of the present specification. Therefore, all such modifications are intended to be included within the scope of the technical idea of ​​the present invention as defined in the claims.

[0086] Embodiments of the present invention extend, without limitation, to the following description.

[0087] Statement 1. A solid state drive (SSD) of the present invention comprises a flash storage for data consisting of a plurality of blocks, a controller for managing reading data from the flash storage and writing data to the flash storage, a metadata storage for storing device-based log data for errors in the solid state drive (SSD), and identification firmware executing on a processor and operative to identify suspect blocks among the plurality of blocks in response to the device-based log data.

[0088] Statement 2. The SSD of the present invention includes an SSD according to statement 1, wherein the metadata storage stores device-based log data for only a set of recent errors in the SSD.

[0089] Statement 3. The SSD of the present invention includes an SSD according to statement 2, and when a new error occurs, the oldest entry of the device-based log data is discarded.

[0090] Statement 4. The SSD of the present invention includes an SSD according to statement 2, wherein the metadata storage is further operative to store accurate block-based data regarding errors in the SSD, and the SSD further includes verification firmware executing on the processor, the verification firmware operative to determine whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data.

[0091] Statement 5. The SSD of the present invention includes an SSD according to statement 4, wherein the verification firmware is executed only on suspect blocks.

[0092] Statement 6. The SSD of the present invention includes an SSD according to statement 4, wherein the verification firmware is not executed on any block among the plurality of blocks except for the suspect block.

[0093] Statement 7. The SSD of the present invention includes an SSD according to statement 4, wherein the verification firmware operates to retire suspect blocks in response to the accurate block-based data and the device-based log data.

[0094] Statement 8. The SSD of the present invention includes an SSD according to statement 4, wherein the accurate block-based data includes a counter for the number of errors for each block in the plurality of blocks.

[0095] Statement 9. The SSD of the present invention includes an SSD according to statement 8, and the counters for the number of errors for each block in the plurality of blocks include a read error counter, a write error counter, and a delete error counter for each block in the plurality of blocks.

[0096] Statement 10. The SSD of the present invention includes an SSD according to statement 8, wherein the accurate block-based data includes a counter for the number of errors for each block in the plurality of blocks after the SSD is manufactured.

[0097] Statement 11. The SSD of the present invention includes an SSD according to Statement 4, and the verification firmware implements any one of Random Forest, Logistic Regression, Outlier Detection analysis, and Anomaly Detection analysis on the accurate block-based data and the device-based log data.

[0098] Statement 12. The SSD of the present invention includes an SSD according to statement 4, wherein the identification firmware is operative to identify suspect blocks among the plurality of blocks in response to both the device-based log data and the accurate block-based data.

[0099] Statement 13. The SSD of the present invention includes an SSD according to statement 2, wherein the identification firmware operates to obtain approximate block-based data from the device-based log data.

[0100] Statement 14. The SSD of the present invention includes an SSD according to statement 13, wherein the identification firmware is operative to determine the approximate block-based data as the average block-based data from the device-based log data.

[0101] Statement 15. The SSD of the present invention includes an SSD according to statement 2, wherein the SSD is operative to periodically execute the identification firmware.

[0102] Statement 16. The SSD of the present invention includes an SSD according to statement 15, wherein the SSD is operative to execute the identification firmware at regular time intervals.

[0103] Statement 17. The SSD of the present invention includes an SSD according to statement 15, wherein the SSD is operative to execute the identification firmware after a certain number of errors occur.

[0104] Statement 18. The solid state drive (SSD) of the present invention comprises a flash storage for data consisting of a plurality of blocks, a controller for managing reading and writing of data from and to the flash storage, a metadata storage for storing accurate block-based data for errors in the SSD, and identification firmware that runs on a processor and operates to identify suspect blocks among the plurality of blocks in response to the accurate block-based data.

[0105] Statement 19. The SSD of the present invention includes an SSD according to statement 18, wherein the identification firmware is operative to identify the suspect blocks in response to a total number of errors for the suspect blocks in the accurate block-based data.

[0106] Statement 20. The SSD of the present invention includes an SSD according to statement 18, wherein the accurate block-based data includes a counter for the number of errors for each block in the plurality of blocks.

[0107] Statement 21. The SSD of the present invention includes an SSD according to statement 20, and the counters for the number of errors for each block in the plurality of blocks include a read error counter, a write error counter, and a delete error counter for each block in the plurality of blocks.

[0108] Statement 22. The SSD of the present invention includes an SSD according to statement 21, wherein the identification firmware operates to calculate a total error count from the read error counter, the write error counter, and the delete error counter for the suspect block, and compares the total error counter to a threshold value.

[0109] Statement 23. The SSD of the present invention includes an SSD according to statement 18, wherein the SSD is operative to periodically execute the identification firmware.

[0110] Statement 24. The SSD of the present invention includes an SSD according to statement 23, wherein the SSD is operative to execute the identification firmware at regular time intervals.

[0111] Statement 25. The SSD of the present invention includes an SSD according to statement 23, wherein the SSD is operative to execute the identification firmware after a certain number of errors occur.

[0112] Statement 26. A method of the present invention includes tracking errors in a solid state drive (SSD) including a plurality of blocks, storing device-based log data regarding the errors in the SSD, and identifying suspect blocks among the plurality of blocks in response to the device-based log data.

[0113] Statement 27. The method of the present invention includes the method according to statement 26, wherein storing device-based log data regarding errors in the SSD includes storing device-based log data for only a set of recent errors in the SSD.

[0114] Statement 28. The method of the present invention includes the method according to statement 27, wherein the step of storing device-based log data regarding errors in the SSD further includes the step of discarding the oldest entry in the device-based log data when a new error occurs in the SSD.

[0115] Statement 29. The method of the present invention includes the method according to statement 27, further including storing accurate block-based data regarding errors in the SSD, and, when a suspect block is identified, determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data.

[0116] Statement 30. The method of the present invention includes the method according to statement 29, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data for only the suspect block.

[0117] Statement 31. The method of the present invention includes the method according to statement 29, wherein the step of determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes not determining whether any other blocks are predicted to fail.

[0118] Statement 32. The method of the present invention includes the method according to statement 29, further including the step of retiring suspect blocks based at least in part on the accurate block-based data and the device-based log data.

[0119] Statement 33. The method of the present invention includes the method according to statement 29, wherein storing accurate block-based data regarding errors in the SSD includes storing a counter for the number of errors for each block in the plurality of blocks.

[0120] Statement 34. The method of the present invention includes the method according to statement 33, wherein the step of storing counters for the number of errors for each block in the plurality of blocks includes the step of storing a read error counter, a write error counter, and a delete error counter for each block in the plurality of blocks.

[0121] Statement 35. The method of the present invention includes the method according to statement 33, wherein the step of storing a counter for the number of errors for each block in the plurality of blocks includes storing a counter for the number of errors for each block in the plurality of blocks after the SSD is manufactured.

[0122] Statement 36. The method of the present invention includes the method according to Statement 29, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes applying any one of Random Forest, Logistic Regression, Outlier Detection analysis, and Anomaly Detection analysis to the accurate block-based data and the device-based log data.

[0123] Statement 37. The method of the present invention includes the method according to statement 29, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes determining whether the suspect block is predicted to fail in response to spatial locality information for the suspect block.

[0124] Statement 38. The method of the present invention includes the method according to statement 27, wherein identifying suspect blocks among the plurality of blocks in response to the device-based log data includes obtaining approximate block-based data from the device-based log data.

[0125] Statement 39. The method of the present invention includes the method according to statement 38, wherein obtaining the approximate block-based data from the device-based log data includes determining an average block-based data from the device-based log data.

[0126] Statement 40. The method of the present invention, including the method according to statement 27, further includes periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data.

[0127] Statement 41. The method of the present invention includes the method according to statement 40, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks at regular time intervals.

[0128] Statement 42. The method of the present invention includes the method according to statement 40, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks after a certain number of errors have occurred.

[0129] Statement 43. A method of the present invention includes tracking errors in a solid state drive (SSD) including a plurality of blocks, storing precise device-based log data regarding the errors in the SSD, and identifying suspect blocks among the plurality of blocks in response to the precise block-based log data.

[0130] Statement 44. The method of the present invention includes the method according to statement 43, wherein the step of identifying suspect blocks among the plurality of blocks in response to the accurate block-based data includes the steps of calculating a total error count for the suspect blocks from the accurate block-based data, and comparing the total error count to a threshold error count.

[0131] Statement 45. The method of the present invention includes the method according to statement 44, wherein the step of calculating a total error count for the suspect block from the accurate block-based data includes the steps of determining a read error counter, a write error counter, and a delete error counter for the suspect block from the accurate block-based data, and summing the read error counter, write error counter, and delete error counter to calculate a total error count for the suspect block.

[0132] Statement 46. The method of the present invention, including the method according to statement 43, further includes periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data.

[0133] Statement 47. The method of the present invention includes the method according to statement 46, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks at regular time intervals.

[0134] Statement 48. The method of the present invention includes the method according to statement 46, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks after a certain number of errors have occurred.

[0135] Statement 49. An article of the invention includes a non-transitory storage medium having stored thereon instructions that cause a machine to perform a method, the method being performed by the machine with the instructions, the method including tracking errors in a solid state drive (SSD) including a plurality of blocks, storing device-based log data regarding the errors in the SSD, and identifying suspect blocks among the plurality of blocks in response to the device-based log data.

[0136] Statement 50. An article of the invention includes the article according to statement 49, wherein storing device-based log data regarding errors in the SSD includes storing device-based log data for only a set of recent errors in the SSD.

[0137] Statement 51. An article of the invention includes the article according to statement 50, wherein storing device-based log data regarding errors in the SSD further includes discarding the oldest entry in the device-based log data when a new error occurs in the SSD.

[0138] Statement 52. An article of the invention includes the article according to statement 50, wherein the non-transitory storage medium further includes additional instructions stored on the non-transitory storage medium, and a method performed by the machine with the additional instructions includes storing precise block-based data regarding errors in the SSD, and, upon identification of a suspect block, determining whether the suspect block is predicted to fail in response to both the precise block-based data and the device-based log data.

[0139] Statement 53. Articles of the invention include articles according to statement 52, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based data for only the suspect block.

[0140] Statement 54. Articles of the invention include articles according to statement 52, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes not determining whether any other blocks are predicted to fail.

[0141] Statement 55. An article of the invention includes the article according to statement 52, wherein the non-transitory storage medium further includes additional instructions stored on the non-transitory storage medium, and the method performed by the machine with the additional instructions includes retiring suspect blocks based at least in part on the accurate block-based data and the device-based log data.

[0142] Statement 56. An article of the invention includes the article according to statement 52, wherein storing accurate block-based data regarding errors in the SSD includes storing a counter for the number of errors for each block in the plurality of blocks.

[0143] Statement 57. An article of the invention includes the article according to statement 56, wherein the step of storing counters for the number of errors for each block in the plurality of blocks includes storing a read error counter, a write error counter, and a delete error counter for each block in the plurality of blocks.

[0144] Statement 58. An article of the invention includes the article according to statement 56, wherein storing a counter for the number of errors for each block in the plurality of blocks includes storing a counter for the number of errors for each block in the plurality of blocks after the SSD is manufactured.

[0145] Statement 59. An article of the invention includes the article according to statement 52, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes applying any one of Random Forest, Logistic Regression, Outlier Detection analysis, and Anomaly Detection analysis to the accurate block-based data and the device-based log data.

[0146] Statement 60. An article of the invention includes an article according to statement 52, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data includes determining whether the suspect block is predicted to fail in response to spatial locality information for the suspect block.

[0147] Statement 61. An article of the invention includes the article according to statement 50, wherein identifying suspect blocks among the plurality of blocks in response to the device-based log data includes obtaining approximate block-based data from the device-based log data.

[0148] Statement 62. Articles of the invention include the article according to statement 61, wherein obtaining the approximate block-based data from the device-based log data includes determining an average block-based data from the device-based log data.

[0149] Statement 63. An article of the invention includes the article according to statement 50, wherein the non-transitory storage medium further includes additional instructions stored on the non-transitory storage medium, and the method performed by the machine with the additional instructions includes periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data.

[0150] Statement 64. An article of the invention includes the article according to statement 63, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks at regular time intervals.

[0151] Statement 65. An article of the invention includes the article according to statement 63, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks after a certain number of errors have occurred.

[0152] Statement 66. An article of the invention includes a non-transitory storage medium having stored thereon instructions for causing a machine to perform a method, the method being performed by the machine with the instructions, the method comprising tracking errors in a solid state drive (SSD) including a plurality of blocks, storing precise device-based log data regarding the errors in the SSD, and identifying suspect blocks among the plurality of blocks in response to the precise block-based log data.

[0153] Statement 67. An article of the invention includes the article according to statement 66, wherein identifying suspect blocks among the plurality of blocks in response to the accurate block-based data includes calculating a total error count for the suspect blocks from the accurate block-based data, and comparing the total error count to a threshold error count.

[0154] Statement 68. The article of the invention includes the article according to statement 67, wherein the step of calculating a total error count for the suspect block from the accurate block-based data includes the steps of determining a read error counter, a write error counter, and a delete error counter for the suspect block from the accurate block-based data, and summing the read error counter, write error counter, and delete error counter to calculate a total error count for the suspect block.

[0155] Statement 69. An article of the invention includes the article according to statement 66, wherein the non-transitory storage medium further includes additional instructions stored on the non-transitory storage medium, and the method performed by the machine with the additional instructions includes periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data.

[0156] Statement 70. An article of the invention includes the article according to statement 69, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks at regular time intervals.

[0157] Statement 71. An article of the invention includes the article according to statement 69, wherein the step of periodically identifying new suspect blocks among the plurality of blocks in response to the device-based log data includes checking the plurality of blocks for suspect blocks after a certain number of errors have occurred.

[0158] Although the embodiments of the present invention have been described in detail above with reference to the drawings, the present invention is not limited to the above-described embodiments and can be modified in various ways without departing from the technical spirit of the present invention. [Explanation of symbols]

[0159] 105 processors 110 Memory 115 Solid State Drive (SSD) 120 Machines 125 Memory Controller 130 Device Driver 305 Host Interface Logic 310 SSD Controller Channel 315-1~315-4 320-1~320-8 Flash memory chips Block 325~330 335 Flash Conversion Layer 340 Metadata Storage 345 Identification Firmware 350 Verified Firmware 405 (exact) block-based data 410-1~410-3 Counter 505 Device-Based Log Data 510-1~510-3 Error 515 SMART log data 605 (approximate) block-based data 610 results

Claims

1. Flash storage for data that consists of multiple blocks; a controller that manages reading data from the flash storage and writing data to the flash storage; A metadata storage that stores device-based log data for errors in a solid state drive (SSD); and identification firmware executing on a processor and operative to identify suspect blocks among the plurality of blocks in response to the device-based log data.

2. 2. The SSD of claim 1, wherein the metadata storage stores device-based log data for only a set of recent errors on the SSD.

3. the metadata storage is further operative to store accurate block-based data regarding the errors in the SSD; the SSD further includes verification firmware executing on the processor; 3. The SSD of claim 2, wherein the validation firmware operates to determine whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data.

4. 4. The SSD of claim 3, wherein the verification firmware is executed only on the suspect blocks.

5. 4. The SSD of claim 3, wherein the validation firmware operates to retire the suspect blocks in response to the correct block-based data and the device-based log data.

6. 4. The SSD of claim 3, wherein the verification firmware implements any one of a Random Forest, a Logistic Regression, an Outlier Detection analysis, and an Anomaly Detection analysis on the accurate block-based data and the device-based log data.

7. 3. The SSD of claim 2, wherein the identification firmware operates to obtain approximate block-based data from the device-based log data.

8. 3. The SSD of claim 2, wherein the SSD is operative to periodically execute an identification firmware.

9. Tracking errors in a solid state drive (SSD) that includes a number of blocks; storing device-based log data regarding the errors in the SSD; and identifying suspect blocks among said plurality of blocks in response to said device-based log data.

10. 10. The method of claim 9, wherein storing device-based log data regarding the errors in the SSD comprises storing device-based log data for only a set of most recent errors in the SSD.

11. storing accurate block-based data regarding the error in the SSD; 11. The method of claim 10, further comprising: once the suspect block is identified, determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data.

12. 12. The method of claim 11, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data comprises determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data for only the suspect block.

13. 12. The method of claim 11, further comprising retiring the suspect blocks based at least in part on the accurate block-based data and the device-based log data.

14. 12. The method of claim 11, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data comprises applying one of a Random Forest, a Logistic Regression, an Outlier Detection analysis, and an Anomaly Detection analysis to the accurate block-based data and the device-based log data.

15. 11. The method of claim 10, wherein identifying suspect blocks among the plurality of blocks in response to the device-based log data comprises obtaining approximate block-based data from the device-based log data.

16. 11. The method of claim 10, further comprising periodically identifying new suspect blocks among said plurality of blocks in response to said device-based log data.

17. An article including a non-transitory storage medium having instructions stored thereon that cause a machine to perform a method, comprising: The method implemented by the machine in accordance with the instructions comprises: Tracking errors in a solid state drive (SSD) that includes a number of blocks; storing device-based log data regarding the errors in the SSD; and identifying suspect blocks among said plurality of blocks in response to said device-based log data.

18. 20. The article of claim 17, wherein storing device-based log data regarding the errors in the SSD comprises storing device-based log data for only a set of most recent errors in the SSD.

19. the non-transitory storage medium further includes additional instructions stored on the non-transitory storage medium; The method implemented by the machine in accordance with the additional instructions comprises: storing accurate block-based data regarding the error in the SSD; 20. The article of claim 18, further comprising: once the suspect block is identified, determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data.

20. 20. The article of claim 19, wherein determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data comprises determining whether the suspect block is predicted to fail in response to both the accurate block-based data and the device-based log data for only the suspect block.

Citation Information

Patent Citations

  • Memory device

    JP2010237854A

  • Handling of error during device booting-up from nonvolatile memory

    JP2012069107A

  • Management of data placement to flash-based storage devices through use

    JP2014522537A

  • Storage system and method for monitoring memory

    JP2019003649A

  • Workload adaptable type overprovisioning in solid state storage drive array

    JP2019169141A