A method, system, device and storage medium for label recovery of a vdfb table

By restoring the VDFB table markers through parallel scanning of the logical physical address translation table during the SSD power-on initialization phase, the problem of VDFB table loss after power failure is solved, improving storage space utilization efficiency and the speed of power-on and power-off processes.

CN116257462BActive Publication Date: 2026-11-20SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310033020.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-10
Publication Date
2026-11-20
Estimated Expiration
2043-01-10

AI Technical Summary

Technical Problem

Because the vdfb table loses its values ​​when power is lost, the storage space utilization efficiency of SSDs is low and the recovery time is long during power-on and power-off processes. Existing technologies cannot efficiently recover the vdfb table's markings.

Method used

During the power-on initialization phase, the VDFB table is marked as untrusted, and the valid data frames are determined by parallel scanning of the logical physical address translation table by the idle core. The marking of the VDFB table is restored to ensure that the VDFB table is marked as trustworthy after initialization. When data blocks are reclaimed, valid data frames are reclaimed according to the VDFB table indication.

Benefits of technology

It achieves efficient recovery of VDFB table markers lost during power loss without affecting SSD performance and recycling process, thus improving storage space utilization efficiency and power-on/off speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116257462B_ABST
    Figure CN116257462B_ABST
Patent Text Reader

Abstract

This invention relates to a method, system, device, and storage medium for recovering the marked VDFB table. During the power-on initialization phase, all VDFB tables are marked as untrusted, and the VDFB values ​​in the VDFB tables corresponding to all used data blocks are set to 0. This application uses an idle core to execute a subtask in the task pool that scans the logical physical address translation table to determine valid data frames. The VDFB values ​​corresponding to the physical address regions of the valid data frames are then set to 1 to recover the VDFB tables. During the recovery process, the VDFB tables are marked as untrusted, and after recovery, they are marked as trustworthy. When reclaiming data blocks, the trustworthiness of the corresponding VDFB table for the data block to be reclaimed is first checked. If trustworthy, the data block to be reclaimed is reclaimed according to the valid data frames indicated by the trustworthy VDFB table. This achieves the recovery of VDFB values ​​lost due to power failure without affecting SSD performance or the reclamation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of VDFB table processing technology, and in particular to a method, system, device, and storage medium for restoring the tags of a VDFB table. Background Technology

[0002] With the development of solid-state drive (SSD) technology, SSDs have been widely used in various applications and have gradually replaced traditional HDDs in the PC market, providing users with a better experience in terms of reliability and performance.

[0003] Due to the physical characteristics of SSDs, to efficiently utilize the NAND flash memory, the NAND is divided into multiple fixed-size data blocks (the smallest data erase / write unit in an SSD). Each data block stores multiple data frames, and SSD storage space utilization is controlled through reclamation. During reclamation, valid data frames need to be copied and organized into the same data blocks. Therefore, it's essential to know the data frames to be reclaimed; reading them block by block would be too inefficient. Therefore, a VDFB (Valid DataFrame Bitmap) table is used to record this information. Each bit represents the validity of a data frame within a block; a bit value of 1 indicates a valid data frame, and a bit value of 0 indicates an invalid data frame. One block corresponds to one VDFB table. The values ​​in the VDFB table are maintained in memory during power-on; once power is lost, the values ​​in the VDFB table in memory are lost. Because each data frame corresponds to a bit in the VDFB table, the VDFB table occupies a large amount of space, and saving and restoring it during power-on and power-off cycles consumes significant time and space. Summary of the Invention

[0004] To solve the above-mentioned technical problems, or at least partially solve them, the present invention provides a method, system, device, and storage medium for restoring the markers of a VDFB table.

[0005] In a first aspect, the present invention provides a mark recovery method for a VDFB table, applied to a VDFB table that records the validity of data frames stored in each physical address region of a data block, comprising:

[0006] During the power-on initialization phase, all VDFB tables are marked as untrusted, and the VDFB tables corresponding to all previously used data blocks are set to 0, initiating the VDFB table maintenance process. After initialization, each idle core scans the Logical Physical Address Translation Table (LPTP) in parallel to find valid data frames. The LPTP records the mapping relationship between the host address and physical address of valid data frames. The VDFB corresponding to the physical address region where the valid data frame is located is set to 1 until the LPTP is completely scanned, at which point the VDFB table corresponding to the data block is marked as trustworthy.

[0007] Furthermore, when there is a need to reclaim the data block, the system determines whether the data block to be reclaimed needs to be reclaimed and checks whether the VDFB table corresponding to the data block to be reclaimed is trustworthy. If it is trustworthy, the system reclaims the data block to be reclaimed according to the valid data frame indicated by the trustworthy VDFB table. If it is not trustworthy, the system finds the valid data frame in the data block to be reclaimed by reverse lookup of the logical physical address translation table before performing the reclamation.

[0008] Furthermore, during the maintenance of the vdfb table: all vdfb entries in the vdfb table corresponding to the target data block to which data will be written are set to 1, and the vdfb entries corresponding to the physical address region where invalid data frames are located are set to 0.

[0009] Furthermore, all vdfb entries in the vdfb table corresponding to the target data block to be written are set to 1. Before each write to the target data block, the target data block is erased, and all vdfb entries in the vdfb table corresponding to the target data block are set to 1, indicating that the data frames stored in each physical address region of the target data block are valid.

[0010] Furthermore, setting the vdfb corresponding to the region containing the invalid data frame to 0 includes:

[0011] Whenever a valid data frame changes from the original physical address region to the target physical address region, the data frame in the original physical address region becomes an invalid data frame, and the vdfb corresponding to the original physical address region is set to 0, indicating that the data frame in the original physical address region is invalid;

[0012] Whenever an invalid data frame is written to a physical address region, the vdfb corresponding to that physical address region is set to 0, indicating that the data frame stored in that physical address region is an invalid data frame.

[0013] Furthermore, identifying valid data frames involves parallel scanning of the logical-physical address translation table by each idle core, including:

[0014] The main core divides the task of scanning the logical physical address translation table to find valid data frames into subtasks. Each subtask scans a set number of addresses in the logical physical address translation table and dynamically puts the subtasks into a task pool of a set capacity. The task pool then assigns each subtask to an idle core for processing.

[0015] Furthermore, when the core processing the subtask is assigned to execute read / write commands, the currently executing subtask is terminated by interruption, and the read / write commands are executed.

[0016] Secondly, the present invention provides a mark recovery system for a vdfb table and a vdfb table maintenance module. The vdfb table maintenance module implements the maintenance process of the vdfb table: setting all vdfb in the vdfb table corresponding to the target data block to be written to to 1, and setting the vdfb corresponding to the physical address region where the invalid data frame is located to 0.

[0017] The VDFB table marking module marks all VDFB tables as untrusted during the power-on initialization phase; after scanning the logical physical address translation table, it marks the VDFB table corresponding to the data block as trustworthy.

[0018] The VDFB table recovery module, during the power-on initialization phase, sets the VDFB in the VDFB table corresponding to all used data blocks to 0 and enters the VDFB table maintenance process; after initialization, it uses each idle core to scan the logical physical address translation table in parallel to find valid data frames, and sets the VDFB corresponding to the physical address region where the valid data frame is located to 1, until the logical physical address translation table is completely scanned;

[0019] The recycling module determines the data block to be recycled, checks whether the VDFB table corresponding to the data block to be recycled is reliable. If it is reliable, the data block to be recycled is recycled according to the valid data frame indicated by the reliable VDFB table. If it is not reliable, the valid data frame in the data block to be recycled is found by reverse lookup of the logical physical address translation table before recycling is performed.

[0020] Thirdly, the present invention provides an SSD hard disk, comprising: a hard disk processing unit, a hard disk storage unit, and a bus unit, wherein the hard disk storage unit includes a data storage medium and an instruction storage medium, and the instruction storage medium stores at least one computer program, characterized in that the hard disk storage unit executes the computer program to implement the mark-and-recovery method for the vdfb table.

[0021] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processing unit, implements the mark recovery method for the vdfb table.

[0022] The technical solutions provided in the embodiments of the present invention have the following advantages compared with the prior art:

[0023] During the power-on initialization phase, the invention marks all VDFB tables as untrusted and sets the VDFB values ​​in the VDFB tables corresponding to all used data blocks to 0. This application uses an idle core to execute a subtask in the task pool that scans the logical physical address translation table to determine valid data frames. The VDFB values ​​corresponding to the physical address regions of the valid data frames are then set to 1 to restore the VDFB tables. During the restoration process, the VDFB tables are marked as untrusted, and after restoration, they are marked as trustworthy. When reclaiming data blocks, the invention first checks whether the VDFB table corresponding to the data block to be reclaimed is trustworthy. If trustworthy, the data block to be reclaimed is reclaimed according to the valid data frames indicated by the trustworthy VDFB table. This achieves the recovery of VDFB values ​​lost due to power failure without affecting SSD performance or the reclamation process. Attached Figure Description

[0024] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0025] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 A flowchart illustrating a method for restoring the markers of a VDFB table, provided in an embodiment of the present invention;

[0027] Figure 2 This diagram illustrates the copying of valid data frames from the original physical address region to the target physical address region during the data block reclamation process.

[0028] Figure 3 A schematic diagram of a logical-physical address translation table provided in an embodiment of the present invention;

[0029] Figure 4 A flowchart of the recycling process for a tag recovery method adapted to a VDFB table, provided as an embodiment of the present invention;

[0030] Figure 5This is a schematic diagram of a tag recovery system for a vdfb table provided in an embodiment of the present invention. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] 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 apparatus 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 apparatus. 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 apparatus that includes said element.

[0033] Example 1

[0034] This invention provides a method for marking and restoring a Virtual Demand Buffer (VDFB) table. The VDFB table records the validity of data frames stored in each physical address region of a data block. The values ​​in the VDFB table are maintained in memory during power-on; however, they are lost upon power-off. This VDFB table marking and restoration method is used to recover VDFB values ​​lost during power-off without affecting SSD performance or the recycling process.

[0035] See Figure 1 As shown, the method for restoring the markers of a VDFB table includes:

[0036] S100, during the power-on initialization phase, all vdfb tables are marked as untrusted, and the vdfb in the vdfb table corresponding to all the data blocks that have been used is set to 0.

[0037] S200, enters the VDFB table maintenance process. The VDFB table maintenance process refers to maintaining the VDFB values ​​in memory based on the validity and invalidity of data frames within data blocks. After the initialization phase, the SSD is allowed to be read and written, and data block reclamation is permitted. The data writing process and data block reclamation process modify the validity and invalidity of data frames within data blocks.

[0038] Specifically, during the maintenance of the vdfb table:

[0039] All vdfb entries in the vdfb table corresponding to the target data block to be written are set to 1. Before writing data to the target data block each time, the target data block is erased, and all vdfb entries in the vdfb table corresponding to the target data block are set to 1, indicating that the data frames stored in each physical address region of the target data block are valid.

[0040] Set the vdfb corresponding to the physical address region where the invalid data frame is located to 0:

[0041] Whenever a valid data frame changes from its original physical address region to its target physical address region, the data frame in the original physical address region becomes an invalid data frame, and the VDFB corresponding to the original physical address region is set to 0, indicating that the data frame in the original physical address region is invalid. (See also...) Figure 2 As shown, Figure 2 This reflects the process of transferring valid data to BLOCK3 during the reclamation of BLOCK1 and BLOCK2. During this process, the valid data frames df_A, df_C, df_E, df_F, df_G, and df_H of BLOCK1 are copied from the original physical address region of BLOCK1 to the target physical address region in BLOCK3. The vdfb bits corresponding to the data frames df_A, df_C, df_E, df_F, df_G, and df_H in the vdfb table corresponding to BLOCK1, which were originally 1, are changed to 0.

[0042] Whenever an invalid data frame is written to a physical address region, the vdfb corresponding to that physical address region is set to 0, indicating that the data frame stored in that physical address region is an invalid data frame.

[0043] After initialization, S300 uses parallel scanning of the logical-physical address translation table by each idle core to find valid data frames.

[0044] The logical-physical address translation table records the mapping relationship between the host address and physical address of valid data frames. For specific implementation details, please refer to [link / reference needed]. Figure 3 As shown, each address in the logical physical address translation table corresponds to a data frame. When the granularity of the data frame is consistent with the granularity of the file system, there is a one-to-one correspondence between the host address and each address in the logical physical address translation table. When the granularity of the data frame is larger than the granularity of the file system, it is possible for multiple host addresses to correspond to the same address in the logical physical address translation table.

[0045] In practice, valid data frames are those visible to the user via their host addresses. Valid data frames can be obtained by traversing the data frames corresponding to the host addresses in the logical-physical address translation table. During scanning, the scan proceeds in the direction from host address to logical-physical address.

[0046] In the specific implementation process, valid data frames are identified by scanning the logical-physical address translation table in parallel on each idle core, including:

[0047] The main core divides the task of scanning the logical physical address translation table to find valid data frames into subtasks. Each subtask scans a set number of addresses in the logical physical address translation table and dynamically puts the subtasks into a task pool of a set capacity. The task pool assigns each subtask to an idle core for processing, and each idle core processes the subtasks in the task pool using multiple threads.

[0048] To ensure the lifespan of SSD storage, data block reclamation is not a frequent operation, and its execution requires computational resources. Therefore, the execution priority of the VDFB table mark-and-recovery method in this application is set below read and write commands. When the core processing the subtask is allocated to execute read and write commands, the currently executing subtask is terminated by an interrupt, and the read and write commands are executed in turn. This is to avoid the VDFB table recovery process affecting the execution of other tasks.

[0049] S400: Set the vdfb corresponding to the physical address region where the valid data frame is located to 1. For valid data frames obtained during the traversal scan, set the vdfb corresponding to the physical address region where the frame is located to 1.

[0050] S500: Check whether the logical physical address translation table has been scanned. If not, execute steps S300 and S400. If yes, execute S600.

[0051] S600, mark the vdfb table corresponding to the data block as trusted.

[0052] The recycling process is adapted as follows to align with the tag recovery method for a VDFB table according to the present invention:

[0053] S10, when data block reclamation is required, first determine the data blocks that need to be reclaimed.

[0054] S20: Check whether the vdfb table corresponding to the data block to be reclaimed is trustworthy. If it is trustworthy, proceed to S30; if it is not trustworthy, proceed to S40.

[0055] S30, the data block to be reclaimed is reclaimed according to the valid data frame indicated by the trusted vdfb table.

[0056] S40, the valid data frames in the data block to be reclaimed are found by reverse lookup of the logical physical address translation table before reclamation is performed. Reverse lookup of the logical physical address translation table involves obtaining the target address in the table corresponding to the target data frame in the data block to be reclaimed, and then querying whether the target address has a mapped host address. If it does, the target data frame is valid; otherwise, it is invalid.

[0057] Example 2

[0058] This invention provides a further improvement to the method for restoring the markers of a VDFB table. Compared to Embodiment 1, the difference lies in:

[0059] This embodiment partitions the host address; the partitioning is based on the logical physical address translation table: first, the addresses in the logical physical address translation table are divided into different intervals according to data blocks, and the host address corresponding to the address of each interval or multiple combined intervals is assigned to a partition.

[0060] The task of scanning the logical physical address translation table is divided into multiple subtasks according to the host address partition.

[0061] Configure the subtasks into the task pool, and after scanning out the valid data frames in the subtasks, configure the VDFB table of the data block corresponding to the subtask as trusted.

[0062] Accordingly, when data block reclamation is required, the data blocks to be reclaimed are first determined. The data blocks to be reclaimed are traversed, and the reliability of the VDFB table corresponding to each data block is checked. If reliable, the data block to be reclaimed is reclaimed according to the valid data frames indicated by the reliable VDFB table. If unreliable, the valid data frames in the data block to be reclaimed are found by reverse lookup of the logical physical address translation table before reclamation is performed. Example 2 can perform reliable marking on smaller granular data blocks or data blocks together. Compared to Example 1, where all DFB tables are marked as reliable after the entire task of scanning the logical physical address translation table is completed, this example can perform reliable marking on the recovered VDFB tables.

[0063] Example 3

[0064] See Figure 4 As shown, this embodiment of the invention provides a mark-and-restore system for a VDFB table capable of implementing a mark-and-restore method for VDFB tables, comprising:

[0065] The vdfb table maintenance module implements the vdfb table maintenance process: setting all vdfb entries in the vdfb table corresponding to the target data block to be written to to 1, and setting the vdfb entries corresponding to the physical address region where invalid data frames are located to 0.

[0066] The vdfb table marking module marks all vdfb tables as untrusted during the power-on initialization phase; and marks the vdfb table corresponding to the data block as trustworthy after the vdfb table recovery module has scanned the logical physical address translation table.

[0067] The VDFB table recovery module, during the power-on initialization phase, sets the VDFB entries in the VDFB table corresponding to all used data blocks to 0, and enters the VDFB table maintenance process. During the VDFB table maintenance process, it calls the VDFB table maintenance module to maintain the VDFB table. After power-on initialization, it uses each idle core to scan the Logical Physical Address Translation Table (LPAT) in parallel to find valid data frames. The LPAT records the mapping relationship between the host address and physical address of valid data frames. It sets the VDFB corresponding to the physical address region where the valid data frame is located to 1, until the LPAT is completely scanned.

[0068] The recycling module determines the data block to be recycled, checks whether the VDFB table corresponding to the data block to be recycled is reliable. If it is reliable, the data block to be recycled is recycled according to the valid data frame indicated by the reliable VDFB table. If it is not reliable, the valid data frame in the data block to be recycled is found by reverse lookup of the logical physical address translation table before recycling is performed.

[0069] Example 4

[0070] See Figure 5 As shown in the figure, this invention provides an SSD storage disk based on a mark-and-recovery method using a VDFB table, comprising: a disk processing unit, a disk storage unit, and a bus unit. The disk storage unit includes a data storage medium and an instruction storage medium. The instruction storage medium stores at least one computer program, and the disk storage unit executes the computer program to implement the mark-and-recovery method using the VDFB table.

[0071] S100, during the power-on initialization phase, all vdfb tables are marked as untrusted, and the vdfb in the vdfb table corresponding to all the data blocks that have been used is set to 0.

[0072] S200, enter the maintenance process of the vdfb table.

[0073] After initialization, S300 uses each idle core to scan the logical-physical address translation table in parallel to find valid data frames. The logical-physical address translation table records the mapping relationship between the host address and physical address of valid data frames.

[0074] S400 sets the vdfb corresponding to the physical address region where the valid data frame is located to 1.

[0075] S500: Check whether the logical physical address translation table has been scanned. If not, execute steps S300 and S400. If yes, execute S600.

[0076] S600, mark the vdfb table corresponding to the data block as trusted.

[0077] Example 4

[0078] This invention provides a computer-readable storage medium storing a computer program that, when executed by a processing unit, implements the vdfb table mark recovery method.

[0079] S100, during the power-on initialization phase, all vdfb tables are marked as untrusted, and the vdfb in the vdfb table corresponding to all the data blocks that have been used is set to 0.

[0080] S200, enter the maintenance process of the vdfb table.

[0081] After initialization, S300 uses each idle core to scan the logical-physical address translation table in parallel to find valid data frames. The logical-physical address translation table records the mapping relationship between the host address and physical address of valid data frames.

[0082] S400 sets the vdfb corresponding to the physical address region where the valid data frame is located to 1.

[0083] S500: Check whether the logical physical address translation table has been scanned. If not, execute steps S300 and S400. If yes, execute S600.

[0084] S600, mark the vdfb table corresponding to the data block as trusted.

[0085] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause an electronic device (which may be a mobile phone, personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0086] In the embodiments provided by this invention, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the structural embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, structures, or units, and may be electrical, mechanical, or other forms.

[0087] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0088] Furthermore, the functional units in the various embodiments of the present 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0089] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A tag recovery method for a VDFB table, applied to a VDFB table that records the validity of data frames stored in each physical address region of a data block, characterized in that, include: During the power-on initialization phase, all VDFB tables are marked as untrusted, and the VDFB tables corresponding to all previously used data blocks are set to 0, thus initiating the VDFB table maintenance process. During the VDFB table maintenance process, all VDFB tables corresponding to the target data blocks to be written to are set to 1, and the VDFB tables corresponding to the physical address regions where invalid data frames reside are set to 0. After initialization, each idle core scans the logical physical address translation table in parallel to find valid data frames. The logical physical address translation table records the mapping relationship between the host address and physical address of the valid data frame. The vdfb corresponding to the physical address region where the valid data frame is located is set to 1 until the logical physical address translation table is completely scanned. The vdfb table corresponding to the data block is marked as trustworthy. When there is a need to reclaim the data block, the data block to be reclaimed is determined, and the reliability of the VDFB table corresponding to the data block to be reclaimed is checked. If it is reliable, the data block to be reclaimed is reclaimed according to the valid data frame indicated by the reliable VDFB table. If it is not reliable, the valid data frame in the data block to be reclaimed is found by reverse lookup of the logical physical address translation table before the reclamation is performed.

2. The method for restoring the markers of a VDFB table according to claim 1, characterized in that, All vdfb entries in the vdfb table corresponding to the target data block to be written are set to 1. Before writing data to the target data block each time, the target data block is erased, and all vdfb entries in the vdfb table corresponding to the target data block are set to 1, indicating that the data frames stored in each physical address region of the target data block are valid.

3. The method for restoring the markers of a VDFB table according to claim 1, characterized in that, Setting the VDFB corresponding to the region containing the invalid data frame to 0 includes: Whenever a valid data frame changes from the original physical address region to the target physical address region, the data frame in the original physical address region becomes an invalid data frame, and the vdfb corresponding to the original physical address region is set to 0, indicating that the data frame in the original physical address region is invalid; Whenever an invalid data frame is written to a physical address region, the vdfb corresponding to that physical address region is set to 0, indicating that the data frame stored in that physical address region is an invalid data frame.

4. The method for restoring the markers of a VDFB table according to claim 1, characterized in that, Valid data frames are identified by scanning the logical-physical address translation table in parallel on each idle core, including: The main core divides the task of scanning the logical physical address translation table to find valid data frames into subtasks. Each subtask scans a set number of addresses in the logical physical address translation table and dynamically puts the subtasks into a task pool of a set capacity. The task pool then assigns each subtask to an idle core for processing.

5. The method for restoring the markers of a VDFB table according to claim 4, characterized in that, When the core processing the subtask is assigned to execute read / write commands, the currently executing subtask is terminated by an interrupt, and the read / write commands are executed.

6. A mark-and-recovery system for a VDFB table, applied to a VDFB table that records the validity of data frames stored in each physical address region of a data block, characterized in that, include: The vdfb table maintenance module implements the vdfb table maintenance process: setting all vdfb entries in the vdfb table corresponding to the target data block to be written to to 1, and setting the vdfb entries corresponding to the physical address region where the invalid data frame is located to 0. The VDFB table recovery module, during the power-on initialization phase, sets the VDFB in the VDFB table corresponding to all used data blocks to 0 and enters the VDFB table maintenance process; after initialization, it uses each idle core to scan the logical physical address translation table in parallel to find valid data frames, and sets the VDFB corresponding to the physical address region where the valid data frame is located to 1, until the logical physical address translation table is completely scanned; The VDFB table marking module marks all VDFB tables as untrusted during the power-on initialization phase; after scanning the logical physical address translation table, it marks the VDFB table corresponding to the data block as trustworthy. The recycling module determines the data block to be recycled, checks whether the VDFB table corresponding to the data block to be recycled is reliable. If it is reliable, the data block to be recycled is recycled according to the valid data frame indicated by the reliable VDFB table. If it is not reliable, the valid data frame in the data block to be recycled is found by reverse lookup of the logical physical address translation table before recycling is performed.

7. An SSD storage hard disk, comprising: The system comprises a hard disk processing unit, a hard disk storage unit, and a bus unit. The hard disk storage unit includes a data storage medium and an instruction storage medium, wherein the instruction storage medium stores at least one computer program. The system is characterized in that the hard disk storage unit executes the computer program to implement the mark-and-recovery method for the vdfb table as described in any one of claims 1-5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processing unit, it implements the tag recovery method for the vdfb table as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • File transmission method of Flash memory, terminal and storage medium

    CN111737161A

  • Garbage recycling method, device and equipment for solid state disk and medium

    CN114489489A