Protection method and device for raid data of SSD, computer equipment and storage medium

By storing the temporary redundant data of SSD into the NADA of the solid state drive, the problem of insufficient SRAM capacity is solved, and the performance improvement and HMB dependency reduction is achieved.

CN120010781APending Publication Date: 2025-05-16SUZHOU UNIONMEMORY INFORMATION SYST LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510101084.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, when SSD generates temporary redundant data, due to the SRAM capacity, it is impossible to store the data in SRAM all the time, resulting in the need to rely on HMB or occupy more SRAM space.

Method used

By storing the first temporary redundant data into the NADA of the solid state drive, avoid occupancy of SRAM space and reduce dependence on HMB.

Benefits of technology

It effectively improves the performance of solid-state drives, avoids the problem of excessive SRAM usage, and reduces dependence on HMB.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010781A_ABST
    Figure CN120010781A_ABST
Patent Text Reader

Abstract

The invention discloses a protection method and device for raid data of an SSD, computer equipment and a storage medium, and relates to the technical field of SSD data protection. The protection method for the raid data of the SSD comprises the steps that data written into a solid state disk is divided to obtain a first data set; acquiring first temporary redundant data for protecting the first data group; and storing the first temporary redundant data in the NADA of the solid state disk. In the embodiment of the invention, the first temporary redundant data is temporarily stored in the NADA of the solid state disk, so that the occupation of an SRAM (Static Random Access Memory) of the solid state disk can be avoided, the dependence on an HMB (Human Machine Block) is avoided, and the performance of the solid state disk is effectively 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 data protection, and in particular to a method, device, computer equipment and storage medium for protecting RAID data of an SSD. Background Art

[0002] In a solid-state drive (SSD), SRAM (Static Random Access Memory) is usually used in cache and control logic, playing a very important role.

[0003] NAND flash is the most commonly used non-volatile storage technology in solid-state drives (SSDs). NAND flash is a type of non-volatile memory that retains data even after power is removed. This makes it ideal for use as a long-term storage medium, such as SSDs.

[0004] HMB, the full spelling of English is Host Memory Buffer, and the Chinese interpretation is host memory buffer. In solid-state drive (SSD) technology, HMB is a function to optimize performance.

[0005] For the protection of user data, SSD (Solid State Drive) will use WL RAID to generate temporary redundant data and recover the erroneous data. When generating temporary redundant data, it is limited by the size of SSD's SRAM capacity and cannot be kept in SRAM all the time. Usually, temporary redundant data is saved in HMB with the help of HMB space. If HMB is not supported, it can only take up more SRAM space.

[0006] It can be seen that in the prior art, temporary redundant data storage needs to occupy a large amount of SRAM capacity or rely on HMB. Summary of the invention

[0007] The embodiments of the present invention provide a method, an apparatus, a computer device and a storage medium for protecting RAID data of an SSD, aiming to solve at least one technical problem in the above-mentioned background technology.

[0008] In a first aspect, an embodiment of the present invention provides a method for protecting RAID data of an SSD, which includes:

[0009] A first data group is obtained by dividing the data written into the solid state drive;

[0010] Acquire first temporary redundant data for protecting the first data group;

[0011] The first temporary redundant data is stored in the NADA of the solid state drive.

[0012] A further technical solution is that the first data group is obtained by dividing the data written into the solid state drive, including:

[0013] Get the data written to a preset number of pages of the solid state drive;

[0014] The data in the preset number of pages are grouped into a first data group.

[0015] A further technical solution is that the step of obtaining first temporary redundant data for protecting the first data group includes:

[0016] An XOR operation is performed on the data in each page of the first data group to obtain the first temporary redundant data.

[0017] A further technical solution is that storing the first temporary redundant data in the NADA of the solid state drive comprises:

[0018] Storing the first temporary redundant data in the SRAM of the solid state drive;

[0019] The first temporary redundant data is transferred from the SRAM of the solid state drive to the NADA of the solid state drive to release the space of the SRAM of the solid state drive.

[0020] A further technical solution is that the method further comprises:

[0021] Read the first temporary redundant data from the NADA of the solid state drive;

[0022] A second data group is obtained by dividing the data written into the solid state drive;

[0023] generating second temporary redundant data for protecting the second data group based on the first temporary redundant data;

[0024] The second temporary redundant data is stored in the NADA of the solid state drive.

[0025] A further technical solution thereof is that the second data group is obtained by dividing the data written into the solid state hard disk;

[0026] Get the data written to a preset number of pages of the solid state drive;

[0027] The data in the preset number of pages are grouped into a second data group.

[0028] A further technical solution is that the generating of second temporary redundant data for protecting the second data group based on the first temporary redundant data includes:

[0029] An XOR operation is performed on the data in each page of the second data group and the first temporary redundant data to obtain the second temporary redundant data.

[0030] In a second aspect, an embodiment of the present invention further provides a device for protecting RAID data of an SSD, 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, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0032] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0033] The embodiment of the present invention provides a method, device, computer equipment and storage medium for protecting the raid data of an SSD. The method includes: obtaining a first data group from the data written into the solid state drive; obtaining first temporary redundant data for protecting the first data group; storing the first temporary redundant data in the NADA of the solid state drive. In the embodiment of the present invention, by temporarily storing the first temporary redundant data in the NADA of the solid state drive, the occupation of the SRAM of the solid state drive and the dependence on the HMB can be avoided, thereby effectively improving the performance of the solid state drive. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0035] Figure 1 A schematic diagram of a process of protecting SSD raid data provided by an embodiment of the present invention;

[0036] Figure 2 Another schematic diagram of a process for protecting SSD raid data provided by an embodiment of the present invention;

[0037] Figure 3 Another flow chart of a method for protecting SSD raid data provided by an embodiment of the present invention;

[0038] Figure 4 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

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

[0041] It should also be understood that the terms used in this specification of the present invention are only 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 plural forms.

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

[0043] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0044] See also Figure 1 , a flow chart of a method for protecting SSD raid data provided by an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0045] S1, obtaining a first data group by dividing the data written into the solid state drive.

[0046] In a specific implementation, the smallest storage unit of the solid state drive is a page, and a page can be 4KB or 8KB in size. The first data group is obtained by dividing the data written to the solid state drive, for example, dividing the data written to multiple pages of the solid state drive into a first data group. The number of first data groups can be multiple, which is not specifically limited by the present invention.

[0047] In some embodiments, such as the present embodiment, the above step of "dividing the data written to the solid state drive to obtain a first data group" includes the following steps: obtaining data in a preset number of pages written to the solid state drive; dividing the data in the preset number of pages into a first data group.

[0048] In a specific implementation, data in a preset number of pages written into the solid state drive are divided into a first data group in sequence. The preset number can be set by those skilled in the art and is not specifically limited in the present invention. For example, the preset number can be 6.

[0049] For example, see Figure 2 , page0-page5 in the solid state drive is divided into the first data group raid0;

[0050] Page6-page11 is divided into the first data group raid1; page12-page17 is divided into the first data group raid2.

[0051] S2: Obtain first temporary redundant data for protecting the first data group.

[0052] In a specific implementation, for each first data group, first temporary redundant data for protecting the first data group is respectively obtained.

[0053] For example, in some embodiments, such as the present embodiment, the above step of "obtaining first temporary redundant data for protecting the first data group" includes the following steps: performing an XOR operation on the data in each page of the first data group to obtain the first temporary redundant data.

[0054] Specifically, an XOR operation is performed on the data in each page of the first data group to obtain an operation result, and the operation result is used as the first temporary redundant data of the first data group.

[0055] For example, see Figure 2 , the first temporary redundant data of raid0 is Raid0_parity; the first temporary redundant data of raid1 is Raid1_parity; the first temporary redundant data of raid2 is Raid2_parity.

[0056] S3, storing the first temporary redundant data in the NADA of the solid state drive.

[0057] In a specific implementation, the first temporary redundant data is temporarily stored in the NADA of the solid state drive, thereby avoiding the occupation of the SRAM of the solid state drive and improving the performance of the solid state drive.

[0058] In some embodiments, such as the present embodiment, the above step of "storing the first temporary redundant data in the NADA of the solid state drive" includes the following steps: storing the first temporary redundant data in the SRAM of the solid state drive; transferring the first temporary redundant data from the SRAM of the solid state drive to the NADA of the solid state drive to release space in the SRAM of the solid state drive.

[0059] In a specific implementation, after the first temporary redundant data is generated, the first temporary redundant data will be automatically stored in the SRAM of the solid-state drive. In order to avoid occupying the SRAM of the solid-state drive, in an embodiment of the present invention, the first temporary redundant data is taken out from the SRAM of the solid-state drive and transferred to the NADA of the solid-state drive; at the same time, the first temporary redundant data is cleared from the SRAM of the solid-state drive, thereby effectively avoiding occupying the SRAM of the solid-state drive and improving the performance of the solid-state drive.

[0060] The embodiment of the present invention proposes a method for protecting the raid data of an SSD, comprising: obtaining a first data group from data written into a solid state drive; obtaining first temporary redundant data for protecting the first data group; and storing the first temporary redundant data in the NADA of the solid state drive. In the embodiment of the present invention, by temporarily storing the first temporary redundant data in the NADA of the solid state drive, it is possible to avoid occupying the SRAM of the solid state drive and avoid dependence on the HMB, thereby effectively improving the performance of the solid state drive.

[0061] In some embodiments, such as this embodiment, the method further includes the following steps:

[0062] S4, reading the first temporary redundant data from the NADA of the solid state drive.

[0063] In a specific implementation, the first temporary redundant data is read from the NADA of the solid state drive to generate the second temporary redundant data.

[0064] For example, see Figure 3 In one embodiment, Raid0_parity, Raid1_parity, and Raid2_parity are read from the NADA of the solid state drive.

[0065] S5, obtaining a second data group by dividing the data written into the solid state drive.

[0066] In a specific implementation, the second data group is obtained by dividing the data written to the solid state drive, for example, dividing the data written to multiple pages of the solid state drive into one second data group. The number of second data groups can be multiple, which is not specifically limited by the present invention.

[0067] For example, in some embodiments, such as the present embodiment, the above step of "dividing the data written to the solid state drive to obtain a second data group" specifically includes the following steps: obtaining data in a preset number of pages written to the solid state drive; dividing the data in the preset number of pages into a second data group.

[0068] In a specific implementation, data in a preset number of pages written into the solid state drive are divided into a second data group in sequence. The preset number can be set by those skilled in the art and is not specifically limited in the present invention. For example, the preset number can be 6.

[0069] For example, see Figure 3 , page18-page23 in the solid state drive is divided into the second data group raid3; page6-page11 is divided into the second data group raid4; page12-page17 is divided into the second data group raid5.

[0070] S6: Generate second temporary redundant data for protecting the second data group based on the first temporary redundant data.

[0071] In a specific implementation, an XOR operation is performed on the data in each page of the second data group and the first temporary redundant data to obtain the second temporary redundant data.

[0072] For example, see Figure 3 , perform XOR operation on the data in each page of Raid0_parity and raid3; perform XOR operation on the data in each page of Raid1_parity and raid4; perform XOR operation on the data in each page of Raid2_parity and raid5.

[0073] S7, storing the second temporary redundant data in the NADA of the solid state drive.

[0074] In a specific implementation, the second temporary redundant data is stored in the SRAM of the solid state drive; the second temporary redundant data is transferred from the SRAM of the solid state drive to the NADA of the solid state drive to release the space of the SRAM of the solid state drive.

[0075] In a specific implementation, after the second temporary redundant data is generated, the second temporary redundant data will be automatically stored in the SRAM of the solid state drive. In order to avoid occupying the SRAM of the solid state drive, in an embodiment of the present invention, the second temporary redundant data is taken out from the SRAM of the solid state drive and transferred to the NADA of the solid state drive; at the same time, the second temporary redundant data is cleared from the SRAM of the solid state drive, thereby effectively avoiding occupying the SRAM of the solid state drive and improving the performance of the solid state drive.

[0076] Corresponding to the above SSD raid data protection method, the present invention also provides a SSD raid data protection device. The SSD raid data protection device includes a unit for executing the above SSD raid data protection method, and the SSD raid data protection device can be configured in a desktop computer, a tablet computer, a laptop computer, and other terminals. Specifically, the SSD raid data protection device includes:

[0077] A first dividing unit, configured to divide the data written into the solid state drive to obtain a first data group;

[0078] an acquiring unit, configured to acquire first temporary redundant data for protecting the first data group;

[0079] The first storage unit is used to store the first temporary redundant data in the NADA of the solid state drive.

[0080] In some embodiments, such as this embodiment, the step of obtaining the first data group by dividing the data written into the solid state drive includes:

[0081] Get the data written to a preset number of pages of the solid state drive;

[0082] The data in the preset number of pages are grouped into a first data group.

[0083] In some embodiments, such as this embodiment, the obtaining of first temporary redundant data for protecting the first data group includes:

[0084] An XOR operation is performed on the data in each page of the first data group to obtain the first temporary redundant data.

[0085] In some embodiments, such as this embodiment, storing the first temporary redundant data in the NADA of the solid state drive includes:

[0086] Storing the first temporary redundant data in the SRAM of the solid state drive;

[0087] The first temporary redundant data is transferred from the SRAM of the solid state drive to the NADA of the solid state drive to release the space of the SRAM of the solid state drive.

[0088] In some embodiments, such as this embodiment, the SSD raid data protection device further includes:

[0089] A reading unit, configured to read the first temporary redundant data from the NADA of the solid state drive;

[0090] A second dividing unit, configured to divide the data written into the solid state drive to obtain a second data group;

[0091] a generating unit, configured to generate second temporary redundant data for protecting the second data group based on the first temporary redundant data;

[0092] The second storage unit is used to store the second temporary redundant data in the NADA of the solid state drive.

[0093] In some embodiments, such as the present embodiment, the second data group is obtained by dividing the data written into the solid state drive;

[0094] Get the data written to a preset number of pages of the solid state drive;

[0095] The data in the preset number of pages are grouped into a second data group.

[0096] In some embodiments, such as this embodiment, the generating second temporary redundant data for protecting the second data group based on the first temporary redundant data includes:

[0097] An XOR operation is performed on the data in each page of the second data group and the first temporary redundant data to obtain the second temporary redundant data.

[0098] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the SSD raid data protection device and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0099] The above-mentioned SSD raid data protection device can be implemented in the form of a computer program, and the computer program can be used in the following manner: Figure 4 Runs on the computer device shown.

[0100] See also Figure 4 , Figure 45 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.

[0101] The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0102] 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 execute a method for protecting RAID data of an SSD.

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

[0104] 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 execute a method for protecting SSD raid data.

[0105] The network interface 505 is used to communicate with other devices over the network. Those skilled in the art will appreciate that the above structure is only a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device 500 to which the present application solution is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] The processor 502 is used to run the computer program 5032 stored in the memory to implement the above-mentioned SSD raid data protection method, which specifically includes the following steps:

[0107] A first data group is obtained by dividing the data written into the solid state drive;

[0108] Acquire first temporary redundant data for protecting the first data group;

[0109] The first temporary redundant data is stored in the NADA of the solid state drive.

[0110] In some embodiments, such as this embodiment, the step of obtaining the first data group by dividing the data written into the solid state drive includes:

[0111] Get the data written to a preset number of pages of the solid state drive;

[0112] The data in the preset number of pages are grouped into a first data group.

[0113] In some embodiments, such as this embodiment, the obtaining of first temporary redundant data for protecting the first data group includes:

[0114] An XOR operation is performed on the data in each page of the first data group to obtain the first temporary redundant data.

[0115] In some embodiments, such as this embodiment, storing the first temporary redundant data in the NADA of the solid state drive includes:

[0116] Storing the first temporary redundant data in the SRAM of the solid state drive;

[0117] The first temporary redundant data is transferred from the SRAM of the solid state drive to the NADA of the solid state drive to release the space of the SRAM of the solid state drive.

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

[0119] Read the first temporary redundant data from the NADA of the solid state drive;

[0120] A second data group is obtained by dividing the data written into the solid state drive;

[0121] generating second temporary redundant data for protecting the second data group based on the first temporary redundant data;

[0122] The second temporary redundant data is stored in the NADA of the solid state drive.

[0123] In some embodiments, such as the present embodiment, the second data group is obtained by dividing the data written into the solid state drive;

[0124] Get the data written to a preset number of pages of the solid state drive;

[0125] The data in the preset number of pages are grouped into a second data group.

[0126] In some embodiments, such as this embodiment, the generating second temporary redundant data for protecting the second data group based on the first temporary redundant data includes:

[0127] An XOR operation is performed on the data in each page of the second data group and the first temporary redundant data to obtain the second temporary redundant data.

[0128] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) 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 the processor may also be any conventional processor, etc.

[0129] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0130] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the following steps:

[0131] A first data group is obtained by dividing the data written into the solid state drive;

[0132] Acquire first temporary redundant data for protecting the first data group;

[0133] The first temporary redundant data is stored in the NADA of the solid state drive.

[0134] In some embodiments, such as this embodiment, the step of obtaining the first data group by dividing the data written into the solid state drive includes:

[0135] Get the data written to a preset number of pages of the solid state drive;

[0136] The data in the preset number of pages are grouped into a first data group.

[0137] In some embodiments, such as this embodiment, the obtaining of first temporary redundant data for protecting the first data group includes:

[0138] An XOR operation is performed on the data in each page of the first data group to obtain the first temporary redundant data.

[0139] In some embodiments, such as this embodiment, storing the first temporary redundant data in the NADA of the solid state drive includes:

[0140] Storing the first temporary redundant data in the SRAM of the solid state drive;

[0141] The first temporary redundant data is transferred from the SRAM of the solid state drive to the NADA of the solid state drive to release the space of the SRAM of the solid state drive.

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

[0143] Read the first temporary redundant data from the NADA of the solid state drive;

[0144] A second data group is obtained by dividing the data written into the solid state drive;

[0145] generating second temporary redundant data for protecting the second data group based on the first temporary redundant data;

[0146] The second temporary redundant data is stored in the NADA of the solid state drive.

[0147] In some embodiments, such as the present embodiment, the second data group is obtained by dividing the data written into the solid state drive;

[0148] Get the data written to a preset number of pages of the solid state drive;

[0149] The data in the preset number of pages are grouped into a second data group.

[0150] In some embodiments, such as this embodiment, the generating second temporary redundant data for protecting the second data group based on the first temporary redundant data includes:

[0151] An XOR operation is performed on the data in each page of the second data group and the first temporary redundant data to obtain the second temporary redundant data.

[0152] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.

[0153] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0154] In the 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 only schematic. For example, the division of each unit is only a logical function division, and there may 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.

[0155] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, 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.

[0156] 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 this understanding, the technical solution of the present invention is essentially 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 a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0157] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0158] 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, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0159] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for protecting SSD raid data, characterized in that: include: A first data group is obtained by dividing the data written into the solid state drive; Acquire first temporary redundant data for protecting the first data group; The first temporary redundant data is stored in the NADA of the solid state drive.

2. The method for protecting SSD raid data according to claim 1, characterized in that: The step of obtaining a first data group by dividing the data written into the solid state hard disk includes: Get the data written to a preset number of pages of the solid state drive; The data in the preset number of pages are grouped into a first data group.

3. The method for protecting SSD raid data according to claim 2, characterized in that: The obtaining of first temporary redundant data for protecting the first data group includes: An XOR operation is performed on the data in each page of the first data group to obtain the first temporary redundant data.

4. The method for protecting SSD raid data according to claim 3, characterized in that: The storing the first temporary redundant data in the NADA of the solid state drive includes: Storing the first temporary redundant data in the SRAM of the solid state drive; The first temporary redundant data is transferred from the SRAM of the solid state drive to the NADA of the solid state drive to release the space of the SRAM of the solid state drive.

5. The method for protecting SSD raid data according to claim 1, characterized in that: The method further comprises: Read the first temporary redundant data from the NADA of the solid state drive; A second data group is obtained by dividing the data written into the solid state drive; generating second temporary redundant data for protecting the second data group based on the first temporary redundant data; The second temporary redundant data is stored in the NADA of the solid state drive.

6. The method for protecting SSD raid data according to claim 5, characterized in that: The second data group is obtained by dividing the data written into the solid state drive; Get the data written to a preset number of pages of the solid state drive; The data in the preset number of pages are grouped into a second data group.

7. The method for protecting SSD raid data according to claim 6, characterized in that: The generating second temporary redundant data for protecting the second data group based on the first temporary redundant data comprises: An XOR operation is performed on the data in each page of the second data group and the first temporary redundant data to obtain the second temporary redundant data.

8. A device for protecting SSD raid data, 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.