NAND storage layered Read Disturb protection method and device, equipment and medium
By identifying weak pages in NAND storage devices and maintaining block-level and region-level read interference counters in parallel, and setting differentiated thresholds, the problem of data corruption caused by excessive interference in weak page regions of NAND storage is solved, achieving higher data reliability and extended device lifespan.
Patent Information
- Application Number
- CN202511599468.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-04
- Publication Date
- 2026-01-27
AI Technical Summary
Existing technologies in NAND storage cannot effectively distinguish physical pages with different reliability levels, leading to the risk of data corruption in weak page regions due to excessive interference before the block-level read interference count reaches a threshold. This problem is particularly pronounced with the evolution of semiconductor processes.
By identifying weak pages within the physical blocks of NAND storage devices, maintaining a first read interference count table and a second read interference count table in parallel, setting differentiated trigger thresholds, and recording read interference counts for block-level and weak page regions respectively, data inspection and relocation operations are triggered in a timely manner.
It enables differentiated protection of physical pages with varying reliability under limited memory resources, reducing the probability of data loss and improving the reliability and lifespan of storage devices.
Smart Images

Figure CN121411706A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of solid-state drive technology, and in particular to a method, apparatus, device, and medium for NAND storage layered Read Disturb protection. Background Technology
[0002] NAND flash memory has become the core storage medium for devices such as solid-state drives (SSDs) and embedded storage. Its basic structure consists of multiple independently operable chips, each composed of multiple physical blocks. Each physical block is the smallest unit of erasure, and within a block, it is further divided into multiple physical pages, serving as the smallest unit of read and write operations. In practical use, due to the physical characteristics of NAND storage cells, frequent read operations on a particular physical page can generate read disturbances, causing charge disturbances in adjacent storage cells and leading to data errors. To address this issue, traditional protection mechanisms typically maintain a physical block-level read disturbance counter in the storage controller. By monitoring the cumulative number of reads for each physical block, a data inspection and relocation process is triggered when a preset threshold is reached, thus eliminating the risk of accumulated read disturbances.
[0003] However, with the continuous evolution of semiconductor technology, the quality differences between physical pages within NAND flash memory are becoming increasingly significant. Some physical pages, due to their manufacturing process location or device characteristics, exhibit inherently lower reliability and are referred to as weak pages. In actual access mode, if read operations are concentrated on these weak pages or their adjacent areas, read interference effects will accumulate rapidly in that local area. Since existing solutions rely solely on global read interference counts at the physical block level for judgment, weak page areas may experience data corruption due to excessive interference before the block-level read interference count reaches a threshold, posing a risk of user data loss. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for NAND storage tiered read disturbance protection. The technical problem it aims to solve is: how to achieve differentiated read disturbance protection for physical pages with different reliability in NAND storage under limited memory resources, so as to avoid data loss in weak page areas before the block-level read disturbance count threshold is triggered.
[0005] In a first aspect, embodiments of the present invention provide a method for NAND storage tiered Read Disturbance protection, comprising: Identify weak pages within the physical blocks of a NAND storage device; During the operation of the NAND storage device, a first read interference count table and a second read interference count table are maintained. The first read interference count table is used to record the block-level read interference count of each physical block, and the second read interference count table is used to record the region read interference count related to the weak page within each physical block. When the block-level read interference count of the physical block reaches a first threshold, or the region read interference count of the physical block reaches a second threshold, a data inspection and relocation operation for the physical block is triggered; wherein the second threshold is less than the first threshold.
[0006] A further technical solution is that maintaining the first read interference count table and the second read interference count table includes: In response to a read operation on a physical page within a physical block, update the block-level read interference count corresponding to the physical block in the first read interference count table; In response to the physical page being determined to be associated with the weak page, the region read interference count corresponding to the physical block in the second read interference count table is updated.
[0007] A further technical solution is that identifying weak pages within the physical blocks of a NAND storage device includes: The reliability of the NAND storage medium of the NAND storage device was tested, and the test results were obtained. Count the number of error bits for each physical page in the test results; Physical pages with more than a preset error threshold are identified as weak pages.
[0008] A further technical solution is that, after identifying weak pages within the physical blocks of the NAND storage device, the method further includes: Generate a one-dimensional graph to indicate whether each physical page is a neighboring physical page of the weak page; The method further includes the following steps before the physical page is determined to be associated with the weak page: If the physical page is marked as an adjacent physical page of the weak page by querying the bitmap, then the physical page is determined to be related to the weak page.
[0009] A further technical solution is that the steps of maintaining the first read interference count table and the second read interference count table are executed synchronously in the data reading process of the read operation.
[0010] A further technical solution is that the triggering of the data inspection and relocation operation on the physical block includes: Perform page-by-page data reading and error checking on the physical block; When it is found that the number of error bits in the physical pages of the physical block exceeds the relocation threshold, the valid data in the physical block is moved to a new target physical block.
[0011] A further technical solution is that, after moving the valid data within the physical block to the new target physical block, the method further includes: Reset the count values corresponding to the physical block in the first read interference count table and the second read interference count table.
[0012] Secondly, embodiments of the present invention also provide a NAND storage layered Read Disturb protection device, which includes a unit for performing the above-described method.
[0013] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.
[0014] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.
[0015] This invention provides a method, apparatus, device, and medium for tiered read disturbance protection of NAND storage. The method includes: identifying weak pages within physical blocks of a NAND storage device; maintaining a first read disturbance count table and a second read disturbance count table during the operation of the NAND storage device, wherein the first read disturbance count table records block-level read disturbance counts for each physical block, and the second read disturbance count table records region read disturbance counts related to the weak pages within each physical block; triggering data inspection and relocation operations on the physical block when the block-level read disturbance count of the physical block reaches a first threshold, or the region read disturbance count of the physical block reaches a second threshold; wherein the second threshold is less than the first threshold. This invention achieves precise tiered monitoring by identifying weak pages in NAND storage blocks, maintaining two sets of read disturbance count tables (block-level and weak-page region-level) in parallel, and setting differentiated trigger thresholds. This method can effectively distinguish between overall and local read disturbance risks under limited memory resources, especially by setting lower thresholds for weak-page regions, ensuring that protective data relocation is triggered in advance before data corruption, thereby significantly reducing the probability of data loss and improving the reliability and lifespan of the storage device. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart illustrating a NAND storage layered Read Disturb protection method provided in an embodiment of the present invention; Figure 2 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0018] 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, not all, of the embodiments of the present invention. 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.
[0019] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0020] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0021] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0022] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."
[0023] Please see Figure 1 This invention provides a method for protecting NAND storage tiered Read Disturbance, which includes the following steps: S1 identifies weak pages within the physical blocks of a NAND storage device.
[0024] In practice, by systematically identifying weak pages within the physical blocks of NAND storage devices beforehand, a clear target object is established for the entire protection system. As inherent reliability weaknesses in the media, the identification of weak pages allows subsequent protection measures to shift from "comprehensive coverage" to "focused monitoring," laying a scientific and objective foundation for the entire method. By conducting reliability tests on the media and judging based on the number of error bits, it ensures that the identified weak pages truly reflect the inherent defects of the media itself, rather than being based on theoretical assumptions.
[0025] In some preferred embodiments, the above step of "identifying weak pages within the physical blocks of the NAND storage device" specifically includes the following steps: performing a reliability test on the NAND storage medium of the NAND storage device and obtaining the test results; counting the number of error bits for each physical page in the test results; and identifying physical pages with an error bit count exceeding a preset error threshold as the weak pages.
[0026] In practice, firsthand data is obtained by conducting actual reliability tests on the NAND storage medium itself. These tests simulate stress conditions encountered in real-world use, such as data retention, cycle endurance, and read interference acceleration, thus realistically exposing the inherent defects and reliability distribution of the medium under specific manufacturing processes. By statistically analyzing the number of error bits in each physical page during testing and filtering according to preset error thresholds, a clear, unified, and repeatable standard for defining "weak pages" is established. This is akin to performing a comprehensive "physical examination" on the storage medium, accurately identifying those inherently "weak" storage cells more prone to errors.
[0027] S2, during the operation of the NAND storage device, a first read interference count table and a second read interference count table are maintained. The first read interference count table is used to record the block-level read interference count of each physical block, and the second read interference count table is used to record the region read interference count related to the weak page within each physical block.
[0028] In practice, a two-tiered real-time monitoring mechanism is constructed by maintaining a first read interference counter and a second read interference counter in parallel during the operation of the NAND storage device. The first read interference counter tracks the overall read pressure of each physical block at a macro level, maintaining basic and comprehensive monitoring of the health status of the storage units, functioning similarly to a wide-area monitoring network. The second read interference counter, on the other hand, is specifically used to record the read frequency of regions related to weak pages within each physical block at a micro level. This is equivalent to deploying highly sensitive specialized sensors at all high-risk locations within the wide-area monitoring network. This parallel dual-table maintenance mechanism expands and refines the monitoring dimensions.
[0029] In some preferred embodiments, the above steps of "maintaining the first read interference count table and the second read interference count table" specifically include the following steps: in response to a read operation on a physical page within a physical block, updating the block-level read interference count in the first read interference count table corresponding to the physical block; in response to the physical page being determined to be associated with the weak page, updating the region read interference count in the second read interference count table corresponding to the physical block.
[0030] In specific implementation, when a read operation on a physical page within a physical block is detected, the block-level read interference count corresponding to the physical block in the first read interference count table is updated synchronously; further, when the physical page is determined to be related to the weak page, the region read interference count corresponding to the physical block in the second read interference count table is updated synchronously.
[0031] In this embodiment, the count update operation is tightly coupled into the data reading process of each read operation. This means that monitoring is performed synchronously with data access, enabling real-time and comprehensive recording of the impact of each access on the storage unit. This design avoids monitoring latency that may be caused by offline or periodic scanning, allowing the read interference count to accurately reflect the current cumulative pressure state of the physical blocks. Furthermore, it clarifies that the update of the second read interference count table is based on the determination of whether the currently read physical page is related to a weak page. For example, if a read operation accesses a physical page far from a weak page, it only updates the block-level count and does not contribute to the region count.
[0032] In some preferred embodiments, after the above step of "identifying weak pages within a physical block of the NAND storage device", the method further includes the following step: generating a bitmap to indicate whether each physical page is an adjacent physical page of the weak page; wherein, in response to the physical page being determined to be associated with the weak page, the method further includes: querying the bitmap, and if the physical page is marked as an adjacent physical page of the weak page, then determining that the physical page is associated with the weak page.
[0033] In practical implementation, a bitmap is introduced to identify the physical pages adjacent to weak pages and uses it as the basis for determining whether a physical page is related to a weak page. This greatly improves the determination efficiency, thereby enhancing data reliability while ensuring performance. The physical characteristics of read interference mean that its impact is not limited to the directly read unit but also affects adjacent storage units. This embodiment pre-generates a bitmap to solidify the relationship information of "weak page adjacent physical pages" in the form of bits. During runtime, only a single fast memory lookup operation is needed to complete the determination, significantly reducing computational overhead and having a negligible impact on the main controller processor resources and command processing latency. In addition, the bitmap is generated according to the media characteristics before mass production, ensuring the accuracy and consistency of the determination.
[0034] For example, even if the host never directly reads a weak page, frequent readings of its adjacent pages can still threaten the data security of that weak page. This solution uses bitmaps to detect such accesses and accumulate region counts, thus achieving more comprehensive protection.
[0035] In some preferred embodiments, the steps of maintaining the first read interference count table and the second read interference count table are performed synchronously during the data reading process of the read operation.
[0036] In practice, the counter table update operation is explicitly executed synchronously within the data reading process of the read operation. This ensures the atomicity and integrity of read interference event recording, effectively avoids data inconsistency issues that may arise from asynchronous processing, and maintains the timeliness of system response. Embedding the counter update into the standard read process means that the operation and the data reading itself become a transactional whole. Whether in sequential or concurrent processing environments, this ensures that the interference effect of each successful data read is recorded immediately and accurately. If asynchronous or batch processing is used to update the counter, the counter data may become inconsistent with the actual read history when system anomalies occur (such as unexpected power outages or task interruptions), causing the monitoring mechanism to fail or make misjudgments. Synchronous execution fundamentally eliminates such risks. At the same time, this tightly coupled design avoids introducing independent background tasks for counter maintenance that may cause scheduling delays, keeping the assessment of read interference pressure synchronized with the business processing flow. This is crucial for storage systems that require rapid risk response and data security, ensuring that the reaction time of the protection mechanism is directly linked to the data access frequency, and that the best intervention opportunity is not missed due to processing delays.
[0037] In some preferred embodiments, the first read interference count table and the second read interference count table are stored non-volatilely after the NAND storage device is powered off, and are loaded into memory for maintenance when the NAND storage device is powered on.
[0038] In practice, the two read interference counters are stored non-volatilely and loaded upon power-on, ensuring the continuity and persistence of read interference monitoring history. This gives the protection mechanism long-term memory capabilities across power cycles, thereby improving the robustness and reliability of the solution. By storing the counters non-volatilely and restoring them upon each power-on, monitoring becomes a continuous task. Regardless of how many times the device is powered on and off, the tracking of read interference pressure on each physical block remains uninterrupted, enabling correct protection decisions based on complete historical data. This persistence is particularly important for applications requiring long-term stable operation, such as enterprise-grade SSDs or mobile device storage, ensuring that the consistency and reliability of data protection strategies are not affected by power supply conditions.
[0039] S3, when the block-level read interference count of the physical block reaches the first threshold, or the region read interference count of the physical block reaches the second threshold, a data inspection and relocation operation for the physical block is triggered; wherein, the second threshold is less than the first threshold.
[0040] In its implementation, this invention sets two independent trigger thresholds, explicitly stating that the second threshold is lower than the first. This feature produces a decisive protective effect: establishing a priority response mechanism based on risk level. Since weak pages and their associated regions are inherently far less tolerant of read interference than the average physical block, setting a lower trigger threshold for them means the system has higher sensitivity and faster response speed to anomalies in high-risk areas. When concentrated readings of weak page regions have not yet caused the global count of the entire physical block to reach the conventional threshold, the system can immediately initiate the protection process as long as the region count touches its own, more stringent security red line. This design effectively solves the problem of "premature corruption" of weak page data caused by uneven distribution of access within the block, establishing a priority protection channel for the most vulnerable data, significantly shortening the time window from risk identification to protection action execution, and greatly reducing the probability of data loss due to protection delays.
[0041] Furthermore, this method integrates the aforementioned monitoring logic with data inspection and relocation operations in a closed-loop manner. When the read interference count at any level reaches its corresponding threshold, the diagnostic and repair process for the target physical block is triggered. This linkage ensures that monitoring information can be promptly transformed into protective actions, forming an automated and intelligent protection closed loop from risk perception and assessment to final elimination. It can not only promptly stop the continuous accumulation of read interference effects, but also proactively restore data integrity by transferring endangered data to a safe area, thereby improving the overall resilience and data reliability of NAND storage devices in the face of read interference stress.
[0042] In some preferred embodiments, the above step "triggering data inspection and relocation operation of the physical block" specifically includes the following steps: performing page-by-page data reading and error checking on the physical block; when it is found that the number of error bits in a physical page of the physical block exceeds the relocation threshold, the valid data in the physical block is moved to a new target physical block.
[0043] In practice, the data inspection and relocation operations are limited to page-by-page error checking and conditional relocation, achieving precision in protection actions and high efficiency in resource utilization, avoiding unnecessary losses. This scheme does not blindly relocate the entire physical block after a trigger condition; instead, it first performs a thorough data inspection, reading and evaluating the number of error bits for each physical page within the physical block. This step plays a crucial "diagnostic" role, accurately distinguishing which pages within the physical block are indeed in a dangerous state (error bit count exceeding the relocation threshold) and which pages remain healthy or correctable. Based on the diagnostic results, when it is found that the number of error bits in any physical page of the physical block exceeds the relocation threshold, the valid data within that physical block is relocated to a new target physical block.
[0044] In some preferred embodiments, after the above step of "moving the valid data in the physical block to the new target physical block", the method further includes the following step: resetting the count values corresponding to the physical block in the first read interference count table and the second read interference count table.
[0045] In practice, the corresponding count values are reset after data migration, thus resetting the read interference monitoring status. This allows the protection mechanism to adapt to the dynamic lifecycle of the storage medium and provides an accurate new starting point for subsequent monitoring. The cumulative effect of read interference is related to the specific data pattern stored on a specific physical block. When a physical block is erased and new data is written, its internal charge distribution and interference sensitivity have changed, and the previously accumulated read interference count no longer reflects the actual interference situation of the new data. By actively clearing the count values of the corresponding physical blocks in the first and second read interference count tables after performing protective migration, it is equivalent to starting a completely new monitoring cycle for the new data on that physical block. This ensures that the read interference count always accurately reflects the actual read pressure experienced by the currently stored data, enabling the hierarchical protection logic to work continuously and correctly.
[0046] This invention proposes a layered read disturbance protection method for NAND storage, comprising: identifying weak pages within physical blocks of a NAND storage device; maintaining a first read disturbance count table and a second read disturbance count table during the operation of the NAND storage device, wherein the first read disturbance count table records the block-level read disturbance count of each physical block, and the second read disturbance count table records the region read disturbance count related to the weak page within each physical block; triggering data inspection and relocation operations on the physical block when the block-level read disturbance count of the physical block reaches a first threshold, or the region read disturbance count of the physical block reaches a second threshold; wherein the second threshold is less than the first threshold. This invention achieves precise layered monitoring by identifying weak pages in NAND storage blocks, maintaining two sets of read disturbance count tables (block-level and weak page region-level) in parallel, and setting differentiated trigger thresholds. This method can effectively distinguish between overall and local read disturbance risks under limited memory resources, especially by setting lower thresholds for weak page regions, ensuring that protective data relocation is triggered in advance before data corruption, thereby significantly reducing the probability of data loss and improving the reliability and lifespan of the storage device.
[0047] Corresponding to the above-described NAND storage tiered read Disturbance protection method, the present invention also provides a NAND storage tiered read Disturbance protection device. This NAND storage tiered read Disturbance protection device includes a unit for performing the above-described NAND storage tiered read Disturbance protection method, and can be configured in a desktop computer, tablet computer, laptop computer, or other terminal. Specifically, the NAND storage tiered read Disturbance protection device includes: The identification unit is used to identify weak pages within the physical blocks of a NAND storage device. The maintenance unit is used to maintain a first read interference count table and a second read interference count table during the operation of the NAND storage device. The first read interference count table is used to record the block-level read interference count of each physical block, and the second read interference count table is used to record the region read interference count related to the weak page within each physical block. The triggering unit is used to trigger a data inspection and relocation operation on the physical block when the block-level read interference count of the physical block reaches a first threshold or the area read interference count of the physical block reaches a second threshold; wherein the second threshold is less than the first threshold.
[0048] In some preferred embodiments, maintaining the first read interference count table and the second read interference count table includes: In response to a read operation on a physical page within a physical block, update the block-level read interference count corresponding to the physical block in the first read interference count table; In response to the physical page being determined to be associated with the weak page, the region read interference count corresponding to the physical block in the second read interference count table is updated.
[0049] In some preferred embodiments, identifying weak pages within a physical block of the NAND storage device includes: The reliability of the NAND storage medium of the NAND storage device was tested, and the test results were obtained. Count the number of error bits for each physical page in the test results; Physical pages with more than a preset error threshold are identified as weak pages.
[0050] In some preferred embodiments, it further includes: A generation unit is used to generate a one-dimensional graph to indicate whether each physical page is a neighboring physical page of the weak page; The query unit is used to query the bitmap. If the physical page is marked as an adjacent physical page of the weak page, then the physical page is determined to be related to the weak page.
[0051] In some preferred embodiments, the steps of maintaining the first read interference count table and the second read interference count table are performed synchronously during the data reading process of the read operation.
[0052] In some preferred embodiments, triggering the data inspection and relocation operation on the physical block includes: Perform page-by-page data reading and error checking on the physical block; When it is found that the number of error bits in the physical pages of the physical block exceeds the relocation threshold, the valid data in the physical block is moved to a new target physical block.
[0053] In some preferred embodiments, it further includes: A reset unit is used to reset the count values corresponding to the physical block in the first read interference count table and the second read interference count table.
[0054] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned NAND storage layered ReadDisturb protection device and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0055] The aforementioned NAND storage tiered read disturbance protection device can be implemented as a computer program, which can, for example... Figure 2It runs on the computer device shown.
[0056] Please see Figure 2 , Figure 2 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.
[0057] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0058] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to perform a NAND storage tiered read disturbance protection method.
[0059] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0060] The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can perform a NAND storage tiered ReadDisturb protection method.
[0061] The network interface 505 is used for network communication with other devices. Those skilled in the art will understand that the above structure is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. A specific computer device 500 may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.
[0062] The processor 502 is used to run a computer program 5032 stored in the memory to perform the following steps: Identify weak pages within the physical blocks of a NAND storage device; During the operation of the NAND storage device, a first read interference count table and a second read interference count table are maintained. The first read interference count table is used to record the block-level read interference count of each physical block, and the second read interference count table is used to record the region read interference count related to the weak page within each physical block. When the block-level read interference count of the physical block reaches a first threshold, or the region read interference count of the physical block reaches a second threshold, a data inspection and relocation operation for the physical block is triggered; wherein the second threshold is less than the first threshold.
[0063] In some preferred embodiments, maintaining the first read interference count table and the second read interference count table includes: In response to a read operation on a physical page within a physical block, update the block-level read interference count corresponding to the physical block in the first read interference count table; In response to the physical page being determined to be associated with the weak page, the region read interference count corresponding to the physical block in the second read interference count table is updated.
[0064] In some preferred embodiments, identifying weak pages within a physical block of the NAND storage device includes: The reliability of the NAND storage medium of the NAND storage device was tested, and the test results were obtained. Count the number of error bits for each physical page in the test results; Physical pages with more than a preset error threshold are identified as weak pages.
[0065] In some preferred embodiments, after identifying weak pages within a physical block of the NAND storage device, the method further includes: Generate a one-dimensional graph to indicate whether each physical page is a neighboring physical page of the weak page; The method further includes the following steps before the physical page is determined to be associated with the weak page: If the physical page is marked as an adjacent physical page of the weak page by querying the bitmap, then the physical page is determined to be related to the weak page.
[0066] In some preferred embodiments, the steps of maintaining the first read interference count table and the second read interference count table are performed synchronously during the data reading process of the read operation.
[0067] In some preferred embodiments, triggering the data inspection and relocation operation on the physical block includes: Perform page-by-page data reading and error checking on the physical block; When it is found that the number of error bits in the physical pages of the physical block exceeds the relocation threshold, the valid data in the physical block is moved to a new target physical block.
[0068] In some preferred embodiments, after moving the valid data within the physical block to the new target physical block, the method further includes: Reset the count values corresponding to the physical block in the first read interference count table and the second read interference count table.
[0069] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0070] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0071] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When executed by a processor, the computer program causes the processor to perform the following steps: Identify weak pages within the physical blocks of a NAND storage device; During the operation of the NAND storage device, a first read interference count table and a second read interference count table are maintained. The first read interference count table is used to record the block-level read interference count of each physical block, and the second read interference count table is used to record the region read interference count related to the weak page within each physical block. When the block-level read interference count of the physical block reaches a first threshold, or the region read interference count of the physical block reaches a second threshold, a data inspection and relocation operation for the physical block is triggered; wherein the second threshold is less than the first threshold.
[0072] In some preferred embodiments, maintaining the first read interference count table and the second read interference count table includes: In response to a read operation on a physical page within a physical block, update the block-level read interference count corresponding to the physical block in the first read interference count table; In response to the physical page being determined to be associated with the weak page, the region read interference count corresponding to the physical block in the second read interference count table is updated.
[0073] In some preferred embodiments, identifying weak pages within a physical block of the NAND storage device includes: The reliability of the NAND storage medium of the NAND storage device was tested, and the test results were obtained. Count the number of error bits for each physical page in the test results; Physical pages with more than a preset error threshold are identified as weak pages.
[0074] In some preferred embodiments, after identifying weak pages within a physical block of the NAND storage device, the method further includes: Generate a one-dimensional graph to indicate whether each physical page is a neighboring physical page of the weak page; The method further includes the following steps before the physical page is determined to be associated with the weak page: If the physical page is marked as an adjacent physical page of the weak page by querying the bitmap, then the physical page is determined to be related to the weak page.
[0075] In some preferred embodiments, the steps of maintaining the first read interference count table and the second read interference count table are performed synchronously during the data reading process of the read operation.
[0076] In some preferred embodiments, triggering the data inspection and relocation operation on the physical block includes: Perform page-by-page data reading and error checking on the physical block; When it is found that the number of error bits in the physical pages of the physical block exceeds the relocation threshold, the valid data in the physical block is moved to a new target physical block.
[0077] In some preferred embodiments, after moving the valid data within the physical block to the new target physical block, the method further includes: Reset the count values corresponding to the physical block in the first read interference count table and the second read interference count table.
[0078] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.
[0079] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0080] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0081] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0082] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0083] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0084] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.
[0085] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for protecting NAND storage layered Read Disturbance, characterized in that, include: Identify weak pages within the physical blocks of a NAND storage device; During the operation of the NAND storage device, a first read interference count table and a second read interference count table are maintained. The first read interference count table is used to record the block-level read interference count of each physical block, and the second read interference count table is used to record the region read interference count related to the weak page within each physical block. When the block-level read interference count of the physical block reaches a first threshold, or the region read interference count of the physical block reaches a second threshold, a data inspection and relocation operation for the physical block is triggered; wherein the second threshold is less than the first threshold.
2. The NAND storage tiered Read Disturbance Protection Method according to claim 1, characterized in that, The maintenance of the first read interference count table and the second read interference count table includes: In response to a read operation on a physical page within a physical block, update the block-level read interference count corresponding to the physical block in the first read interference count table; In response to the physical page being determined to be associated with the weak page, the region read interference count corresponding to the physical block in the second read interference count table is updated.
3. The NAND storage tiered Read Disturbance Protection Method according to claim 1, characterized in that, The identification of weak pages within the physical blocks of a NAND storage device includes: The reliability of the NAND storage medium of the NAND storage device was tested, and the test results were obtained. Count the number of error bits for each physical page in the test results; Physical pages with more than a preset error threshold are identified as weak pages.
4. The NAND storage tiered Read Disturbance protection method according to claim 1, characterized in that, After identifying weak pages within the physical blocks of the NAND storage device, the method further includes: Generate a one-dimensional graph to indicate whether each physical page is a neighboring physical page of the weak page; The method further includes the following steps before the physical page is determined to be associated with the weak page: If the physical page is marked as an adjacent physical page of the weak page by querying the bitmap, then the physical page is determined to be related to the weak page.
5. The NAND storage tiered Read Disturbance Protection Method according to claim 2, characterized in that, The steps of maintaining the first read interference count table and the second read interference count table are performed synchronously during the data reading process of the read operation.
6. The NAND storage tiered Read Disturbance Protection Method according to claim 1, characterized in that, The triggering of the data inspection and relocation operation of the physical block includes: Perform page-by-page data reading and error checking on the physical block; When it is found that the number of error bits in the physical pages of the physical block exceeds the relocation threshold, the valid data in the physical block is moved to a new target physical block.
7. The NAND storage tiered Read Disturbance Protection Method according to claim 6, characterized in that, After moving the valid data within the physical block to the new target physical block, the method further includes: Reset the count values corresponding to the physical block in the first read interference count table and the second read interference count table.
8. A NAND storage layered read disturbance protection device, characterized in that, Includes a unit for performing the method as described in any one of claims 1-7.
9. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-7.