A method for identifying implicit failure of a flash memory chip based on an SSD operation log
By using a grouping and dynamic calculation method based on SSD operating logs, local aging faults in flash memory chips can be identified, solving the problem of difficult identification of hidden faults in existing technologies and improving the performance stability and lifespan of SSDs.
Patent Information
- Application Number
- CN202611377441.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot identify hidden faults such as premature aging of local blocks in flash memory chips, which can lead to abnormal phenomena such as intermittent read/write stuttering, random speed drops, and read/write retries, affecting the lifespan of SSDs and the stability of storage systems.
By using SSD runtime logs as a basis, physical storage blocks are grouped by production batch and remaining erasable/write cycles. The baseline read/write response time and response time dispersion are dynamically calculated. Combined with the number of read/write retries, local aging candidate blocks are identified and the physical addresses of hidden faulty blocks are output.
Effectively identify and warn of potential faulty blocks, improve SSD performance and stability, extend lifespan, and reduce the risk of system lag and business interruption.
Smart Images

Figure CN123178202A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of latent fault identification technology, and specifically to a method for identifying latent faults in flash memory chips based on SSD operation logs. Background Technology
[0002] Currently, SSDs, with their advantages of high-speed read / write and low power consumption, have been widely used in core scenarios such as servers, terminal storage, and industrial storage. The operational stability of flash memory chips directly determines the data reliability and operating efficiency of the storage system.
[0003] Existing SSD fault identification technologies mainly rely on methods such as determining the overall PE lifespan threshold of flash memory chips, marking hardware bad blocks, and screening fatal error logs to conduct fault detection. They can effectively identify obvious faults such as complete aging of flash memory chips, complete bad blocks, and hardware damage, and can meet the basic fault diagnosis needs of conventional storage devices. They are currently the mainstream flash memory fault monitoring methods in the industry.
[0004] However, existing technologies have significant technical flaws. They cannot identify hidden faults caused by premature aging of local flash memory blocks. In actual operation, the overall PE lifespan of the SSD flash memory chips has not yet been exhausted, and the overall hardware condition meets the standards. However, due to the uneven read and write load, some storage blocks are repeatedly erased and written at high frequency, resulting in premature aging and deterioration. Existing monitoring mechanisms cannot identify such quasi-faulty blocks and will not mark them as bad blocks, allowing them to continue to be used. This leads to abnormal phenomena such as intermittent read and write stuttering, random speed drops, and read and write retries. Furthermore, such hidden faults do not have fatal system error logs and cannot be captured by conventional detection methods. Long-term operation can easily lead to data read and write anomalies, silent file corruption, and other problems, significantly reducing the lifespan of the SSD and the stability of the storage system. This makes it difficult to meet the requirements for high-precision and high-reliability flash memory fault prediction. Summary of the Invention
[0005] The purpose of this invention is to provide a method for identifying latent faults in flash memory chips based on SSD operation logs, thereby solving the following technical problems.
[0006] The objective of this invention can be achieved through the following technical solutions: A method for identifying latent faults in flash memory chips based on SSD operation logs includes the following steps: Step S1: Filter out normal operation cycles with no fault records from the SSD controller's operation log, and obtain the storage block information of each physical storage block within the normal operation cycle; group each physical storage block into several production batches based on the storage block information, and group each production batch into several peer block groups. Step S2: For any peer block group, based on the storage block information of each physical storage block in the peer block group, obtain the baseline read / write response time and response time dispersion of the peer block group during the normal operation cycle, and determine the speed deviation threshold of the peer block group. Step S3: For any physical storage block within the same peer block group, compare the average read / write response time of the physical storage block during the normal operation cycle with the baseline read / write response time to determine whether the physical storage block is a local aging candidate block; Step S4: Extract all corrupted physical storage blocks from all local aging candidate blocks, and record the remaining local aging candidate blocks as hidden fault blocks, and output the physical address of each hidden fault block.
[0007] As a further aspect of the present invention: the normal operation cycle is a statistical cycle in which no fatal read / write error records are found in the operation log, and the storage block information includes the generation batch identifier, physical address, number of erase / write operations, current remaining number of erase / write operations, read / write response time, and number of read / write retries.
[0008] As a further aspect of the present invention: the process of primary grouping and secondary grouping includes: The first-level grouping is based on the production batch identifier of each physical storage block, and several physical storage blocks belonging to the same production batch identifier are recorded as one production batch. Several erase count intervals are preset. For each physical storage block in the same production batch, based on the current remaining erase count of each physical storage block, several physical storage blocks whose current remaining erase count belongs to the same erase count interval are recorded as the same peer block group.
[0009] As a further aspect of the present invention: the process of obtaining the baseline read / write response time and response time dispersion of the peer block group during normal operation includes: The baseline read / write response time is the average read / write response time of each physical storage block within the peer block group, denoted as the average response time. The response time dispersion is the standard deviation of the average response time of each physical storage block within the peer block group.
[0010] As a further aspect of the present invention, the process of determining the speed deviation threshold of the peer block group includes setting a preset percentage threshold, wherein the speed deviation threshold is the product of the response time dispersion and the percentage threshold.
[0011] As a further aspect of the present invention: the process of determining whether the physical storage block is a candidate block for local aging includes: The average read / write response time of each read / write operation occurring in the physical storage block during the normal operation cycle is obtained and recorded as the average read / write response time. The difference between the average read / write response time and the baseline read / write response time is obtained, and the absolute value of the difference is recorded as the absolute value of the difference. If the absolute value of the difference of the physical storage block is greater than the speed deviation threshold and the number of read / write retries of the physical storage block is higher than the preset retry number baseline value, then the physical storage block is recorded as a local aging candidate block; otherwise, the next physical storage block is evaluated.
[0012] As a further aspect of the present invention: the preset retry count benchmark value is the average of the read / write retry counts of each physical storage block within the peer block group.
[0013] As a further aspect of the present invention: the bad physical storage block is a physical storage block that has been marked as a bad block and stopped being allocated in the SSD controller.
[0014] The beneficial effects of this invention are: This invention effectively solves the problem of difficult identification of hidden faults such as intermittent read / write stuttering, random read / write speed drops, and occasional read / write retries caused by premature aging of local storage blocks when the total erase / write lifespan of flash memory chips has not been exhausted and the controller has not marked bad blocks. This invention no longer relies on a uniform absolute lifespan threshold or static bad block marking, but instead constructs peer block groups based on production batches and the current remaining erase / write cycles. Within each group, it dynamically calculates the baseline read / write response time, response time dispersion, and retry count baseline value, and determines the speed deviation threshold that varies with the group. By comparing the average read / write response time of a single physical storage block with the peer baseline value... By combining the degree of deviation with an abnormal increase in the number of read / write retries for dual judgment, this invention can accurately screen out locally prematurely aged candidate blocks that are significantly slower than blocks of the same age but have not yet been marked as bad blocks by the controller. It further eliminates physical storage blocks that have been marked by the bad block management module and finally outputs the physical address of the hidden faulty block. This invention can provide early warning of potential faulty blocks before the SSD experiences fatal errors, providing a refined basis for wear leveling, garbage collection and bad block management. It significantly reduces disk read / write jitter caused by local performance degradation, improves the performance stability and data reliability of SSDs in the later stages of their life cycle, extends the effective lifespan of solid-state storage devices, and reduces the risk of system lag and business interruption caused by hidden faults. Attached Figure Description
[0015] The invention will now be further described with reference to the accompanying drawings.
[0016] Figure 1 This is a schematic diagram illustrating the steps of a method for identifying latent faults in flash memory chips based on SSD operation logs according to the present invention. Figure 2 This is a schematic diagram of the structure of a method for identifying latent faults in flash memory chips based on SSD operation logs, according to the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Please see Figure 1 As shown, this invention is a method for identifying latent faults in flash memory chips based on SSD operation logs, comprising the following steps: Step S1: Filter out normal operation cycles with no fault records from the SSD controller's operation log, and obtain the storage block information of each physical storage block within the normal operation cycle; group each physical storage block into several production batches based on the storage block information, and group each production batch into several peer block groups. It should be noted that, by filtering out periods with fatal read / write errors from the SSD controller's operation logs, the stable operation period is selected as the normal operation period. Within the normal operation period, storage block information corresponding to all physical storage blocks is collected. Primary grouping is performed based on the production batch identifier, ensuring that storage blocks within the same group have consistent native hardware characteristics and factory performance baselines. Secondary grouping is then performed on each production batch based on the current remaining number of erase / write cycles, forming several peer block groups. This dual grouping eliminates the interference of different manufacturing processes and different overall wear levels on the performance benchmark. In a preferred embodiment of the present invention, the normal operation cycle is a statistical cycle in which no fatal read / write error records are found in the operation log, and the storage block information includes the generation batch identifier, physical address, number of erase / write operations, current remaining number of erase / write operations, read / write response time, and number of read / write retries; The statistical period for which no fatal read / write error records are recorded is the continuous running time period during which no record of controller bad block mark, ECC uncorrectable error, or read / write command timeout exists in the SSD controller's operation log. It should be noted that the selected normal operating period is a continuous statistical period confirmed by log review to have no fatal read / write errors. The collected storage block information covers multiple dimensions, including generation batch identifier, physical address, number of erase / write cycles, current remaining erase / write cycles, read / write response time, and number of read / write retries. During execution, the collected storage block information is first validated to remove invalid data with missing records or abnormal value jumps before proceeding to the subsequent grouping process. This ensures that the analysis data is taken from the stable operating state of the device and excludes data deviations caused by occasional system failures or external interference. The process of primary grouping and secondary grouping includes: The first-level grouping is based on the production batch identifier of each physical storage block, and several physical storage blocks belonging to the same production batch identifier are recorded as one production batch. Several erase count intervals are preset. For each physical storage block in the same production batch, based on the current remaining erase count of each physical storage block, several physical storage blocks whose current remaining erase count belongs to the same erase count interval are recorded as the same peer block group. The number of erasable counts is determined based on the distribution of the current remaining number of erasable write counts for each physical storage block within the production batch group. The lengths of adjacent erasable count intervals may be equal or unequal. It should be noted that the first-level grouping completes clustering by parsing the production batch identifier field of each physical storage block, grouping storage blocks from the same production batch into the same set, ensuring that storage blocks within the same group have consistent manufacturing processes and native performance baselines; the second-level grouping further divides storage blocks within the same production batch based on a preset range of remaining erase and write cycles, forming multiple peer block groups; if a storage block with a missing batch identifier appears during execution, batch correction can be performed by combining its manufacturing characteristic parameters and cumulative erase and write records to ensure grouping consistency; it eliminates performance baseline differences caused by different manufacturing processes and different overall wear levels, constructs comparison units with equal reference benchmarks, and avoids judgment errors caused by cross-batch and cross-wear stage comparisons; Step S2: For any peer block group, based on the storage block information of each physical storage block in the peer block group, obtain the baseline read / write response time and response time dispersion of the peer block group during the normal operation cycle, and determine the speed deviation threshold of the peer block group. It should be noted that, for each peer block group after division, based on the read and write response time data of all physical storage blocks in the peer block group during normal operation cycle, the baseline read and write response time and response time dispersion of the peer block group are statistically obtained. Then, combined with the preset percentage coefficient, the speed deviation threshold corresponding to the peer block group is calculated. The group-specific performance benchmark and judgment threshold are dynamically generated based on the actual operation data of the peer block group, rather than using a globally unified fixed threshold, which can adapt to the performance characteristics of storage blocks in different batches and different wear stages. In a preferred embodiment of the present invention, the process of obtaining the baseline read / write response time and response time dispersion of the peer block group during normal operation includes: The baseline read / write response time is the average read / write response time of each physical storage block within the peer block group, denoted as the average response time. The response time dispersion is the standard deviation of the average response time of each physical storage block within the peer block group. It should be noted that the baseline read / write response time is obtained by taking the arithmetic mean of the read / write response times of all physical storage blocks within the same block group, and the response time dispersion is obtained by calculating the standard deviation of the average response time of each storage block within the group. Before performing the statistics, outlier values are filtered out of the time data within the group to remove extreme abnormal data that deviates from the normal range, and then the baseline value and dispersion are calculated. A dynamic performance baseline is generated based on the actual operating data of the same block group, rather than using a globally fixed threshold, so that the baseline value is adapted to the inherent performance characteristics of the corresponding batch and the corresponding wear stage. In a preferred embodiment of the present invention, the process of determining the speed deviation threshold of the peer block group includes setting a preset percentage threshold, wherein the speed deviation threshold is the product of the response time dispersion and the percentage threshold. It should be noted that the speed deviation threshold is obtained by multiplying a preset percentage threshold by the response time dispersion of the corresponding peer block group. Each peer block group generates its own judgment threshold. During execution, a minimum threshold fallback mechanism is set. When the response time dispersion within a group is too small, causing the calculated threshold to be too strict, the minimum threshold is used for judgment. When the dispersion within a group is too large, the percentage threshold can be dynamically adjusted according to the number of storage blocks in the group to ensure judgment sensitivity. This allows the judgment threshold to be dynamically adjusted according to the performance fluctuation within the group, taking into account both fault detection sensitivity and false positive suppression capability, and adapting to the needs of hidden fault identification under different operating conditions and different wear levels. It is worth noting that the speed deviation threshold for different peer block groups varies depending on their respective response time dispersion or reference read / write response time; Step S3: For any physical storage block within the same peer block group, compare the average read / write response time of the physical storage block during the normal operation cycle with the baseline read / write response time to determine whether the physical storage block is a local aging candidate block; It should be noted that for each physical storage block within a peer block group, the average response time of all read and write operations during its normal operating cycle is calculated. The difference between the average response time and the baseline read and write response time of the peer block group is calculated and the absolute value is taken. At the same time, the read and write retry count data of the physical storage block is retrieved. When the absolute value of the time difference exceeds the corresponding speed deviation threshold and the number of read and write retry counts is higher than the baseline level within the group, the physical storage block is marked as a candidate block for local aging. Combining the two characteristics of response latency deviation and internal retry behavior for dual judgment can effectively distinguish between normal performance fluctuations and performance degradation caused by local aging, reducing the probability of false judgment. In a preferred embodiment of the present invention, the process of determining whether the physical storage block is a local aging candidate block includes: The average read / write response time of each read / write operation occurring in the physical storage block during the normal operation cycle is obtained and recorded as the average read / write response time. The difference between the average read / write response time and the baseline read / write response time is obtained, and the absolute value of the difference is recorded as the absolute value of the difference. If the absolute value of the difference of the physical storage block is greater than the speed deviation threshold, and the number of read / write retries of the physical storage block is higher than the preset retry number baseline value, then the physical storage block is recorded as a local aging candidate block; otherwise, the next physical storage block is evaluated. Specifically, if the difference between the average read / write response time of the physical storage block and the baseline read / write response time exceeds the speed deviation threshold, then: The average read / write response time of the physical storage block is greater than the baseline read / write response time, and the difference between the average read / write response time of the physical storage block and the baseline read / write response time is greater than the speed deviation threshold. It should be noted that the local aging candidate block is determined using a dual-condition joint judgment. First, the absolute value of the difference between the average read / write response time of a single physical storage block and the benchmark value within the group is calculated. Then, the read / write retries of the physical storage block are compared with the preset benchmark value. If both conditions are met, it is marked as a local aging candidate block; otherwise, the next storage block is judged. During the execution process, the retry frequency per unit time within the statistical period is used instead of the total number of retries for judgment to eliminate counting interference caused by occasional single retries. Through dual verification of response latency deviation and internal retry behavior, the performance degradation caused by normal performance fluctuations and local aging is distinguished. The preset retry count baseline value is the average of the read / write retries of each physical storage block within the peer block group; It should be noted that the preset retry count baseline is obtained by calculating the arithmetic mean of the read / write retries of all physical storage blocks in the same block group, which together with the speed deviation threshold constitutes the basis for candidate block judgment. During the execution process, extreme samples with significantly high retry counts within the group can be removed first, and then the average value can be calculated as the baseline to avoid blocks that have already shown signs of degradation raising the baseline level. A retry judgment baseline that matches the healthy operating level of the same group is established so that the judgment standard for the retry count is adapted to the overall operating status of the corresponding group. Step S4: Extract all corrupted physical storage blocks from all local aging candidate blocks, and record the remaining local aging candidate blocks as hidden fault blocks, and output the physical address of each hidden fault block. It should be noted that the marking records of the built-in bad block management module of the SSD controller are retrieved, and physical storage blocks that have been officially marked as bad blocks and have stopped being written to are removed from all local aging candidate blocks. The remaining candidate blocks are identified as flash memory hidden fault blocks, and the physical address information corresponding to each hidden fault block is output. The interference of the identified explicit bad blocks is eliminated, and the hidden fault units that are in the early stage of performance degradation and have not yet triggered the bad block marking mechanism are accurately located. It is worth noting that the time when the hidden fault block is determined is when the remaining number of erase / write cycles is greater than zero; In a preferred embodiment of the present invention, the bad physical storage block is a physical storage block that has been marked as a bad block and stopped being allocated in the SSD controller; It should be noted that the faulty physical storage blocks are taken from the bad block record table of the bad block management module built into the SSD controller. Specifically, these are physical storage blocks that have been officially marked as bad blocks and have stopped being written to, allocated, and used for user data storage. When executing the removal process, the confirmation queue of the bad block management module is retrieved simultaneously, and storage blocks in the bad block verification stage are also included in the removal scope. This process eliminates interference from identified explicit bad blocks and accurately filters out latent fault units that are in the early stages of performance degradation and have not yet triggered the official bad block marking mechanism, ensuring that the faulty blocks output in the end all fall into the category of latent faults that cannot be detected by conventional detection methods. This invention solves the technical problem of difficulty in identifying latent faults such as intermittent read / write stuttering, random speed drops, and occasional read / write retries caused by premature aging of local storage blocks when the total erase / write lifespan of flash memory chips has not been exhausted and the controller has not marked bad blocks. By constructing peer block groups through dual grouping of production batches and remaining erase / write cycles, the performance baseline differences caused by different production processes and different overall wear levels are eliminated, and a comparison unit with a unified reference basis is established. Based on the actual operating data of the same group, a baseline response time, response time dispersion, and corresponding speed deviation threshold are dynamically generated. Combined with the response latency deviation degree and read / write retry count characteristics for dual judgment, it can accurately screen out locally aged units that have not yet triggered the official bad block marking mechanism. Finally, after removing explicit bad blocks, the physical address of the latent fault block is output.
[0019] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the present invention should still fall within the scope of the present invention.
Claims
1. A method for identifying latent faults in flash memory chips based on SSD operation logs, characterized in that, Includes the following steps: Step S1: Filter out normal operation cycles with no fault records from the SSD controller's operation log, and obtain the storage block information of each physical storage block within the normal operation cycle; group each physical storage block into several production batches based on the storage block information, and group each production batch into several peer block groups. Step S2: For any peer block group, based on the storage block information of each physical storage block in the peer block group, obtain the baseline read / write response time and response time dispersion of the peer block group during the normal operation cycle, and determine the speed deviation threshold of the peer block group. Step S3: For any physical storage block within the same peer block group, compare the average read / write response time of the physical storage block during the normal operation cycle with the baseline read / write response time to determine whether the physical storage block is a local aging candidate block; Step S4: Extract all corrupted physical storage blocks from all local aging candidate blocks, and record the remaining local aging candidate blocks as hidden fault blocks, and output the physical address of each hidden fault block.
2. The method for identifying latent faults in flash memory chips based on SSD operation logs according to claim 1, characterized in that, In step S1, the normal operation cycle is the statistical cycle in which no fatal read / write error records are found in the operation log. The storage block information includes the generation batch identifier, physical address, number of erase / write operations, current remaining number of erase / write operations, read / write response time, and number of read / write retries.
3. The method for identifying latent faults in flash memory chips based on SSD operation logs according to claim 2, characterized in that, In step S1, the process of primary grouping and secondary grouping includes: The first-level grouping is based on the production batch identifier of each physical storage block, and several physical storage blocks belonging to the same production batch identifier are recorded as one production batch. Several erase count intervals are preset. For each physical storage block in the same production batch, based on the current remaining erase count of each physical storage block, several physical storage blocks whose current remaining erase count belongs to the same erase count interval are recorded as the same peer block group.
4. The method for identifying latent faults in flash memory chips based on SSD operation logs according to claim 2, characterized in that, In step S2, the process of obtaining the baseline read / write response time and response time dispersion of the peer block group during normal operation includes: The baseline read / write response time is the average read / write response time of each physical storage block within the peer block group, denoted as the average response time. The response time dispersion is the standard deviation of the average response time of each physical storage block within the peer block group.
5. The method for identifying latent faults in flash memory chips based on SSD operation logs according to claim 1, characterized in that, In step S2, the process of determining the speed deviation threshold of the peer block group includes setting a preset percentage threshold, wherein the speed deviation threshold is the product of the response time dispersion and the percentage threshold.
6. The method for identifying latent faults in flash memory chips based on SSD operation logs according to claim 2, characterized in that, In step S3, the process of determining whether the physical storage block is a local aging candidate block includes: The average read / write response time of each read / write operation occurring in the physical storage block during the normal operation cycle is obtained and recorded as the average read / write response time. The difference between the average read / write response time and the baseline read / write response time is obtained, and the absolute value of the difference is recorded as the absolute value of the difference. If the absolute value of the difference of the physical storage block is greater than the speed deviation threshold and the number of read / write retries of the physical storage block is higher than the preset retry number baseline value, then the physical storage block is recorded as a local aging candidate block; otherwise, the next physical storage block is evaluated.
7. The method for identifying latent faults in flash memory chips based on SSD operation logs according to claim 6, characterized in that, In step S3, the preset retry count baseline value is the average of the read / write retry counts of each physical storage block within the peer block group.
8. The method for identifying latent faults in flash memory chips based on SSD operation logs according to claim 1, characterized in that, In step S4, the bad physical storage block is a physical storage block that has been marked as a bad block and stopped being allocated in the SSD controller.
