Method and system for dynamic configuration of error correction strength based on nand wear state awareness
By generating page-level wear state vectors and calculating error risk values, the error correction strength of NAND flash memory is dynamically configured, solving the problem of mismatched error correction strength configuration in existing technologies and improving the performance and reliability of data storage systems.
Patent Information
- Application Number
- CN202611673899.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the error correction strength configuration scheme of NAND flash memory fails to make fine-grained matching based on the wear state of physical pages and the differentiated protection requirements of the data to be written, resulting in redundant error correction overhead in the early stage of wear or inability to effectively correct errors in the later stage of wear, affecting data reliability.
By acquiring the page state data of candidate physical pages and the protection attributes of the data to be written, a page-level wear state vector is generated, the bit error risk value is calculated, and an error correction configuration file is dynamically selected, including error correction strength, bit rate, and read retry parameters. The mapping table is then used to establish a correspondence between logical addresses and error correction configuration files, thereby achieving precise matching between error correction strength, wear state, and data protection requirements.
This technology enables dynamic adjustment of error correction intensity in NAND flash memory based on wear status and data type, optimizing the performance and reliability of the storage system, reducing redundant error correction overhead, and improving the error correction capability of data at different wear stages.
Smart Images

Figure CN123178159A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data storage technology, and more specifically, to a method and system for dynamically configuring error correction intensity based on NAND wear state awareness. Background Technology
[0002] NAND flash memory is widely used in the storage field due to its advantages such as high density, large capacity, and low power consumption. However, with the continuous shrinking of storage cell size and the development of multi-bit storage technology, its original bit error rate has increased significantly, posing a serious challenge to data reliability. To address this, error correction code technology is commonly deployed in flash memory controllers. The bit error characteristics of NAND flash memory exhibit significant spatiotemporal dynamic changes: in the time dimension, the accumulation of erase / write cycles, the extension of data retention time, and read interference effects all lead to a gradual deterioration of the bit error rate; in the spatial dimension, due to process deviations and uneven wear leveling effects, there are significant differences in the wear degree and bit error rate of different erase blocks and even different physical pages within the same erase block.
[0003] To address the bit error rate issue in NAND flash memory, current technologies primarily employ a fixed error correction strength approach, which uniformly configures the entire storage system with a fixed ECC code capability. This "one-size-fits-all" approach has significant limitations: if the error correction strength is set too high, redundant error correction overhead occurs during data writing in the early stages of flash memory lifespan or in low-wear pages, including additional storage space usage, increased encoding latency, and increased decoding computation, thus impacting overall system performance; if the error correction strength is set too low, it cannot cope with the high bit error rate in the later stages of flash memory lifespan or in high-wear scenarios, potentially leading to uncorrectable data errors and permanent data loss.
[0004] To overcome the aforementioned shortcomings, existing patents have proposed dynamic error correction schemes. For example, patent CN121747671A (NAND Wear Leveling Method Based on Integrated Circuit ECC and Read Delay) obtains the read delay data and error correction code usage of the three-layer cell pages of the target block in the NAND flash memory chip. Based on the read delay increment and error correction code increment of the middle layer page, and combined with the read delay difference between the middle layer page and the lower layer page, it calculates the health index of the target block and divides the target block into multiple health levels. During the data reading process, it monitors the deviation between the current read delay and the specified read delay in real time, and selects the error correction strength level of the error correction code according to the degree of deviation. For example, in patent CN119440906A (Dynamic Error Correction Method, Controller, and Storage System Applicable to 3D NAND Flash Memory), polar code encoding is performed on the data to be written to the 3D NAND flash memory during the encoding stage; during the decoding stage, the bit error rate of the SCL decoding algorithm at different list lengths under the current raw bit error rate of the 3D NAND flash memory is obtained, and list lengths with bit error rates lower than a preset performance threshold are selected, and the list length of the SCL decoding algorithm is set to the selected minimum length. However, the above schemes all use the read delay deviation or the raw bit error rate during the read operation as the sole basis for error correction configuration: CN121747671A selects the error correction strength level only based on the read delay deviation, and CN119440906A adjusts the SCL decoding list length only based on the raw bit error rate. Neither of them fully considers the differentiated reliability protection requirements of different data—different data types such as system metadata and user log data have different reliability requirements, and a unified error correction strategy cannot achieve a fine-grained match between data protection levels and error correction resources. Furthermore, the above scheme only dynamically adjusts a single parameter (error correction strength level or SCL list length) in the decoding stage, failing to achieve multi-dimensional comprehensive configuration of error correction strength, bit rate, and read retry parameters. It also fails to establish a mapping relationship between logical address, physical page, and error correction configuration file, making it impossible to maintain consistency of error correction configuration between writing and reading.
[0005] In summary, how to dynamically configure and adapt the error correction strength based on the fine-grained wear state of NAND flash physical pages and the differentiated protection requirements of the data to be written, and maintain the consistency of the error correction configuration between writing and reading, is a technical problem that NAND flash storage systems urgently need to solve. Summary of the Invention
[0006] The purpose of this application is to provide a method and system for dynamically configuring error correction intensity based on NAND wear state awareness. This method acquires page state data of candidate physical pages (including erase / write counts of the erase block, programming operation statistics, data retention time, and read operation statistics) and data protection attributes of the data to be written (including retention time level and read reliability level). It then generates a page-level wear state vector and calculates a bit error risk value. Based on this risk value, it dynamically selects a target error correction configuration file from a set of error correction configuration files containing error correction intensity parameters, bit rate parameters, and read retry parameters. The data to be written is then written to the candidate physical page after error correction encoding according to this file. A mapping table is established to establish a correspondence between logical addresses, physical pages, and error correction configuration files. During subsequent reads, the corresponding file is retrieved from the mapping table for error correction decoding, thereby achieving precise matching between error correction intensity and NAND page-level wear state and data protection requirements.
[0007] This application also provides a method for dynamically configuring error correction intensity based on NAND wear state awareness, including the following steps: Obtain the page state data of the candidate physical page and the data protection attributes of the data to be written, and generate the page-level wear state vector corresponding to the candidate physical page based on the page state data; Based on page-level wear state vectors and data protection attributes, calculate the bit error risk value corresponding to candidate physical pages; The target error correction configuration file is determined from a pre-established set of error correction configuration files based on the bit error risk value. The error correction configuration file includes error correction strength parameters, bit rate parameters, and read retry parameters. According to the target error correction configuration file, the data to be written is coded for error correction and written to the candidate physical page. The mapping table establishes the correspondence between the logical address of the data to be written, the candidate physical page and the target error correction configuration file. When performing a read operation on data in a candidate physical page, the target error correction configuration file is retrieved from the mapping table for error correction decoding.
[0008] Optionally, in the NAND wear state-aware dynamic configuration method for error correction strength described in this application, the step of obtaining the page state data of candidate physical pages and the data protection attributes of the data to be written, and generating a page-level wear state vector corresponding to the candidate physical pages based on the page state data, includes: Page state data includes the number of erase / write operations of the erase block to which the candidate physical page belongs, the programming operation statistics of the candidate physical page, the data retention time, and the read operation statistics; Based on the data stream identifier to which the data to be written belongs, determine the data protection attributes, including the retention duration level and the read reliability level; Normalize the erase / write count, programming operation statistics, data retention time, and read operation statistics. The normalized page state data are combined into an initial page-level wear state vector; Based on the bad block marking information in the bad block table of the erase block to which the candidate physical page belongs, the initial page-level wear state vector is corrected for the influence of adjacent blocks to obtain the page-level wear state vector.
[0009] Optionally, in the NAND wear state-aware dynamic configuration method for error correction strength described in this application, the step of calculating the bit error risk value corresponding to the candidate physical page based on the page-level wear state vector and data protection attributes includes: The first risk component is obtained by weighting and summing the data of each dimension in the page-level wear state vector according to the preset risk weight coefficients. Based on the retention time level and read reliability level, a data protection coefficient is determined through a preset mapping relationship, serving as the second risk component; The error risk value is obtained by weighted summation of the first and second risk components.
[0010] Optionally, in the NAND wear state-aware dynamic configuration method for error correction intensity described in this application, the step of determining the target error correction configuration file from a pre-established set of error correction configuration files based on the bit error risk value includes: When the error risk value is less than the first dynamic risk threshold, the low-intensity error correction configuration file is determined as the target error correction configuration file. When the error risk value is greater than or equal to the first dynamic risk threshold and less than the second dynamic risk threshold, the medium-intensity error correction configuration file is determined as the target error correction configuration file. When the error risk value is greater than or equal to the second dynamic risk threshold, the high-intensity error correction configuration file is determined as the target error correction configuration file.
[0011] Optionally, in the NAND wear state-aware dynamic configuration method for error correction intensity described in this application, the step of retrieving the target error correction configuration file from the mapping table for error correction decoding when performing a read operation on the data in the candidate physical page includes: Based on the logical address of the data to be read, query the corresponding candidate physical page and target error correction configuration file from the mapping table; Based on the error correction strength parameters and read retry parameters in the target error correction configuration file, error correction encoded data read from candidate physical pages is subjected to error correction decoding.
[0012] Optionally, in the NAND wear state-aware dynamic configuration method for error correction strength described in this application, when the bit error risk value is greater than or equal to the first dynamic risk threshold and less than the second dynamic risk threshold, it further includes: Get the cumulative number of reads of candidate physical pages within a preset time window; When the cumulative number of reads exceeds the preset threshold, the read interference increment is determined based on the cumulative number of reads, and the error risk value is updated to the sum of the current error risk value and the read interference increment. The updated error risk value is compared with the second dynamic risk threshold. If the updated error risk value is greater than or equal to the second dynamic risk threshold, the target error correction configuration file is switched to a high-intensity error correction configuration file.
[0013] Optionally, the method for dynamically configuring error correction intensity based on NAND wear state awareness described in this application further includes: After generating the page-level wear state vector, obtain the variance of the erase / write count distribution of all used blocks in the system; When the variance of the erase / write count distribution is greater than the preset variance threshold, calculate the ratio of the deviation between the erase / write count of the erase block to which the candidate physical page belongs and the system average erase / write count. The wear equalization correction factor is determined based on the deviation ratio; The error risk value is corrected by using the wear leveling correction factor to obtain the corrected error risk value.
[0014] Optionally, the method for dynamically configuring error correction intensity based on NAND wear state awareness described in this application further includes: Obtain the average number of erase / write operations per block used for each storage controller and the usage ratio of each error correction configuration file; The average number of erases and writes for the group is calculated based on the average number of erases and writes for the used blocks, and the average usage ratio for the group is calculated based on the usage ratio of each error correction configuration file. Determine whether the deviation between the average number of erases and writes of used blocks of the current storage controller and the average number of erases and writes of the group is greater than a preset erase and write count deviation threshold. If so, determine the first correction parameter based on the deviation value. Determine whether the deviation between the current storage controller's error correction configuration file usage ratio and the group's average usage ratio is greater than a preset usage ratio deviation threshold. If so, determine the second correction parameter based on the deviation value. The first dynamic risk threshold of the current storage controller is corrected according to the first correction parameter, and the second dynamic risk threshold of the current storage controller is corrected according to the second correction parameter.
[0015] Secondly, this application provides a dynamic configuration system for error correction intensity based on NAND wear state awareness. The system includes a memory and a processor. The memory stores a program for a dynamic configuration method for error correction intensity based on NAND wear state awareness. When the program for the dynamic configuration method for error correction intensity based on NAND wear state awareness is executed by the processor, it implements the following steps: Obtain the page state data of the candidate physical page and the data protection attributes of the data to be written, and generate the page-level wear state vector corresponding to the candidate physical page based on the page state data; Based on page-level wear state vectors and data protection attributes, calculate the bit error risk value corresponding to candidate physical pages; The target error correction configuration file is determined from a pre-established set of error correction configuration files based on the bit error risk value. The error correction configuration file includes error correction strength parameters, bit rate parameters, and read retry parameters. According to the target error correction configuration file, the data to be written is coded for error correction and written to the candidate physical page. The mapping table establishes the correspondence between the logical address of the data to be written, the candidate physical page and the target error correction configuration file. When performing a read operation on data in a candidate physical page, the target error correction configuration file is retrieved from the mapping table for error correction decoding.
[0016] Optionally, in the NAND wear state-aware dynamic configuration system for error correction strength described in this application, the step of obtaining the page state data of candidate physical pages and the data protection attributes of the data to be written, and generating a page-level wear state vector corresponding to the candidate physical pages based on the page state data, includes: Page state data includes the number of erase / write operations of the erase block to which the candidate physical page belongs, the programming operation statistics of the candidate physical page, the data retention time, and the read operation statistics; Based on the data stream identifier to which the data to be written belongs, determine the data protection attributes, including the retention duration level and the read reliability level; Normalize the erase / write count, programming operation statistics, data retention time, and read operation statistics. The normalized page state data are combined into an initial page-level wear state vector; Based on the bad block marking information in the bad block table of the erase block to which the candidate physical page belongs, the initial page-level wear state vector is corrected for the influence of adjacent blocks to obtain the page-level wear state vector.
[0017] As can be seen from the above, the method and system for dynamic configuration of error correction intensity based on NAND wear state awareness provided in this application obtains the page state data of candidate physical pages (including the number of erase / write operations, programming operation statistics, data retention time, and read operation statistics, etc.) and the data protection attributes of the data to be written (including retention time level and read reliability level), generates a page-level wear state vector and calculates the bit error risk value. Then, based on the bit error risk value, it dynamically selects a target error correction configuration file from a set of error correction configuration files containing error correction intensity parameters, bit rate parameters, and read retry parameters. After error correction encoding of the data to be written according to the file, it is written to the candidate physical page, and a correspondence between logical address, physical page and error correction configuration file is established in the mapping table. During subsequent reading, the corresponding file is retrieved from the mapping table for error correction decoding, thereby achieving accurate matching between error correction intensity and NAND page-level wear state and data protection requirements.
[0018] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing embodiments of this application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A flowchart illustrating the method for dynamically configuring error correction intensity based on NAND wear state awareness, provided in an embodiment of this application. Figure 2 A flowchart illustrating the wear leveling correction process of the error correction intensity dynamic configuration method based on NAND wear state perception provided in this application embodiment; Figure 3 A flowchart illustrating the multi-controller collaborative threshold correction method for a dynamic configuration method of error correction intensity based on NAND wear state awareness, provided in an embodiment of this application. Detailed Implementation
[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0022] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0023] Please refer to Figure 1 , Figure 1 This is a flowchart of a method for dynamically configuring error correction strength based on NAND wear state awareness, according to some embodiments of this application. This method is used in terminal devices, such as computers and mobile terminals. The method includes the following steps: S11. Obtain the page state data of the candidate physical page and the data protection attributes of the data to be written, and generate the page-level wear state vector corresponding to the candidate physical page based on the page state data. S12. Based on the page-level wear state vector and data protection attributes, calculate the bit error risk value corresponding to the candidate physical page; S13. Determine the target error correction configuration file from the pre-established set of error correction configuration files based on the bit error risk value. The error correction configuration file includes error correction strength parameters, bit rate parameters, and read retry parameters. S14. Correct the data to be written according to the target error correction configuration file and write it to the candidate physical page. Establish the correspondence between the logical address of the data to be written, the candidate physical page and the target error correction configuration file in the mapping table. S15. When performing a read operation on the data in the candidate physical page, retrieve the target error correction configuration file from the mapping table for error correction decoding.
[0024] It should be noted that this invention generates a page-level wear state vector and calculates a bit error risk value by acquiring the page state data of candidate physical pages (including the number of erase / write operations of the erase block, programming operation statistics, data retention time, and read operation statistics) and the data protection attributes of the data to be written (including retention time level and read reliability level). Then, based on the bit error risk value, a target error correction configuration file is dynamically selected from a set of error correction configuration files containing error correction strength parameters, bit rate parameters, and read retry parameters. The data to be written is then written to the candidate physical page after error correction encoding according to the file. A correspondence between logical address, physical page, and error correction configuration file is established in a mapping table. During subsequent reading, the corresponding file is retrieved from the mapping table for error correction decoding, thereby achieving a precise match between error correction strength and NAND page-level wear state and data protection requirements.
[0025] According to an embodiment of the present invention, the step of obtaining page state data of candidate physical pages and data protection attributes of data to be written, and generating a page-level wear state vector corresponding to the candidate physical pages based on the page state data, includes: Page state data includes the number of erase / write operations of the erase block to which the candidate physical page belongs, the programming operation statistics of the candidate physical page, the data retention time, and the read operation statistics; Based on the data stream identifier to which the data to be written belongs, determine the data protection attributes, including the retention duration level and the read reliability level; Normalize the erase / write count, programming operation statistics, data retention time, and read operation statistics. The normalized page state data are combined into an initial page-level wear state vector; Based on the bad block marking information in the bad block table of the erase block to which the candidate physical page belongs, the initial page-level wear state vector is corrected for the influence of adjacent blocks to obtain the page-level wear state vector.
[0026] It should be noted that by normalizing and combining the erase / write count, programming operation statistics, data retention time, and read operation statistics into an initial page-level wear state vector, and then correcting the initial vector for adjacent block influence based on the bad block marking information in the bad block table, the true wear state of the candidate physical page can be more accurately reflected. This effectively avoids ignoring the negative impacts such as programming interference caused by adjacent bad blocks, thereby improving the calculation accuracy of the bit error risk value and laying a reliable data foundation for the accurate configuration of subsequent error correction intensity.
[0027] Specifically, programming operation statistics are generated based on the number of programming operations performed on other physical pages within the word line of the candidate physical page. These statistics characterize the impact of programming interference on the candidate physical page. Data retention duration is generated based on the difference between the most recent programming time and the current time of the candidate physical page. Read operation statistics are generated based on the number of times the candidate physical page triggers read voltage offset adjustment in historical read operations. These statistics characterize the degree of read voltage drift.
[0028] Based on the data stream identifier of the data to be written, the data protection attributes are determined. Specifically, when the storage controller receives a write request from the host, it identifies the service type of the batch of data from the data stream identifier carried in the write command and queries the pre-established data stream-to-protection attribute mapping table in the firmware to determine the data protection attributes of the data to be written, namely the retention duration level and the read reliability level. Different service types of data have fundamentally different reliability requirements for storage: errors in critical system data such as mapping tables and metadata will render the entire storage system unusable, therefore requiring the highest retention duration level and read reliability level; archived cold data is not read for a long time after writing, and its main risk comes from charge leakage over time, so a high retention duration level and a lower read reliability level are acceptable; temporary cache data has a short lifespan, and both levels can be set to the lowest level. Through the mapping from data stream identifiers to protection attributes, the controller can complete data classification without parsing the data content itself, achieving a data protection attribute determination method with minimal overhead on the write path.
[0029] Based on the bad block marker information in the bad block table of the erase block to which the candidate physical page belongs, the initial page-level wear state vector is corrected for adjacent block influence to obtain the page-level wear state vector, which specifically includes: Based on the bad block marking information of the erase block to which the candidate physical page belongs in the bad block table, determine the bad blocks adjacent to the erase block to which the candidate physical page belongs and their physical distance; Each adjacent bad block is assigned a corresponding interference weight coefficient based on physical distance; The initial page-level wear state vector is weighted and corrected based on the interference weight coefficient to obtain the page-level wear state vector.
[0030] According to an embodiment of the present invention, the step of calculating the bit error risk value corresponding to the candidate physical page based on the page-level wear state vector and data protection attributes includes: The first risk component is obtained by weighting and summing the data of each dimension in the page-level wear state vector according to the preset risk weight coefficients. Based on the retention time level and read reliability level, a data protection coefficient is determined through a preset mapping relationship, serving as the second risk component; The error risk value is obtained by weighted summation of the first and second risk components.
[0031] It should be noted that this invention obtains a first risk component by weighting and summing the data of each dimension in the page-level wear state vector according to preset risk weight coefficients, and determines a data protection coefficient as a second risk component based on the hold duration level and read reliability level through a preset mapping relationship. The first and second risk components are then weighted and summed to obtain the bit error rate risk value. This achieves a comprehensive evaluation of bit error rate risk from two dimensions: physical layer wear state and data layer protection requirements. It considers both the physical degradation of NAND flash memory caused by erase, write, read, and hold operations, and the differentiated reliability requirements of different data, making the bit error rate risk assessment result more comprehensive, scientific, and accurate. Specifically, the first risk component characterizes the physical wear degree of the candidate physical page, and the second risk component characterizes the protection strength required for the data to be written.
[0032] Based on the hold duration level and read reliability level, a data protection coefficient is determined through a preset mapping relationship. Specifically, based on the hold duration level and read reliability level, a corresponding data protection coefficient is determined through a preset two-dimensional mapping relationship. The hold duration level is used to characterize the expected storage time of the data to be written in the NAND flash memory. The longer the storage time, the higher the risk of bit errors due to charge leakage. The read reliability level is used to characterize the expected frequency of the data to be written being read or the degree of requirement for read correctness. The higher the read frequency or the higher the correctness requirement, the higher the risk of bit errors due to read interference.
[0033] In this embodiment of the invention, the hold duration level is determined based on the expected lifespan of the data to be written. For example, the hold duration level for temporary cached data is low, while the hold duration level for long-term archived data is high. Because NAND flash memory exhibits charge leakage during data hold, a longer hold time results in greater threshold voltage drift in the storage cell and a higher initial bit error rate. Therefore, a higher hold duration level is required, corresponding to a larger data protection factor. The read reliability level is determined based on the expected read frequency or importance of the data to be written. For example, the read reliability level for critical system data is high, while the read reliability level for ordinary user data is low. Because NAND flash memory is subject to read interference, frequent reads can increase the bit error rate of other pages within the same block. Therefore, a higher read reliability level is required, corresponding to a larger data protection factor.
[0034] According to an embodiment of the present invention, determining the target error correction configuration file from a pre-established set of error correction configuration files based on the bit error risk value includes: When the error risk value is less than the first dynamic risk threshold, the low-intensity error correction configuration file is determined as the target error correction configuration file. When the error risk value is greater than or equal to the first dynamic risk threshold and less than the second dynamic risk threshold, the medium-intensity error correction configuration file is determined as the target error correction configuration file. When the error risk value is greater than or equal to the second dynamic risk threshold, the high-intensity error correction configuration file is determined as the target error correction configuration file.
[0035] It should be noted that this invention divides the bit error risk value into three levels—low, medium, and high—by setting a first dynamic risk threshold and a second dynamic risk threshold, and corresponds to low-intensity, medium-intensity, and high-intensity error correction configuration files, respectively. This achieves hierarchical dynamic configuration of error correction intensity, enabling the system to use low-intensity error correction to reduce decoding latency and storage overhead when the NAND flash memory is in a good wear condition, use medium-intensity error correction to balance performance and reliability when the wear is moderate, and use high-intensity error correction to ensure data security when the wear is severe. Thus, the overall performance of the storage system is optimized to the maximum extent while ensuring data reliability.
[0036] The first and second dynamic risk thresholds are determined as follows: A historical dataset of error rate risk values corresponding to all write operations within a preset historical time period is obtained from the storage system. Statistical analysis is performed on this dataset to determine its cumulative distribution function. The risk value corresponding to the preset first percentile of the cumulative distribution function is set as the first dynamic risk threshold, and the risk value corresponding to the preset second percentile is set as the second dynamic risk threshold. This method ensures that the low-risk range covers most normal write scenarios, the medium-risk range covers moderate wear scenarios, and the high-risk range only covers extreme wear scenarios. The first and second dynamic risk thresholds are periodically or event-triggered recalculated as the historical error rate risk dataset is updated, achieving dynamic adaptive adjustment of the thresholds.
[0037] According to an embodiment of the present invention, when performing a read operation on data in a candidate physical page, retrieving the target error correction configuration file from the mapping table for error correction decoding includes: Based on the logical address of the data to be read, query the corresponding candidate physical page and target error correction configuration file from the mapping table; Based on the error correction strength parameters and read retry parameters in the target error correction configuration file, error correction encoded data read from candidate physical pages is subjected to error correction decoding.
[0038] It should be noted that during the read operation, when the storage controller receives a read command from the host, it extracts the logical address of the data to be read from the read command. Using this logical address as an index, it queries the mapping table to obtain the physical address of the candidate physical page that has a mapping relationship with the logical address, as well as the identification information of the target error correction configuration file used by the physical page when writing data. Subsequently, the storage controller reads the error correction encoded data from the NAND flash array according to the physical address of the candidate physical page, and determines the error correction code type and error correction capability level to be used for this decoding based on the error correction strength parameter in the target error correction configuration file (for example, the error correction strength parameter can specify the use of BCH code or LDPC code and their corresponding code rate and code length, etc.). The corresponding decoding algorithm is then used to perform the first error correction decoding on the read error correction encoded data. If the initial decoding is successful, the decoded user data is returned to the host. If the initial decoding fails, the read reference voltage of the NAND flash memory is adjusted according to the read retry parameters in the target error correction configuration file (e.g., read retry parameters may include read voltage offset step size, offset range, and maximum number of retries). Multiple read retry operations are performed on candidate physical pages with different voltage offsets, and the soft information obtained from each retry is decoded again. This read retry process continues until decoding is successful or the maximum number of retries limited by the read retry parameters is reached. This method ensures that the error correction configuration used during writing is strictly consistent with the decoding configuration used during reading. Furthermore, the introduction of read retry parameters provides an effective error correction and recovery mechanism to address changes in threshold voltage distribution caused by factors such as voltage drift, read interference, or data retention effects, thereby significantly improving the data read success rate.
[0039] According to an embodiment of the present invention, when the bit error risk value is greater than or equal to the first dynamic risk threshold and less than the second dynamic risk threshold, the method further includes: Get the cumulative number of reads of candidate physical pages within a preset time window; When the cumulative number of reads exceeds the preset threshold, the read interference increment is determined based on the cumulative number of reads, and the error risk value is updated to the sum of the current error risk value and the read interference increment. The updated error risk value is compared with the second dynamic risk threshold. If the updated error risk value is greater than or equal to the second dynamic risk threshold, the target error correction configuration file is switched to a high-intensity error correction configuration file.
[0040] It should be noted that by further obtaining the cumulative number of reads of candidate physical pages within a preset time window when the error risk value is in the medium-risk range, and updating the error risk value according to the incremental read interference when the cumulative number of reads exceeds a preset threshold, and switching to a high-intensity error correction configuration file if the updated risk value reaches the high-risk range, it can effectively cope with the actual situation that the read interference effect gradually intensifies with the accumulation of reads. In the medium-risk scenario, it realizes dynamic tracking and proactive defense against read interference risk, avoiding data reliability degradation caused by the accumulation of read interference.
[0041] Please refer to Figure 2 , Figure 2 This is a flowchart of wear leveling correction in some embodiments of the error correction intensity dynamic configuration method based on NAND wear state awareness, according to some embodiments of this application. According to embodiments of the present invention, it further includes: After generating the page-level wear state vector, obtain the variance of the erase / write count distribution of all used blocks in the system; When the variance of the erase / write count distribution is greater than the preset variance threshold, calculate the ratio of the deviation between the erase / write count of the erase block to which the candidate physical page belongs and the system average erase / write count. The wear equalization correction factor is determined based on the deviation ratio; The error risk value is corrected by using the wear leveling correction factor to obtain the corrected error risk value.
[0042] It should be noted that by obtaining the variance of the erase / write count distribution of all used blocks in the system, and calculating the deviation ratio between the erase / write count of the erase block to which the candidate physical page belongs and the system average erase / write count when the variance exceeds a preset threshold, the wear leveling correction factor is determined and the error risk value is corrected accordingly. This allows the overall wear leveling status of the system to be incorporated into the error risk assessment system, enabling physical pages in the wear-uneven area to receive a more reasonable error correction strength configuration, which helps to extend the lifespan of the entire storage system.
[0043] Based on the deviation ratio, a wear leveling correction factor is determined through a preset mapping relationship. The higher the deviation ratio, the larger the wear leveling correction factor. In a specific embodiment of this application, the storage controller pre-sets a segmented mapping relationship for the wear leveling correction factor: when the deviation ratio is less than or equal to 0, the correction factor is 1.0; for every 0.1 increase in the deviation ratio, the correction factor increases by 0.05. For example, if the system average write / erase cycles are 1000, the candidate block write / erase cycles are 1200, the deviation ratio is 0.2, and the correction factor is found to be 1.10; multiplying the original error risk value of 0.25 by the correction factor 1.10 yields a corrected error risk value of 0.275, increasing the risk by 10% to make it easier to trigger high-intensity error correction configuration. The parameters of the above mapping relationship can be pre-calibrated according to the characteristics of the flash memory chips. A higher deviation ratio indicates that the wear of the block is more severe relative to the system average level, and its reliability deteriorates faster, thus requiring a corresponding increase in the risk value.
[0044] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating the multi-controller collaborative threshold correction method for dynamic configuration of error correction intensity based on NAND wear state awareness in some embodiments of this application. According to embodiments of the present invention, it further includes: Obtain the average number of erase / write operations per block used for each storage controller and the usage ratio of each error correction configuration file; The average number of erases and writes for the group is calculated based on the average number of erases and writes for the used blocks, and the average usage ratio for the group is calculated based on the usage ratio of each error correction configuration file. Determine whether the deviation between the average number of erases and writes of used blocks of the current storage controller and the average number of erases and writes of the group is greater than a preset erase and write count deviation threshold. If so, determine the first correction parameter based on the deviation value. Determine whether the deviation between the current storage controller's error correction configuration file usage ratio and the group's average usage ratio is greater than a preset usage ratio deviation threshold. If so, determine the second correction parameter based on the deviation value. The first dynamic risk threshold of the current storage controller is corrected according to the first correction parameter, and the second dynamic risk threshold of the current storage controller is corrected according to the second correction parameter.
[0045] It should be noted that by exchanging the average number of erases and writes of used blocks and the usage ratio of each error correction configuration file among multiple storage controllers, the average number of erases and writes and the average usage ratio of the group are calculated. The first dynamic risk threshold and the second dynamic risk threshold are then corrected according to the deviation between the current controller and the group average. This enables the adaptive adjustment of the error correction configuration strategy in a multi-controller collaborative scenario, allowing each controller to dynamically calibrate its own risk threshold according to the overall state of the group, thereby improving the overall reliability and configuration consistency of the multi-controller storage system.
[0046] Specifically, if the deviation between the current controller's average number of erase / write cycles and the group average number of erase / write cycles exceeds a preset threshold, it indicates a significant difference in the physical wear of the flash memory chips managed by the current controller compared to the overall group level. A positive deviation indicates more severe wear on the current controller; a negative deviation indicates relatively less wear. If the deviation between the current controller's error correction configuration profile usage ratio and the group average usage ratio exceeds a preset usage ratio deviation threshold, it indicates a significant deviation between the current controller's actual error correction behavior pattern and the overall group level. This reflects a substantial difference between the overall reliability status of the flash memory chips managed by the current controller in actual use (affected by multiple factors such as physical wear, load characteristics, data protection attribute distribution, and error risk calculation model calibration status) and the group average level. If the usage ratio of high-intensity error correction configuration is significantly higher than the group average, it indicates that the controller's reliability is worse than the group average or the error correction configuration is conservative; if it is significantly lower than the group average, it indicates that the controller's reliability is better than the group average or the error correction configuration is optimistic.
[0047] According to an embodiment of the present invention, before determining the target error correction configuration file from a pre-established set of error correction configuration files based on the bit error risk value, the method further includes: Obtain the historical error risk value sequence of candidate physical pages within a preset time window; The wear rate was obtained by fitting the historical bit error risk value sequence using a sliding window linear regression method. The wear trend prediction value is calculated by summing the product of the current error risk value, the wear rate, and the preset prediction period. If the wear trend prediction value is greater than the preset warning threshold and the current error risk value is less than or equal to the preset warning threshold, then the error risk value will be updated to the wear trend prediction value.
[0048] It should be noted that, considering that NAND flash memory wear is a cumulative process that deteriorates over time, configuring error correction solely based on the current bit error risk value may not reflect the impending reliability degradation trend in a timely manner, resulting in error correction intensity configuration lagging behind actual needs. Therefore, this invention, based on the current bit error risk value calculation, further introduces a wear trend prediction mechanism: by obtaining the historical bit error risk value sequence of candidate physical pages within a preset time window, a sliding window linear regression method is used to fit this sequence to estimate the growth rate of bit error risk over time (i.e., the wear rate). The current bit error risk value is then added to the product of the wear rate and the preset prediction period to obtain the predicted wear trend value of the candidate physical page in the future. If this predicted value exceeds a preset warning threshold while the current bit error risk value has not yet exceeded this threshold, it indicates that although the candidate physical page is currently at an acceptable risk level, it will rapidly deteriorate to a high-risk state in the near future. In this case, the bit error risk value is updated to the wear trend prediction value, enabling the system to trigger a higher intensity error correction configuration in advance. This solution effectively eliminates the time lag between error correction strength configuration and wear degradation by predicting wear trends in a forward-looking manner, thereby improving the system's data reliability in high wear evolution scenarios.
[0049] According to an embodiment of the present invention, it further includes: Calculate the system-level distribution variance of the error risk values of all used physical pages in the system; If the system-level distribution variance exceeds the preset variance threshold, error correction resources will be preferentially allocated to physical pages with error risk values higher than the preset allocation threshold.
[0050] It should be noted that the aforementioned priority allocation of error correction resources means that in the subsequent calculation of the error risk value of the physical page, a risk additional coefficient is added to make it easier to reach the second dynamic risk threshold, thereby being allocated a higher intensity error correction configuration file.
[0051] According to an embodiment of the present invention, it further includes: For data already written to candidate physical pages, the actual data retention time is accumulated according to the preset refresh check cycle; When the ratio of the actual data retention time to the expected retention period threshold corresponding to the retention time level in the data protection attribute reaches the preset refresh trigger ratio, the page state data of the candidate physical page is reacquired, and the current page-level wear state vector is generated based on the reacquired page state data to calculate the current bit error risk value of the candidate physical page. When the current error risk value is greater than or equal to the preset refresh risk threshold, select the physical page with the smallest vector magnitude of the page-level wear state vector from the idle physical pages as the target refresh physical page; Based on the target error correction configuration file corresponding to the current error risk value, the data read from and decoded from the candidate physical page is re-encoded for error correction, written to the target refresh physical page, and the correspondence between the logical address of the data, the target refresh physical page, and the target error correction configuration file is updated in the mapping table.
[0052] It should be noted that, considering the charge leakage phenomenon that occurs during the data retention process of NAND flash memory, the longer the actual retention time of the written data, the greater the threshold voltage drift of the storage cell, and the original bit error rate continues to rise with the retention time. If the bit error risk is only assessed and the error correction configuration file is fixed at the time of writing, the actual bit error level of the candidate physical page may gradually exceed the upper limit of the error correction capability configured at the time of writing as the retention time accumulates, causing read decoding failure or even data loss. Therefore, this technical solution introduces an active data refresh mechanism driven by data retention time. By accumulating the actual data retention time of the written data according to the preset refresh check cycle, when the actual data retention time exceeds the expected retention cycle threshold, the refresh mechanism will be activated. When the ratio reaches the preset refresh trigger ratio, the page state data of the candidate physical page is reacquired and the current error risk value is calculated. If the current error risk value is greater than or equal to the preset refresh risk threshold, the data is actively moved to the target refresh physical page with the smallest vector magnitude of the page-level wear state vector. The target error correction configuration file is then rematched according to the current error risk value for error correction encoding. This achieves closed-loop management after writing, including "hold-time monitoring, risk reassessment, active migration, and file reconfiguration." The refresh migration is completed in advance before the data error level approaches the upper limit of the error correction capability, effectively avoiding data loss due to the accumulation of charge leakage. At the same time, the refresh migration is only performed on data that simultaneously meets the hold-time trigger condition and the risk threshold condition. This approach avoids write amplification issues caused by global periodic data migration. Furthermore, after a refresh, data is rewritten to the lowest-wear physical page with the smallest vector magnitude, preventing repeated writes to high-wear physical pages that accelerate their failure. This balances data reliability with the overall lifespan of the storage system. The preset refresh check cycle can be dynamically set based on the storage system's workload, for example, performing refresh checks during off-peak hours to reduce the impact on normal read / write performance. The expected retention period threshold is set according to the retention duration level; higher retention duration levels correspond to longer expected retention period thresholds. For example, a low retention duration level corresponds to 7 days, a medium retention duration level to 30 days, and a high retention duration level to 180 days. The preset refresh trigger ratio ranges from [value missing]. In this embodiment of the application, the retention period of a certain long-term archived data is classified as high, with a corresponding expected retention period threshold of 180 days and a preset refresh trigger ratio of 0.8. When the actual data retention period of the data reaches 144 days, the storage controller re-acquires the page state data of the candidate physical page and calculates the current error risk value. If the current error risk value is 0.62 and is greater than or equal to the preset refresh risk threshold of 0.55, the physical page with the smallest vector magnitude of the page-level wear state vector is selected from the idle physical pages as the target refresh physical page. The high-intensity error correction configuration file (e.g., error correction intensity parameter of 40 bits and bitrate parameter of 0) is matched according to the current error risk value of 0.62.8) Re-encode the data read and decoded from the candidate physical page and write it to the target refresh physical page. Update the mapping table with the logical address of the data, the target refresh physical page, and the high-intensity error correction configuration file, and reset the actual data retention time statistics.
[0053] According to an embodiment of the present invention, it further includes: During the error correction and decoding process, the decoding performance data of each error correction configuration file in the error correction configuration file set is statistically analyzed within a preset statistical period. The decoding performance data includes the decoding failure rate, the average number of read retries, and the percentage of actual error correction bits. When the decoding failure rate of the error correction configuration file exceeds the preset failure rate limit or the average number of read retries exceeds the preset number of retries limit, the mismatch between the error correction configuration file and the actual bit error rate is determined to be insufficient error correction capability. When the actual number of error correction bits in the error correction configuration file is lower than the preset redundancy judgment lower limit for a number of consecutive statistical periods, the mismatch direction of the error correction configuration file is determined to be error correction capability redundancy. When the mismatch is due to insufficient error correction capability, reduce the bitrate parameter in the error correction configuration file and increase the error correction strength parameter. When the mismatch is due to redundant error correction capability, increase the bitrate parameter in the error correction configuration file and decrease the error correction strength parameter. Update the adjusted error correction configuration file to the error correction configuration file collection.
[0054] It should be noted that if the error correction strength and bit rate parameters in the error correction configuration file are statically fixed, a mismatch may occur between the file parameters and the actual bit error rate as the overall wear and tear of the NAND flash memory evolves and as different storage media have individual differences. When the actual bit error rate is higher than the preset error correction capability of the file, the decoding failure rate increases, the number of read retries increases, and even irrecoverable data loss may occur. When the actual bit error rate is much lower than the preset error correction capability of the file, the verification redundancy is excessive, wasting storage space and increasing decoding latency. To address this, this invention introduces an online adjustment mechanism for error correction configuration file parameters based on decoding statistical feedback. During the error correction decoding process, it statistically analyzes decoding performance data such as the decoding failure rate, average read retries, and actual error correction bit percentage of each error correction configuration file within a preset statistical period. This identifies mismatches between file parameters and actual bit error rates from two perspectives: insufficient error correction capability and redundant error correction capability. Correspondingly, it adjusts the bit rate and error correction strength parameters in a linked manner, updating the adjusted error correction configuration file to the error correction configuration file set. This forms an adaptive closed loop of "configuration, decoding, statistics, and adjustment," allowing the error correction configuration file set to continuously self-calibrate as the overall NAND flash memory wears down. This ensures data reliability while reducing error correction overhead and ensures that subsequent bit error rate grading and matching are always based on file parameters consistent with the actual bit error rate. Specifically, the decoding failure rate is the ratio of decoding failures to total decoding attempts within the preset statistical period; the average read retries are the average number of read retries triggered by successful decoding within the preset statistical period; and the actual error correction bit percentage is the percentage of actual bit error rates in a single decoding attempt. The actual number of errors corrected accounts for the proportion of the maximum error correction capability corresponding to the error correction strength parameter. In this embodiment, the preset statistical period is 24 hours, the preset failure rate upper limit is 0.1%, the preset retry count upper limit is 2 times, and the preset redundancy judgment lower limit is 15%. When the decoding failure rate of a certain error correction configuration file is 0.3% within the statistical period, exceeding the preset failure rate upper limit, the mismatch direction is determined to be insufficient error correction capability. The bitrate parameter of the file is adjusted from 0.9 to 0.85, and the error correction strength parameter is increased from 30 bits to 40 bits. When the actual number of errors corrected in the file is less than 15% for three consecutive statistical periods, the mismatch direction is determined to be error correction capability redundancy. The bitrate parameter is reduced from 0.85 to 0.9, and the error correction strength parameter is reduced from 40 bits to 30 bits. The adjusted error correction configuration file is added to the error correction configuration file set in a version update manner. The error correction configuration files already recorded in the mapping table remain unchanged. Only subsequent write operations use the adjusted file parameters to ensure that the error correction configuration file retrieved when reading and decoding the written data is consistent with the error correction coding parameters when it was written.
[0055] The present invention also discloses a dynamic configuration system for error correction intensity based on NAND wear state perception, including a memory and a processor. The memory stores a program for a dynamic configuration method for error correction intensity based on NAND wear state perception. When the program for a dynamic configuration method for error correction intensity based on NAND wear state perception is executed by the processor, it implements the steps of the dynamic configuration method for error correction intensity based on NAND wear state perception.
[0056] The present invention discloses a method and system for dynamic configuration of error correction intensity based on NAND wear state awareness. This method acquires page state data of candidate physical pages (including erase / write counts of the erase block, programming operation statistics, data retention time, and read operation statistics) and data protection attributes of the data to be written (including retention time level and read reliability level). It generates a page-level wear state vector and calculates a bit error risk value. Based on this risk value, it dynamically selects a target error correction configuration file from a set of error correction configuration files containing error correction intensity parameters, bit rate parameters, and read retry parameters. The data to be written is then written to the candidate physical page after error correction encoding according to this file. A mapping table is established to establish a correspondence between logical addresses, physical pages, and error correction configuration files. During subsequent reads, the corresponding file is retrieved from the mapping table for error correction decoding, thereby achieving precise matching between error correction intensity and NAND page-level wear state and data protection requirements.
[0057] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0058] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0059] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
Claims
1. A method for dynamically configuring error correction intensity based on NAND wear state perception, characterized in that, Includes the following steps: Obtain the page state data of the candidate physical page and the data protection attributes of the data to be written, and generate the page-level wear state vector corresponding to the candidate physical page based on the page state data; Based on page-level wear state vectors and data protection attributes, calculate the bit error risk value corresponding to candidate physical pages; The target error correction configuration file is determined from a pre-established set of error correction configuration files based on the bit error risk value. The error correction configuration file includes error correction strength parameters, bit rate parameters, and read retry parameters. According to the target error correction configuration file, the data to be written is coded for error correction and written to the candidate physical page. The mapping table establishes the correspondence between the logical address of the data to be written, the candidate physical page and the target error correction configuration file. When performing a read operation on data in a candidate physical page, the target error correction configuration file is retrieved from the mapping table for error correction decoding.
2. The method for dynamically configuring error correction intensity based on NAND wear state perception according to claim 1, characterized in that, The process of obtaining the page state data of candidate physical pages and the data protection attributes of the data to be written, and generating a page-level wear state vector corresponding to the candidate physical pages based on the page state data, includes: Page state data includes the number of erase / write operations of the erase block to which the candidate physical page belongs, the programming operation statistics of the candidate physical page, the data retention time, and the read operation statistics; Based on the data stream identifier to which the data to be written belongs, determine the data protection attributes, including the retention duration level and the read reliability level; Normalize the erase / write count, programming operation statistics, data retention time, and read operation statistics. The normalized page state data are combined into an initial page-level wear state vector; Based on the bad block marking information in the bad block table of the erase block to which the candidate physical page belongs, the initial page-level wear state vector is corrected for the influence of adjacent blocks to obtain the page-level wear state vector.
3. The method for dynamically configuring error correction intensity based on NAND wear state perception according to claim 1, characterized in that, The calculation of the bit error risk value corresponding to the candidate physical page based on the page-level wear state vector and data protection attributes includes: The first risk component is obtained by weighting and summing the data of each dimension in the page-level wear state vector according to the preset risk weight coefficients. Based on the retention time level and read reliability level, a data protection coefficient is determined through a preset mapping relationship, serving as the second risk component; The error risk value is obtained by weighted summation of the first and second risk components.
4. The method for dynamically configuring error correction intensity based on NAND wear state perception according to claim 1, characterized in that, The step of determining the target error correction configuration file from a pre-established set of error correction configuration files based on the bit error risk value includes: When the error risk value is less than the first dynamic risk threshold, the low-intensity error correction configuration file is determined as the target error correction configuration file. When the error risk value is greater than or equal to the first dynamic risk threshold and less than the second dynamic risk threshold, the medium-intensity error correction configuration file is determined as the target error correction configuration file. When the error risk value is greater than or equal to the second dynamic risk threshold, the high-intensity error correction configuration file is determined as the target error correction configuration file.
5. The method for dynamically configuring error correction intensity based on NAND wear state perception according to claim 1, characterized in that, When performing a read operation on data in a candidate physical page, retrieving the target error correction configuration file from the mapping table for error correction decoding includes: Based on the logical address of the data to be read, query the corresponding candidate physical page and target error correction configuration file from the mapping table; Based on the error correction strength parameters and read retry parameters in the target error correction configuration file, error correction encoded data read from candidate physical pages is subjected to error correction decoding.
6. The method for dynamically configuring error correction intensity based on NAND wear state perception according to claim 4, characterized in that, The step of "when the bit error risk value is greater than or equal to the first dynamic risk threshold and less than the second dynamic risk threshold" further includes: Get the cumulative number of reads of candidate physical pages within a preset time window; When the cumulative number of reads exceeds the preset threshold, the read interference increment is determined based on the cumulative number of reads, and the error risk value is updated to the sum of the current error risk value and the read interference increment. The updated error risk value is compared with the second dynamic risk threshold. If the updated error risk value is greater than or equal to the second dynamic risk threshold, the target error correction configuration file is switched to a high-intensity error correction configuration file.
7. The method for dynamically configuring error correction intensity based on NAND wear state perception according to claim 1, characterized in that, Also includes: After generating the page-level wear state vector, obtain the variance of the erase / write count distribution of all used blocks in the system; When the variance of the erase / write count distribution is greater than the preset variance threshold, calculate the ratio of the deviation between the erase / write count of the erase block to which the candidate physical page belongs and the system average erase / write count. The wear equalization correction factor is determined based on the deviation ratio; The error risk value is corrected by using the wear leveling correction factor to obtain the corrected error risk value.
8. The method for dynamically configuring error correction intensity based on NAND wear state perception according to claim 1, characterized in that, Also includes: Obtain the average number of erase / write operations per block used for each storage controller and the usage ratio of each error correction configuration file; The average number of erases and writes for the group is calculated based on the average number of erases and writes for the used blocks, and the average usage ratio for the group is calculated based on the usage ratio of each error correction configuration file. Determine whether the deviation between the average number of erases and writes of used blocks of the current storage controller and the average number of erases and writes of the group is greater than a preset erase and write count deviation threshold. If so, determine the first correction parameter based on the deviation value. Determine whether the deviation between the current storage controller's error correction configuration file usage ratio and the group's average usage ratio is greater than a preset usage ratio deviation threshold. If so, determine the second correction parameter based on the deviation value. The first dynamic risk threshold of the current storage controller is corrected according to the first correction parameter, and the second dynamic risk threshold of the current storage controller is corrected according to the second correction parameter.
9. A dynamic configuration system for error correction intensity based on NAND wear state perception, characterized in that, The system includes a memory and a processor. The memory stores a program for a dynamic configuration method of error correction strength based on NAND wear state awareness. When the program for the dynamic configuration method of error correction strength based on NAND wear state awareness is executed by the processor, it performs the following steps: Obtain the page state data of the candidate physical page and the data protection attributes of the data to be written, and generate the page-level wear state vector corresponding to the candidate physical page based on the page state data; Based on the page-level wear state vector and the data protection attribute, calculate the bit error risk value corresponding to the candidate physical page; The target error correction configuration file is determined from a pre-established set of error correction configuration files based on the bit error risk value. The error correction configuration file includes error correction strength parameters, bit rate parameters, and read retry parameters. According to the target error correction configuration file, the data to be written is coded for error correction and written to the candidate physical page. The mapping table establishes the correspondence between the logical address of the data to be written, the candidate physical page and the target error correction configuration file. When performing a read operation on data in a candidate physical page, the target error correction configuration file is retrieved from the mapping table for error correction decoding.
10. The error correction intensity dynamic configuration system based on NAND wear state perception according to claim 9, characterized in that, The process of obtaining the page state data of candidate physical pages and the data protection attributes of the data to be written, and generating a page-level wear state vector corresponding to the candidate physical pages based on the page state data, includes: Page state data includes the number of erase / write operations of the erase block to which the candidate physical page belongs, the programming operation statistics of the candidate physical page, the data retention time, and the read operation statistics; Based on the data stream identifier to which the data to be written belongs, determine the data protection attributes, including the retention duration level and the read reliability level; Normalize the erase / write count, programming operation statistics, data retention time, and read operation statistics. The normalized page state data are combined into an initial page-level wear state vector; Based on the bad block marking information in the bad block table of the erase block to which the candidate physical page belongs, the initial page-level wear state vector is corrected for the influence of adjacent blocks to obtain the page-level wear state vector.
Citation Information
Patent Citations
Dynamic error correction method suitable for three-dimensional NAND flash memory, controller and storage system
CN119440906A
NAND wear leveling method based on integrated circuit ECC and read delay
CN121747671A
