Bad block replacement method and device, computer device and computer readable storage medium

By dividing the SSD plane into different categories and replacing the blocks, the problem of insufficient SSD storage capacity caused by block damage is solved, extending the lifespan of the SSD and reducing costs.

CN115798557BActive Publication Date: 2026-01-13JIANGSU XINSHENG INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211396460.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2026-01-13
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

When using a solid-state drive (SSD), block corruption can cause plane abnormalities, resulting in insufficient storage capacity and rendering the SSD unusable.

Method used

Based on the damage status of the blocks, the Planes are divided into Category 1 and Category 2. Damaged blocks in Category 1 Planes are selected as target blocks, and intact blocks in Category 2 Planes are selected as replacement blocks. Replacement is performed one-to-one according to the nearest DIE principle, and the replacement information is recorded.

Benefits of technology

It increases the lifespan of SSDs, reduces usage costs, and improves storage space utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115798557B_ABST
    Figure CN115798557B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a bad block replacement method and device, computer equipment and a computer readable storage medium, and belong to the technical field of storage. The method comprises: dividing each plane into a first type of plane or a second type of plane according to the damage condition of the blocks in each plane; obtaining at least one damaged block in the first type of plane as a target block; obtaining at least one intact block in the second type of plane as a replacement block; replacing each target block and each replacement block one by one according to the nearest DIE principle; and recording the replacement information in a data storage device available for NFC query. In this way, the intact blocks of the SSD can replace the damaged blocks, the damaged blocks are replaced by the intact replacement blocks for data processing operations, the service life of the SSD is improved, and the use cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage technology, and in particular to a bad block replacement method, apparatus, computer device, and computer-readable storage medium. Background Technology

[0002] Currently, solid-state drives (SSDs) are widely used in various applications due to their high performance and low power consumption. An SSD has the following basic structure: Page, Block, Plane, Die (DIE), and NAND flash memory chip. The Page is the most basic component, typically 4KB in size; each Block usually contains 32 or 64 Pages; multiple Blocks form a Plane, and each DIE contains one or more Planes. A NAND flash memory chip is composed of multiple DIEs. During SSD use, Block corruption can occur. If one or more Blocks fail, a Plane anomaly will occur, leading to insufficient storage capacity and rendering the SSD unusable. Summary of the Invention

[0003] To address the aforementioned technical problems, embodiments of this application provide a bad block replacement method, apparatus, computer device, and computer-readable storage medium.

[0004] In a first aspect, embodiments of this application provide a bad block replacement method, the method comprising:

[0005] Based on the damage status of the blocks in each Plane, each Plane is classified into either a Class I Plane or a Class II Plane.

[0006] Identify at least one corrupted Block from the first type of Plane as the target Block;

[0007] Obtain at least one intact block from the second type of Plane as the replacement block;

[0008] Based on the nearest DIE principle, each target block and each replacement block are replaced one-to-one;

[0009] Replacement information is recorded in a data storage device that can be queried by NFC.

[0010] In one embodiment, classifying each Plane into a first-class Plane or a second-class Plane based on the damage status of the Blocks in each Plane includes:

[0011] Planes whose block integrity ratio is greater than or equal to the integrity ratio threshold are defined as the first type of Plane;

[0012] Planes whose block integrity ratio is less than the integrity ratio threshold are classified as the second type of Plane.

[0013] In one embodiment, the method further includes:

[0014] Planes with a block integrity ratio of 100% are classified as Class III Planes.

[0015] In one embodiment, classifying each Plane into a first-class Plane or a second-class Plane based on the damage status of the Blocks in each Plane includes:

[0016] Sort the Planes according to the number of intact Blocks;

[0017] Based on the sorting results, Planes are divided into a first type and a second type, wherein the number of intact Blocks in the first type of Plane is greater than or equal to the number of damaged Blocks in the second type of Plane.

[0018] In one embodiment, the number of damaged blocks in the first type of Plane is less than or equal to the number of intact blocks in the second type of Plane.

[0019] In one embodiment, the step of performing a one-to-one replacement of each target block and each replacement block according to the nearest DIE principle includes:

[0020] Iterate through each target block to determine whether each target block has a replacement block with the same DIE;

[0021] If the current target block has a replacement block with the same DIE, then the replacement is performed. Otherwise, the process jumps to the next target block for judgment until one traversal is completed. For target blocks without a replacement block with the same DIE, the corresponding replacement block is determined according to the nearest DIE principle.

[0022] In one embodiment, the method further includes:

[0023] When an operation needs to be performed on any target block, the operation is performed on the replacement block of any target block according to the replacement information.

[0024] Secondly, embodiments of this application provide a bad block replacement device, the device comprising:

[0025] The partitioning module is used to classify each Plane into either a first-class Plane or a second-class Plane based on the damage status of the Blocks in each Plane.

[0026] The first acquisition module is used to acquire at least one damaged Block in the first type of Plane as the target Block;

[0027] The second acquisition module is used to acquire at least one intact Block in the second type of Plane as a replacement Block;

[0028] The replacement module is used to perform a one-to-one replacement of each target block and each replacement block according to the nearest DIE principle.

[0029] The recording module is used to record replacement information in a data storage device that can be queried by NFC.

[0030] Thirdly, embodiments of this application provide a computer device, including a memory and a processor, wherein the memory is used to store a computer program, and the computer program executes the bad block replacement method provided in the first aspect when the processor is running.

[0031] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, executes the bad block replacement method provided in the first aspect.

[0032] The bad block replacement method, apparatus, computer equipment, and computer-readable storage medium provided in this application divide each plane into a first-class plane or a second-class plane based on the damage status of the blocks in each plane; obtains at least one damaged block in the first-class plane as the target block; obtains at least one intact block in the second-class plane as the replacement block; performs a one-to-one replacement of each target block and each replacement block according to the nearest DIE principle; and records the replacement information in a data storage device that can be queried by NFC. In this way, intact blocks of the SSD can replace damaged blocks, and data processing operations can be performed using the intact replacement blocks corresponding to the damaged blocks, thereby improving the lifespan of the SSD and reducing usage costs. Attached Figure Description

[0033] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be considered as a limitation on the scope of protection of this application. In the various drawings, similar components are numbered similarly.

[0034] Figure 1 A flowchart of a bad block replacement method provided in an embodiment of this application is shown;

[0035] Figure 2 A schematic diagram of the bad block replacement device provided in an embodiment of this application is shown.

[0036] Icons: 200 - Bad block replacement device; 201 - Division module; 202 - First acquisition module; 203 - Second acquisition module; 204 - Replacement module; 205 - Recording module. Detailed Implementation

[0037] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0038] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0039] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.

[0040] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.

[0041] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.

[0042] Example 1

[0043] This application provides a bad block replacement method, which is applied to a computer-readable storage medium. The computer-readable storage medium includes multiple block pools and can be a solid-state drive.

[0044] See Figure 1 The bad block replacement method provided in this application embodiment is applied to the bad block replacement method. The method includes steps S101-S105, which will be described in detail below.

[0045] Step S101: Based on the damage status of the blocks in each Plane, classify each Plane into either a first-class Plane or a second-class Plane.

[0046] In this embodiment, the SSD includes at least one NAND flash memory chip, each NAND flash memory chip includes multiple DIEs, each DIE includes multiple Planes, and each Plane includes multiple Blocks. Block damage can be characterized by the block good / bad ratio, which can include the block integrity ratio or the block damage ratio. Specifically, the block integrity ratio is the ratio of the number of good blocks in each Plane to the total number of blocks in each Plane, and the block damage ratio is the ratio of the number of bad blocks in each Plane to the total number of blocks in each Plane. In this embodiment, a first-class Plane can be understood as a Plane with most blocks being intact, and a second-class Plane can be understood as a Plane with most blocks being damaged. Exemplarily, a Plane can be classified as either a first-class Plane or a second-class Plane based on the block good / bad ratio.

[0047] It should be noted that step S101 can be executed during the SSD initialization phase or at other phases; there are no restrictions here. For example, if the SSD is in the initialization phase, powering on the SSD and scanning for damage information on all blocks is performed, the ratio of good to bad blocks in each plane is calculated, and each plane of the SSD is classified as either a first-class plane or a second-class plane based on the ratio of good to bad blocks in each plane. The SSD can also be other storage devices; there are no restrictions here.

[0048] In one embodiment, step S101 includes:

[0049] Planes whose block integrity ratio is greater than or equal to the integrity ratio threshold are defined as the first type of Plane;

[0050] Planes whose block integrity ratio is less than the integrity ratio threshold are classified as the second type of Plane.

[0051] In this embodiment, the integrity ratio threshold can be a user-defined ratio, for example, the integrity ratio threshold can be 70%.

[0052] In one embodiment, the bad block replacement method further includes:

[0053] Planes with a block integrity ratio of 100% are classified as Class III Planes.

[0054] It should be noted that the third type of Plane refers to a Plane where all blocks are intact. The first type of Plane has more intact blocks than damaged blocks, and the second type of Plane has fewer intact blocks than damaged blocks. Damaged blocks in the first type of Plane can be replaced by intact blocks in the second type of Plane. Furthermore, it should be added that when the Block integrity ratio is 100%, it means all blocks in the Plane are intact and no block replacement is needed. When the Block integrity ratio is 0%, it means all blocks in the Plane are damaged and can be discarded.

[0055] Furthermore, in one embodiment, step S101 includes:

[0056] Planes with a Block damage ratio less than or equal to the damage ratio threshold are defined as the first type of Plane;

[0057] Planes with a Block damage ratio greater than the damage ratio threshold are classified as the second type of Plane.

[0058] Planes with a Block damage ratio of 0 are classified as Class III Planes.

[0059] In this embodiment, the damage ratio threshold can be a user-defined percentage; for example, the block damage ratio threshold can be 30%, and there is no limitation here. It should be noted that when the block damage ratio is 0, it means that all blocks of the plane are intact and no block replacement is needed. When the block damage ratio is 100%, it means that all blocks of the plane are damaged and can be discarded.

[0060] This ensures that a damaged block can be replaced by a corresponding intact block.

[0061] In one embodiment, step S101 includes:

[0062] Sort the Planes according to the number of intact Blocks;

[0063] Based on the sorting results, Planes are divided into a first type and a second type, wherein the number of intact Blocks in the first type of Plane is greater than or equal to the number of damaged Blocks in the second type of Plane.

[0064] In this embodiment, the step of dividing the first type of Plane and the second type of Plane according to the sorting result includes:

[0065] Planes with an intact number of blocks greater than or equal to a preset block number threshold are classified as the first type, and planes with an intact number of blocks less than the preset block number threshold are classified as the second type.

[0066] In this embodiment, the preset block number threshold can be determined according to the actual situation. The preset block number threshold can be a large value that is less than the total number of blocks in each plane.

[0067] By designating the highest-ranking Planes as the first type of Plane, system resources can be saved and the efficiency of replacing damaged Blocks in the first type of Plane can be improved. At the same time, it maximizes the replacement with intact Blocks from the second type of Plane, thereby improving the utilization rate of intact Blocks.

[0068] In this way, by ensuring that the number of intact blocks in the first type of Plane is greater than or equal to the number of damaged blocks in the second type of Plane, the operation of replacing damaged blocks in the first type of Plane with intact blocks in the second type of Plane can be simplified.

[0069] In one embodiment, the number of damaged blocks in the first type of Plane is less than or equal to the number of intact blocks in the second type of Plane.

[0070] In this way, by ensuring that the number of damaged blocks in the first type of Plane is less than or equal to the number of intact blocks in the second type of Plane, the damaged blocks in the first type of Plane can be replaced by corresponding intact blocks in the second type of Plane, thereby improving the block replacement rate.

[0071] As an example, the number of repairable planes can be determined based on the number of damaged blocks in the first type of plane and the number of intact blocks in the second type of plane. For instance, the smaller of the number of damaged blocks in the first type of plane and the number of intact blocks in the second type of plane can be selected as the number of repairable planes. The intact blocks in the second type of plane are used to replace the damaged blocks in the first type of plane; therefore, the second type of plane can also be understood as a library of intact blocks.

[0072] Step S102: Select at least one damaged Block from the first type of Plane as the target Block.

[0073] In this embodiment, one, several, or all of the damaged blocks in each of the damaged blocks of each of the first type of Plane can be selected as the target block.

[0074] Step S103: Obtain at least one intact Block from the second type of Plane as a replacement Block.

[0075] In this embodiment, one, several, or all of the intact blocks from each intact block in each Plane of the second type can be selected as the replacement block.

[0076] Step S104: Replace each target block and each replacement block one-to-one according to the nearest DIE principle.

[0077] In this embodiment, to improve the efficiency of the replacement process, each target block and each replacement block are replaced one-to-one according to the nearest DIE principle. First, it is determined whether a replacement block exists in the DIE containing each target block. If a replacement block exists in the DIE containing each target block, then each target block in the same DIE is replaced with its replacement block. If no replacement block exists in the DIE containing each target block, then it is checked whether a replacement block exists in the neighboring DIEs of the target block's DIE. If a replacement block exists in a neighboring DIE of the target block's DIE, then each target block is replaced with its neighboring replacement block.

[0078] In one embodiment, step S104 includes:

[0079] Iterate through each target block to determine whether each target block has a replacement block with the same DIE;

[0080] If the current target block has a replacement block with the same DIE, then the replacement is performed. Otherwise, the process jumps to the next target block for judgment until one traversal is completed. For target blocks without a replacement block with the same DIE, the corresponding replacement block is determined according to the nearest DIE principle.

[0081] It should be further explained that for target blocks that do not have a replacement block with the same DIE, the corresponding replacement block is determined according to the principle of proximity DIE. This can be understood as taking the target blocks that do not have a replacement block with the same DIE as the remaining target blocks, and querying from the nearest to the farthest DIE of each remaining target block to see if there is a replacement block, until a replacement block is found in the proximity DIE of each remaining target block.

[0082] As an example, the process first checks if a replacement block exists in the DIE containing each target block. If it does, the corresponding replacement block is determined from the DIE containing each target block. After checking if a replacement block exists in the DIE containing each target block, if at least one target block still does not have a corresponding replacement block, the process continues to search for a replacement block in the neighboring DIEs of the remaining target blocks, until all remaining blocks have a corresponding replacement block.

[0083] Step S105: Record the replacement information in a data storage device that can be queried by NFC.

[0084] In this way, when the target block is needed, the replacement block can be obtained by querying the replacement signal, and the corresponding operation can be performed in the replacement block, avoiding operation on the damaged block and achieving the goal of effectively utilizing the intact block.

[0085] It should be noted that replacement information can be stored using a replacement mapping table between the target block and the replacement block. This replacement mapping table can be stored in the SSD and can include the physical information of both the target block and the replacement block. Data processing operations are performed on the replacement block based on the physical block information in the replacement mapping table. The SSD controller queries the replacement mapping table to determine whether the block to be operated on belongs to the target block. If it does, it automatically performs data processing operations on the replacement block of the block to be operated on.

[0086] This can improve the utilization of intact blocks on the SSD, reduce the impact of damaged blocks on the SSD, and improve the storage space utilization of the SSD.

[0087] In one embodiment, the bad block replacement method further includes:

[0088] When an operation needs to be performed on any target block, the operation is performed on the replacement block of any target block according to the replacement information.

[0089] When performing data processing on an SSD, such as storing or retrieving data, a corresponding data processing request is generated. This request indicates the block to be processed. If the block to be processed belongs to the target block, it means that data processing cannot be performed directly on that block; instead, the data processing operation needs to be performed on its replacement block. If the block to be processed in the data processing request does not belong to any of the target blocks, it means that data processing can be performed directly on that block.

[0090] In this way, damaged blocks can be replaced during the data processing of the SSD, and data processing operations can actually be performed on the intact blocks corresponding to the damaged blocks, thereby improving the lifespan of the SSD and reducing usage costs.

[0091] The bad block replacement method provided in this embodiment divides each plane into a first-class plane or a second-class plane based on the damage status of the blocks in each plane; it selects at least one damaged block in the first-class plane as the target block; it selects at least one intact block in the second-class plane as the replacement block; it performs a one-to-one replacement of each target block and each replacement block according to the nearest DIE principle; and it records the replacement information in a data storage device that can be queried by NFC. In this way, the intact blocks of the SSD can replace the damaged blocks, and data processing operations can be performed using the intact replacement blocks corresponding to the damaged blocks, thereby improving the lifespan of the SSD and reducing the cost of use.

[0092] Example 2

[0093] Furthermore, this application provides a bad block replacement device, which is applied to an SSD.

[0094] like Figure 2 As shown, the bad block replacement device 200 includes:

[0095] The partitioning module 201 is used to partition each Plane into a first-class Plane or a second-class Plane according to the damage status of the Blocks in each Plane.

[0096] The first acquisition module 202 is used to acquire at least one damaged Block in the first type of Plane as the target Block;

[0097] The second acquisition module 203 is used to acquire at least one intact Block in the second type of Plane as a replacement Block;

[0098] Replacement module 204 is used to replace each target block and each replacement block one-to-one according to the nearest DIE principle;

[0099] The recording module 205 is used to record replacement information in a data storage device that can be queried by NFC. In one embodiment, the segmentation module 201 is further used to determine the Plane with a Block integrity ratio greater than or equal to the integrity ratio threshold as the first type of Plane;

[0100] Planes whose block integrity ratio is less than the integrity ratio threshold are classified as the second type of Plane.

[0101] In one embodiment, the partitioning module 201 is further configured to identify a Plane with a Block integrity ratio of 100% as a third type of Plane.

[0102] In one embodiment, the partitioning module 201 is further configured to sort each Plane according to the number of intact Blocks;

[0103] Based on the sorting results, Planes are divided into a first type and a second type, wherein the number of intact Blocks in the first type of Plane is greater than or equal to the number of damaged Blocks in the second type of Plane.

[0104] In one embodiment, the number of damaged blocks in the first type of Plane is less than or equal to the number of intact blocks in the second type of Plane.

[0105] In one embodiment, the replacement module 204 is further configured to traverse each target block to determine whether each target block has a replacement block with the same DIE.

[0106] If the current target block has a replacement block with the same DIE, then the replacement is performed. Otherwise, the process jumps to the next target block for judgment until one traversal is completed. For target blocks without a replacement block with the same DIE, the corresponding replacement block is determined according to the nearest DIE principle.

[0107] In one embodiment, the bad block replacement device 200 further includes:

[0108] The processing module is used to operate on the replacement block of any target block according to the replacement information when an operation needs to be performed on any target block.

[0109] The bad block replacement device provided in this embodiment divides each plane into a first type of plane or a second type of plane based on the damage status of the blocks in each plane; it selects at least one damaged block in the first type of plane as the target block; it selects at least one intact block in the second type of plane as the replacement block; it performs a one-to-one replacement of each target block and each replacement block according to the nearest DIE principle; and it records the replacement information in a data storage device that can be queried by NFC. In this way, the intact blocks of the SSD can replace the damaged blocks, and data processing operations can be performed using the intact replacement blocks corresponding to the damaged blocks, thereby improving the lifespan of the SSD and reducing the cost of use.

[0110] Example 3

[0111] Furthermore, this application provides a computer device including a memory and a processor. The memory stores a computer program, which executes the bad block replacement method provided in Embodiment 1 when running on the processor.

[0112] The computer device provided in this embodiment can implement the bad block replacement method provided in Embodiment 1. To avoid repetition, it will not be described again here.

[0113] Example 4

[0114] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the bad block replacement method provided in Embodiment 1.

[0115] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or a solid-state drive, etc.

[0116] The computer-readable storage medium provided in this embodiment can implement the bad block replacement method provided in Embodiment 1. To avoid repetition, it will not be described again here.

[0117] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.

[0118] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0119] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A bad block replacement method, characterized by, The method comprises: dividing each Plane into a first type Plane or a second type Plane according to the damage condition of the Blocks in each Plane; obtaining at least one damaged Block in the first type Plane as a target Block; obtaining at least one intact Block in the second type Plane as a replacement Block; performing one-to-one replacement of each target Block and each replacement Block according to a nearest DIE principle; recording replacement information in a data storage available for NFC query; the dividing each Plane into a first type Plane or a second type Plane according to the damage condition of the Blocks in each Plane comprises: determining a Plane with a Block intact ratio greater than or equal to an intact ratio threshold as the first type Plane; determining a Plane with a Block intact ratio less than the intact ratio threshold as the second type Plane.

2. The method of claim 1, wherein, Further comprising: determining a Plane with a Block intact ratio of 100% as a third type Plane.

3. The method of claim 1, wherein, The dividing each Plane into a first type Plane or a second type Plane according to the damage condition of the Blocks in each Plane comprises: sorting each Plane according to the number of intact Blocks; dividing the first type Plane and the second type Plane according to the sorting result, wherein the number of intact Blocks in the first type Plane is greater than or equal to the number of damaged Blocks in the second type Plane.

4. The method of claim 3, wherein, The number of damaged Blocks in the first type Plane is less than or equal to the number of intact Blocks in the second type Plane.

5. The method of claim 1, wherein, The performing one-to-one replacement of each target Block and each replacement Block according to a nearest DIE principle comprises: traversing each target block to determine whether each target Block has a replacement Block with the same DIE; if the current target block has a replacement Block with the same DIE, then performing replacement, and if not, then jumping to the next target Block for judgment until completing one traversal, and for the target Block without a replacement Block with the same DIE, determining the corresponding replacement Block according to the nearest DIE principle.

6. The method of claim 1, wherein, Further comprising: when any target Block needs to be operated, operating the replacement Block of any target Block according to the replacement information.

7. A bad block replacement device characterized by comprising: The device comprises: a division module configured to divide each Plane into a first type Plane or a second type Plane according to the damage condition of the Blocks in each Plane; a first obtaining module configured to obtain at least one damaged Block in the first type Plane as a target Block; a second obtaining module configured to obtain at least one intact Block in the second type Plane as a replacement Block; a replacement module configured to perform one-to-one replacement of each target Block and each replacement Block according to a nearest DIE principle; a recording module configured to record the replacement information in a data storage accessible by the NFC query; the dividing the Planes into the first type of Plane or the second type of Plane according to the Block damage condition in each Plane comprises: determining a Plane with a Block perfect ratio greater than or equal to a perfect ratio threshold as the first type of Plane; determining a Plane with a Block perfect ratio less than the perfect ratio threshold as the second type of Plane.

8. A computer device, comprising: a memory storing a computer program, and a processor, wherein the computer program, when executed on the processor, performs the bad block replacement method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, a memory storing a computer program, wherein the computer program, when executed on a processor, performs the bad block replacement method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Bad block management method

    CN109669639A

  • Full multi-plane operation enablement

    CN113126899A