Method, device and equipment for accelerating NAND Flash background inspection health degree detection and medium

By filtering target physical blocks, dividing target groups and detecting page by page, the problem of increased error digits in large-capacity enterprise-level SSDs is solved, efficient risk block detection is achieved, and business stability and user IO performance are guaranteed.

CN120164510APending Publication Date: 2025-06-17成都芯忆联信息技术有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510334384.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The prior art is difficult to effectively detect potential risk blocks in large-capacity enterprise-level SSDs, resulting in a significant increase in the number of error digits, which may cause uncorrectable data errors and seriously threaten the stability of the business system.

Method used

By filtering the physical blocks to be detected from the solid-state hard disk, dividing the WL into multiple target groups, traversing all target groups, issuing a read command on one page in each target group, and determining whether there is a data exception in the target group based on the read data, and performing exception processing.

Benefits of technology

This method can effectively reduce the number of scans, improve detection efficiency, quickly locate potential risk blocks, avoid business reading erroneous data, and ensure stable user IO performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120164510A_ABST
    Figure CN120164510A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method, device and equipment for accelerating NAND Flash background inspection health degree detection and a medium, and relates to the technical field of SSD health detection.The method comprises the steps that a to-be-detected target physical block is screened from a solid state disk; dividing the WL in the target physical block into a plurality of target groups; traversing all the target groups, and issuing a read command to one page in each target group; and judging whether the target group corresponding to the page has data exception or not based on the data read from the page. According to the invention, by screening the target blocks, full scanning can be avoided, and the efficiency is improved; according to the method, the target group is divided, only one page of the target group is randomly inspected during each inspection, and whether the whole target group is abnormal or not is accurately judged based on the condition of the page, so that whole group scanning is avoided, the scanning quantity can be effectively reduced, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of SSD health detection, and particularly to a method, device, equipment and medium for accelerating the health detection of NAND Flash background patrol inspection. Background Art

[0002] Due to the physical characteristics of NAND Flash, solid state drives (SSDs) face multiple challenges in terms of data reliability. On the one hand, there is a read disturb phenomenon in NAND Flash cells, that is, when a certain storage cell is frequently read, the threshold voltage of adjacent cells may shift, resulting in data errors; on the other hand, in practical applications, the access address ranges of the storage space by users often show uneven distribution. Some blocks are subjected to high-frequency write / erase operations for a long time, while some other blocks are idle for a long time. This load imbalance will accelerate the aging rate of storage cells. The above problems together lead to the risk of a significant increase in the number of failure bits (FBC) in SSDs. Especially in large-capacity enterprise-level SSDs, due to high storage density and large data throughput, such risks are further amplified, which may cause uncorrectable data errors and seriously threaten the stability of business systems.

[0003] To cope with the FBC risk, the prior art usually adopts a background patrol inspection mechanism to evaluate the health status by scanning all blocks of the disk. However, the traditional solution has significant defects:

[0004] Contradiction between scanning efficiency and resource occupation: The full-disk scan of large-capacity enterprise-level SSDs needs to traverse a huge number of physical blocks. Due to the low IO priority of the traditional timing scan strategy, it is easy to be preempted by user data operations when the system is highly loaded, resulting in frequent interruption of the patrol inspection process and a significant increase in the overall time consumption;

[0005] Insufficient real-time risk detection: The uniform scan mode cannot dynamically focus on high-error-probability areas (such as frequently accessed blocks or blocks approaching the erase / write life), making the identification of risk blocks lag, and it is difficult to give early warnings or migrations in time before data errors occur;

[0006] Performance fluctuations caused by resource competition: The background patrol inspection and user IO operations share bandwidth and computing resources. Especially in the error correction and decoding (such as LDPC) link, the access delay may be increased due to resource contention, affecting the quality of business services.

[0007] Although prior art has attempted to improve the above problems by optimizing the scanning frequency or introducing local scanning strategies, its core still relies on static rules and lacks the ability to dynamically perceive and adaptively adjust to the operating state of the SSD (such as real-time load, block error rate trend, temperature conditions), resulting in low resource scheduling efficiency and difficulty in balancing the contradiction between the timeliness of risk detection and system performance loss. Therefore, how to design an efficient adaptive patrol mechanism to quickly locate potential risk blocks with minimal resource occupancy, avoid incorrect data reading for business, and ensure the stability of user IO performance has become a technical bottleneck that urgently needs to be broken through in the enterprise-level SSD field. Summary of the Invention

[0008] Embodiments of the present invention provide a method, device, equipment and medium for accelerating the health detection of NAND Flash background patrol, aiming to solve at least one technical problem in the above background technology.

[0009] In a first aspect, embodiments of the present invention provide a method for accelerating the health detection of NAND Flash background patrol, which includes:

[0010] Screen target physical blocks to be detected from the solid-state drive;

[0011] Divide the WLs (Word Lines) in the target physical blocks into multiple target groups;

[0012] Traverse all the target groups and issue a read command to one page in each target group;

[0013] Based on the data read from the page, determine whether there is data abnormality in the target group corresponding to the page.

[0014] A further technical solution thereof is that the screening of target physical blocks to be detected from the solid-state drive includes:

[0015] Screen physical blocks storing valid data from the solid-state drive as the target physical blocks.

[0016] A further technical solution thereof is that the dividing of the WLs in the target physical blocks into multiple target groups includes:

[0017] Obtain the test results of the media test of the WLs in the target physical blocks;

[0018] Based on the test results, divide the WLs in the target physical blocks into multiple target groups.

[0019] A further technical solution thereof is that the traversing of all the target groups and issuing a read command to one page in each target group;

[0020] Number the pages in the target group;

[0021] According to the number of times of traversing all target groups, read the data of the pages with corresponding numbers in each target group.

[0022] A further technical solution thereof is that determining whether there is data abnormality in the target group corresponding to the page based on the data read from the page includes:

[0023] Count the number of error bits in the page;

[0024] If the number of error bits in the page is greater than a preset number threshold, it is determined that there is data abnormality in the target group corresponding to the page.

[0025] A further technical solution thereof is that the method further includes:

[0026] If there is data abnormality in the target group, perform abnormality processing on the target group.

[0027] A further technical solution thereof is that performing abnormality processing on the target group includes:

[0028] Perform a full-page scan on the target group with abnormality to confirm the abnormal page;

[0029] Migrate the data of the abnormal page to a normal physical block.

[0030] In a second aspect, an embodiment of the present invention further provides a device for accelerating the health detection of NAND Flash background patrol, which includes a unit for executing the above method.

[0031] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, and a computer program is stored on the memory, and when the processor executes the computer program, the above method is implemented.

[0032] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the above method can be implemented.

[0033] An embodiment of the present invention provides a method, apparatus, device, and medium for accelerating the health detection of NAND Flash background patrol inspection. Among them, the method includes: An embodiment of the present invention proposes a method for accelerating the health detection of NAND Flash background patrol inspection, including: screening target physical blocks to be detected from a solid-state drive; dividing the WLs in the target physical blocks into multiple target groups; traversing all target groups and issuing a read command to one page in each target group; judging whether there is data abnormality in the target group corresponding to the page based on the data read from the page. In the present invention, by screening target blocks, full-disk scanning can be avoided, improving efficiency; by dividing target groups and only randomly checking one page of the target group during each patrol inspection, it is possible to accurately judge whether there is an abnormality in the entire target group based on the situation of this page, thereby avoiding full-group scanning, effectively reducing the scanning quantity, and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0035] Figure 1 It is a schematic flowchart of the method for accelerating the health detection of NAND Flash background patrol inspection provided by the embodiment of the present invention;

[0036] Figure 2 It is a schematic block diagram of the computer device provided by the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0038] It should be understood that when used in this specification and the appended claims, the terms "comprises" and "comprising" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0039] It should also be understood that the terms used in the specification of the present invention are merely for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms.

[0040] It should be further understood that the term "and / or" used in the specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0041] As used in this specification and the appended claims, the term "if" can be interpreted as "when", "once", "in response to determining" or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined", "in response to determining", "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]" according to the context.

[0042] Please refer to Figure 1 , an embodiment of the present invention provides a method for accelerating the health detection of background patrol of NAND Flash, and the method includes the following steps:

[0043] S1, screening target physical blocks to be detected from the solid-state drive.

[0044] In specific implementation, the physical blocks storing valid data in the solid-state drive are screened as the target physical blocks.

[0045] In the embodiment of the present invention, only the physical blocks (Blocks) storing valid data are traversed. Empty blocks (physical blocks without valid data) have no value for patrol inspection. Skipping such blocks can avoid waste of invalid resources. Focusing on the area where actual data is stored can effectively narrow the inspection range and improve efficiency.

[0046] S2, dividing the WLs in the target physical blocks into multiple target groups.

[0047] In specific implementation, for different WLs in the same block, due to manufacturing differences or different usage frequencies, the error rates are different. By grouping, the WLs with similar error risks are classified to form risk level labels, which is convenient for subsequent differential inspection.

[0048] In some embodiments, such as this embodiment, the above step "dividing the WLs in the target physical blocks into multiple target groups" specifically includes the following steps: obtaining the test results of the media test of the WLs in the target physical blocks; dividing the WLs in the target physical blocks into multiple target groups based on the test results.

[0049] In specific implementation, WL refers to the minimum unit for programming the storage medium; the pre - medium test refers to the systematic performance evaluation test of WL in the storage medium (NAND flash) during the SSD life cycle (such as factory test, first initialization, regular background maintenance, etc.).

[0050] The core detection indicators include but are not limited to:

[0051] Raw Bit Error Rate (RBER): The number of raw error bits without error correction when reading data;

[0052] Programming / Erasing Latency (P / E Latency): The time consumed for write or erase operations;

[0053] Program / Erase Cycles (P / E Cycles): The cumulative number of program / erase operations experienced by WL;

[0054] Data retention ability: The stability of stored charge at a specific temperature / time.

[0055] The grouping logic based on the test results can be specifically as follows:

[0056] 1. Data pre - processing

[0057] Normalization processing: Map each indicator to the 0 - 1 interval to eliminate unit differences.

[0058] Feature extraction: Calculate the risk score by weighting the test data of each WL. For example:

[0059] Risk score = α×RBER + β×P / E latency + γ×Program / Erase Cycles + δ×Retention decay rate

[0060] Where α, β, γ, δ are weight coefficients, which can be dynamically adjusted according to the SSD model / usage scenario, and are not specifically limited in this invention.

[0061] 2. Grouping strategy

[0062] Principle: Risk homogenization (small difference within the group) and inter - group heterogeneity (large difference between groups). Based on the risk scores of WL calculated above, group the WL. For example, divide the risk scores into multiple ranges, and each range corresponds to a target group.

[0063] Dynamic adjustment:

[0064] After each inspection, recalculate the risk scores of each WL

[0065] If the score of a certain WL deviates from the current group mean by more than a threshold (such as ±15%), move it to an adjacent risk - level group.

[0066] S3. Traverse all target groups and issue a read command to one page in each target group.

[0067] In specific implementation, during each inspection, traverse all target groups and issue a read command to one page in each target group. To avoid repeated inspection of the same page, pages in different areas within the polling coverage block are covered through round-robin; only a small number of pages in each group (such as 1 page per group) are randomly checked each time to reduce the load of a single inspection.

[0068] It can be understood that step S3 is executed regularly, that is, step S3 is executed once every preset inspection period.

[0069] In some embodiments, such as this embodiment, the above step "traverse all target groups and issue a read command to one page in each target group" specifically includes the following steps: number the pages in the target group; according to the number of times of traversing all target groups, correspondingly read the data of the page with the corresponding number in each target group.

[0070] In specific implementation, number the pages in the target group. For example, number them with natural numbers 1, 2, 3...

[0071] During the first traversal, issue a read command to the first page (Page) in each target group;

[0072] In each subsequent inspection, the page numbers randomly checked in each target group are incremented in turn (such as checking Page 1 for the first time and Page 2 for the second time). After all the pages in the target group have been read, start reading from the first page again.

[0073] S4. Based on the data read from the page, determine whether there is data abnormality in the target group corresponding to the page.

[0074] In specific implementation, if there is an abnormality in the data of the page, it is considered that there is an abnormality in the target group corresponding to the page. In the embodiments of the present invention, the overall risk within the group is inferred through sampling statistics to avoid the overhead of full-page scanning.

[0075] In some embodiments, such as this embodiment, the above step "based on the data read from the page, determine whether there is data abnormality in the target group corresponding to the page" specifically includes the following steps: count the number of error bits in the page; if the number of error bits in the page is greater than a preset number threshold, determine that there is data abnormality in the target group corresponding to the page.

[0076] In specific implementation, the number threshold can be set by those skilled in the art, and the present invention does not specifically limit this. At the same time, the setting of the number threshold can be dynamically adjusted (such as according to the SSD life stage) to balance the false alarm rate and the missed detection rate.

[0077] In some embodiments, such as the present embodiment, the method further includes: if there is data abnormality in the target group, performing abnormality processing on the target group.

[0078] Specifically, performing a full-page scan on the target group with abnormalities to confirm the abnormal page; migrating the data of the abnormal page to a normal (fault-free) physical block. Further, the block corresponding to the target group can also be marked as a high-risk area.

[0079] In the embodiments of the present invention, by means of first sampling for early warning and then precise positioning, the waste of resources in full-scale scanning can be reduced, and it is ensured that all abnormal pages can be accurately found; further, by data migration and marking operations, the business IO is preferentially guaranteed not to be blocked.

[0080] The embodiments of the present invention propose a method for accelerating the health detection of NAND Flash background patrol, including: screening target physical blocks to be detected from a solid-state drive; dividing the WL in the target physical blocks into multiple target groups; traversing all target groups and issuing a read command to one page in each target group; judging whether there is data abnormality in the target group corresponding to the page based on the data read from the page. In the present invention, by screening the target blocks, full-disk scanning can be avoided and the efficiency can be improved; by dividing the target groups and only sampling one page of the target group during each patrol, and accurately judging whether there is an abnormality in the entire target group based on the situation of this page, full-group scanning can be avoided, the number of scans can be effectively reduced, and the efficiency is improved.

[0081] Corresponding to the above method for accelerating the health detection of NAND Flash background patrol, the present invention also provides a device for accelerating the health detection of NAND Flash background patrol. The device for accelerating the health detection of NAND Flash background patrol includes units for executing the above method for accelerating the health detection of NAND Flash background patrol. The device for accelerating the health detection of NAND Flash background patrol can be configured in terminals such as desktop computers, tablet computers, laptop computers, etc. Specifically, the device for accelerating the health detection of NAND Flash background patrol includes:

[0082] A screening unit for screening target physical blocks to be detected from a solid-state drive;

[0083] A dividing unit for dividing the WL in the target physical blocks into multiple target groups;

[0084] A traversing unit for traversing all target groups and issuing a read command to one page in each target group;

[0085] A judgment unit, configured to judge whether there is data abnormality in the target group corresponding to the page based on the data read from the page.

[0086] In some embodiments, such as this embodiment, the screening of the target physical blocks to be detected from the solid-state drive includes:

[0087] Screening the physical blocks storing valid data from the solid-state drive as the target physical blocks.

[0088] In some embodiments, such as this embodiment, the dividing the WLs in the target physical blocks into multiple target groups includes:

[0089] Obtaining the test results of the media test of the WLs in the target physical blocks;

[0090] Dividing the WLs in the target physical blocks into multiple target groups based on the test results.

[0091] In some embodiments, such as this embodiment, traversing all the target groups and issuing a read command to a page in each target group;

[0092] Numbering the pages in the target group;

[0093] Reading the data of the pages with corresponding numbers in each target group according to the number of times of traversing all the target groups.

[0094] In some embodiments, such as this embodiment, the judging whether there is data abnormality in the target group corresponding to the page based on the data read from the page includes:

[0095] Counting the number of error bits in the page;

[0096] If the number of error bits in the page is greater than a preset number threshold, it is determined that there is data abnormality in the target group corresponding to the page.

[0097] In some embodiments, such as this embodiment, the device for accelerating the background health detection of NAND Flash further includes:

[0098] An exception handling unit, configured to perform exception handling on the target group if there is data abnormality in the target group.

[0099] In some embodiments, such as this embodiment, the performing exception handling on the target group includes:

[0100] Performing a full-page scan on the target group with abnormalities to confirm the abnormal pages;

[0101] Migrating the data of the abnormal pages to normal physical blocks.

[0102] It should be noted that those skilled in the art can clearly understand the specific implementation processes of the above-mentioned device for accelerating the health detection of NAND Flash background patrol and each unit. The corresponding descriptions in the foregoing method embodiments can be referred to. For the sake of convenience and conciseness of description, they will not be elaborated here.

[0103] The above-mentioned device for accelerating the health detection of NAND Flash background patrol can be implemented in the form of a computer program, and this computer program can run on a computer device as Figure 2 shown.

[0104] Please refer to Figure 2 , Figure 2 which is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device 500 can be a terminal or a server. Among them, the terminal can be an electronic device with communication functions such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server can be an independent server or a server cluster composed of multiple servers.

[0105] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501. Among them, the memory can include a non-volatile storage medium 503 and an internal memory 504.

[0106] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can be made to execute a method for accelerating the health detection of NAND Flash background patrol.

[0107] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0108] The internal memory 504 provides an environment for the operation 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 be made to execute a method for accelerating the health detection of NAND Flash background patrol.

[0109] The network interface 505 is used for network communication with other devices. Those skilled in the art can understand that the above structure is only a block diagram of some structures related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0110] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the method for accelerating the health detection of NAND Flash background patrol provided in any of the above embodiments, specifically including the following steps:

[0111] Screen the target physical blocks to be detected from the solid-state drive;

[0112] Divide the WLs in the target physical blocks into multiple target groups;

[0113] Traverse all the target groups and issue a read command to one page in each target group;

[0114] Based on the data read from the page, determine whether there is data abnormality in the target group corresponding to the page.

[0115] In some embodiments, such as this embodiment, the screening of the target physical blocks to be detected from the solid-state drive includes:

[0116] Screen the physical blocks storing valid data from the solid-state drive as the target physical blocks.

[0117] In some embodiments, such as this embodiment, the dividing the WLs in the target physical blocks into multiple target groups includes:

[0118] Obtain the test results of the media test of the WLs in the target physical blocks;

[0119] Based on the test results, divide the WLs in the target physical blocks into multiple target groups.

[0120] In some embodiments, such as this embodiment, the traversing all the target groups and issuing a read command to one page in each target group;

[0121] Number the pages in the target group;

[0122] According to the number of times of traversing all the target groups, read the data of the pages with the corresponding numbers in each target group.

[0123] In some embodiments, such as this embodiment, the determining whether there is data abnormality in the target group corresponding to the page based on the data read from the page includes:

[0124] Count the number of error bits in the page;

[0125] If the number of error bits in the page is greater than the preset number threshold, determine that there is data abnormality in the target group corresponding to the page.

[0126] In some embodiments, such as this embodiment, the method further includes:

[0127] If there is data anomaly in the target group, perform anomaly processing on the target group.

[0128] In some embodiments, such as this embodiment, the performing anomaly processing on the target group includes:

[0129] Perform full-page scanning on the target group with anomalies to confirm the anomaly page;

[0130] Migrate the data of the anomaly page to a normal physical block.

[0131] It should be understood that in the embodiments of the present invention, the processor 502 may be a central processing unit (CPU), and this processor 502 may also 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. Among them, the general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc.

[0132] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. This computer program can be stored in a storage medium, and this storage medium is a computer-readable storage medium. This 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.

[0133] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. This storage medium stores a computer program. When this computer program is executed by a processor, it causes the processor to execute a method for accelerating the health detection of the background patrol of NAND Flash provided in any of the above embodiments, specifically including the following steps:

[0134] Screen the target physical blocks to be detected from the solid-state drive;

[0135] Divide the WLs in the target physical blocks into multiple target groups;

[0136] Traverse all the target groups and issue a read command to one page in each target group;

[0137] Determine whether there is data abnormality in the target group corresponding to the page based on the data read from the page.

[0138] In some embodiments, such as this embodiment, screening the target physical blocks to be detected from the solid-state drive includes:

[0139] Screening the physical blocks storing valid data from the solid-state drive as the target physical blocks.

[0140] In some embodiments, such as this embodiment, dividing the WLs in the target physical blocks into multiple target groups includes:

[0141] Obtain the test results of the media test of the WLs in the target physical blocks;

[0142] Divide the WLs in the target physical blocks into multiple target groups based on the test results.

[0143] In some embodiments, such as this embodiment, traversing all the target groups and issuing a read command to a page in each target group;

[0144] Number the pages in the target group;

[0145] Read the data of the pages with corresponding numbers in each target group according to the number of times of traversing all the target groups.

[0146] In some embodiments, such as this embodiment, determining whether there is data abnormality in the target group corresponding to the page based on the data read from the page includes:

[0147] Count the number of error bits in the page;

[0148] If the number of error bits in the page is greater than the preset number threshold, determine that there is data abnormality in the target group corresponding to the page.

[0149] In some embodiments, such as this embodiment, the method further includes:

[0150] If there is data abnormality in the target group, perform abnormality processing on the target group.

[0151] In some embodiments, such as this embodiment, performing abnormality processing on the target group includes:

[0152] Perform a full-page scan on the target group with abnormalities to confirm the abnormal pages;

[0153] Migrate the data of the abnormal pages to healthy physical blocks.

[0154] The storage medium is a physical, non-transitory storage medium, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a magnetic disk, or an optical disc, etc., which are all physical storage media that can store program codes. The computer-readable storage medium can be non-volatile or volatile.

[0155] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0156] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0157] The steps in the method embodiments of the present invention can be adjusted, combined, and deleted according to actual needs. The units in the device embodiments of the present invention can be combined, divided, and deleted according to actual needs. In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on such an 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. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0159] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0160] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

[0161] As described above, it is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for accelerating NAND Flash background inspection health detection, characterized in that: include: Filter target physical blocks to be detected from the solid state drive; Dividing the WLs in the target physical block into a plurality of target groups; Traverse all target groups and issue a read command to a page in each target group; Based on the data read from the page, it is determined whether there is data anomaly in the target group corresponding to the page.

2. The method for accelerating the health detection of NAND Flash background inspection according to claim 1, characterized in that: The step of screening the target physical block to be detected from the solid state hard disk includes: The physical blocks storing valid data are selected from the solid state disk as the target physical blocks.

3. The method for accelerating NAND Flash background inspection health detection according to claim 1, wherein the step of dividing the WLs in the target physical block into a plurality of target groups comprises: Obtaining a test result of a medium test of the WL in the target physical block; The WLs in the target physical block are divided into a plurality of target groups based on the test result.

4. The method for accelerating the health detection of NAND Flash background inspection according to claim 1, characterized in that: The method traverses all target groups and issues a read command to a page in each target group; numbering the pages in the target group; According to the number of times all target groups are traversed, the data of the corresponding numbered pages in each target group are read accordingly.

5. The method for accelerating the health detection of NAND Flash background inspection according to claim 1, characterized in that: The determining whether there is data anomaly in the target group corresponding to the page based on the data read from the page includes: Counting the number of error bits in the page; If the number of error bits in the page is greater than a preset number threshold, it is determined that data anomalies exist in the target group corresponding to the page.

6. The method for accelerating the health detection of NAND Flash background inspection according to claim 5, characterized in that: The method further comprises: If there is data anomaly in the target group, perform anomaly processing on the target group.

7. The method for accelerating the health detection of NAND Flash background inspection according to claim 6, characterized in that: The performing exception processing on the target group includes: Performing full page scanning on the target group with abnormalities to confirm the abnormal pages; Migrate the abnormal page data to a healthy physical block.

8. A device for accelerating NAND Flash background inspection health detection, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 7.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Patent Citations

  • Method for reducing response delay of solid state hard disk

    CN106502583A

  • Method for dividing NANDFlash Wordline group

    CN111081306A

  • Solid state disk data inspection method and device, electronic equipment and storage medium

    CN117472274A

  • Apparatus, system, and method for managing data in a storage device with an empty data token directive

    US20080140910A1

  • Multi-Word Line Erratic Programming Detection

    US20150085575A1