Data processing method, device and storage medium based on solid state drive SSD

By using multiple compression algorithms and storage area division technology on solid-state drives SSD, the problem of difficult balance between storage cost, reliability and performance of traditional SSDs is solved, achieving the effect of reducing costs and improving performance.

CN114594908BActive Publication Date: 2024-10-11ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210179842.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2024-10-11
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

It is difficult for traditional solid-state drives (SSDs) to achieve a refined balance in terms of data storage cost, reliability, and read and write performance. Usually, optimizing one dimension will lead to unsatisfactory or over-designed performance in other dimensions, making management more difficult.

Method used

Provide at least two compression algorithms for compressing data to be stored, and divide multiple storage areas according to the storage media properties of the SSD. Each area has different reliability and compression rates to store data with different compression rates and improve storage performance and reliability while reducing storage costs.

Benefits of technology

Through the compression algorithm and storage area division, it is possible to reduce storage costs while improving storage reliability and performance, achieving a comprehensive and balanced effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114594908B_ABST
    Figure CN114594908B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method, device and storage medium based on a solid state drive (SSD). In the embodiment of the present application, at least two compression algorithms are provided to compress the data to be stored and determine the compression ratio corresponding to the compressed data; according to the storage attribute of the storage medium of the SSD, the storage medium is divided into multiple storage areas, so that the divided storage areas have different storage reliabilities; according to the storage reliability corresponding to the storage area and the compression degree of the compression ratio, multiple storage areas are matched with different compression ratios, so that multiple storage areas are used to store data compressed according to different compression ratios, and the storage areas can provide storage reliability that meets the corresponding compressed data. It can reduce storage costs while improving storage reliability and storage performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data storage technology, and in particular to a data processing method, device and storage medium based on a solid state drive (SSD). Background Art

[0002] As a standard storage component, traditional SSD (Solid State Disk or Solid State Drive) is difficult to optimize in terms of data storage cost, data reliability and read / write performance, so as to achieve a fine balance in these dimensions.

[0003] The above dimensions are generally contradictory in traditional optimization methods. In traditional methods, the consideration and optimization of a single dimension will result in the performance of other dimensions being unsatisfactory or over-designed. Therefore, it is difficult to achieve refined management and achieve the required balance for traditional SSD design. Summary of the invention

[0004] Multiple aspects of the present application provide a data processing method, device and storage medium based on a solid state drive (SSD), which can reduce storage costs while improving storage reliability and storage performance.

[0005] An embodiment of the present application provides a data processing method based on a solid-state drive (SSD), including: providing at least two compression algorithms for compressing data to be stored and determining a compression ratio corresponding to the compressed data; dividing the storage medium into a plurality of storage areas according to the storage properties of the storage medium of the SSD, so that the divided storage areas have different storage reliabilities; according to the storage reliabilities corresponding to the storage areas and the compression degrees of the compression ratios, corresponding the plurality of storage areas to different compression ratios, so that the plurality of storage areas are used to store data compressed according to different compression ratios, and the storage areas can provide storage reliability that satisfies the corresponding compressed data.

[0006] An embodiment of the present application also provides a computing device, including: a memory, a processor; the memory is used to store a computer program; the processor executes the computer program to: provide at least two compression algorithms for compressing data to be stored and determining the compression ratio corresponding to the compressed data; divide the storage medium into multiple storage areas according to the storage properties of the storage medium of the SSD, so that the divided storage areas have different storage reliabilities; according to the storage reliability corresponding to the storage area and the compression degree of the compression ratio, correspond the multiple storage areas to different compression ratios, so that the multiple storage areas are used to store data compressed according to different compression ratios, and the storage areas can provide storage reliability that meets the corresponding compressed data.

[0007] An embodiment of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by one or more processors, the one or more processors implement the steps in the above method.

[0008] In an embodiment of the present application, at least two compression algorithms are provided for compressing data to be stored and determining the compression ratio corresponding to the compressed data; according to the storage properties of the storage medium of the SSD, the storage medium is divided into multiple storage areas, so that the divided storage areas have different storage reliabilities; according to the storage reliability corresponding to the storage area and the compression degree of the compression ratio, the multiple storage areas are matched with different compression ratios, so that the multiple storage areas are used to store data compressed according to different compression ratios, and the storage areas can provide storage reliability that satisfies the corresponding compressed data.

[0009] Among them, at least two compression algorithms are provided for compressing the data to be stored, and the compression ratio corresponding to the compressed data is determined, which can improve the storage performance of the SSD and enhance the read and write capabilities. At the same time, the storage cost of the SSD is reduced. In addition, according to the storage reliability corresponding to the storage area and the compression degree of the compression ratio, multiple storage areas are matched with different compression ratios, so that multiple storage areas are used to store data compressed according to different compression ratios, and the storage area can provide storage reliability that meets the corresponding compressed data, which can improve the storage reliability of the data. While achieving low cost in data storage, a comprehensive balance can be achieved in reliability and performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0011] Figure 1 A flowchart of a data processing method based on a solid state drive (SSD) according to an exemplary embodiment of the present application;

[0012] Figure 2 A schematic diagram of a data processing process based on a solid state drive (SSD) according to an exemplary embodiment of the present application;

[0013] Figure 3 This is a structural schematic diagram of a data processing system based on a solid state drive (SSD) according to an exemplary embodiment of the present application;

[0014] Figure 4 A structural schematic diagram of a data processing device based on a solid state drive (SSD) provided by an exemplary embodiment of the present application;

[0015] Figure 5A schematic diagram of the structure of a computing device provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0017] As mentioned above, as a standard storage component, it is difficult to optimize the traditional SSD (Solid State Disk or Solid State Drive) in terms of data storage cost, data reliability and read / write performance, so as to achieve a fine balance in these dimensions.

[0018] Among them, the traditional means include: reducing storage costs by increasing the density of storage media, improving storage reliability by increasing storage media redundancy, and improving storage performance by changing the storage media interface delay.

[0019] However, these dimensions are generally contradictory in traditional optimization implementation. In traditional methods, the consideration and optimization of a single dimension will generally result in the performance of other dimensions being unsatisfactory or over-designed. Therefore, it is difficult to achieve refined management and achieve the required balance for traditional SSD design.

[0020] In response to the above problems, the embodiments of the present application provide a data processing method, device and storage medium based on a solid state drive (SSD), which can reduce storage costs while improving storage reliability and storage performance.

[0021] The data processing process based on the solid state drive (SSD) is described in detail below in conjunction with the method embodiment.

[0022] Figure 1 This is a flow chart of a data processing method based on a solid state drive (SSD) according to an exemplary embodiment of the present application. The method 100 provided in the embodiment of the present application is executed by the SSD, and specifically may be a controller in the SSD. The method 100 includes the following steps:

[0023] 101: Provide at least two compression algorithms for compressing data to be stored, and determine a compression ratio corresponding to the compressed data.

[0024] 102: Divide the storage medium into a plurality of storage areas according to storage properties of the storage medium of the SSD, so that the divided storage areas have different storage reliabilities.

[0025] 103: According to the storage reliability corresponding to the storage area and the compression degree of the compression rate, multiple storage areas are matched with different compression rates, so that the multiple storage areas are used to store data compressed according to different compression rates, and the storage areas can provide storage reliability that satisfies the corresponding compressed data.

[0026] The following is a detailed description of the above steps:

[0027] 101: Provide at least two compression algorithms for compressing data to be stored, and determine a compression ratio corresponding to the compressed data.

[0028] The compression algorithm is used to compress the data, and the corresponding compression rate is determined according to the compressed data, such as Huffman, Rice, Lempel-Ziv, etc.

[0029] The compression ratio may refer to the ratio of the size of the compressed data or file to the size of the data or file before compression. Therefore, the smaller the compression ratio, the smaller the compressed data or file, and the greater and higher the compression degree. Conversely, the greater the compression ratio, the larger the compressed data or file, and the smaller and lower the compression degree. The compression ratio is less than 1. For example, 90%, 20%, etc. The compression degree of a compression ratio of 20% is greater than that of a compression ratio of 90%.

[0030] For example, the SSD controller can provide multiple compression rates, such as 20%, 50%, 70%, and 90%, based on multiple compression algorithms and data characteristics. The compressed data occupies less storage space, so the SSD can provide more storage space to store more data, thereby reducing storage costs. At the same time, since the data is compressed, it can be read and written faster, improving read and write performance.

[0031] In order to more conveniently determine the compression ratio, data compression may be achieved by adding a compression engine in the controller.

[0032] Specifically, at least two compression algorithms are provided for compressing the data to be stored and determining the compression ratio corresponding to the compressed data, including: obtaining the data to be stored through the compression engine, compressing the data to be stored according to the compression algorithm, and outputting the compression ratio corresponding to the compressed data.

[0033] For example, according to the above, a compression engine is added to the controller, and the compression engine provides two or more compression algorithms, and then multiple compression rates can be determined according to different data characteristics and compression algorithms (the compression rate is selected by the compression engine according to the characteristics of the data when processing the data to be stored), so that the compression engine determines and provides multiple compression rates. The data to be stored is obtained through the compression engine, and the data to be stored is compressed by the compression algorithm to obtain the corresponding compression rate.

[0034] Among them, Figure 2 As shown, it shows the data processing process 200 of the controller, wherein the compression engine 201 is responsible for determining and providing the compression rate and receiving the data to be stored. The data to be stored can be sent to the cloud server by the user through a terminal, such as a computer. The SSD can be deployed on the physical host of the cloud server. The user can send the data to be stored to the cloud server through the provided API (Application Programming Interface) or web interface. The cloud server sends the data to be stored to the controller of the SSD, and then sends the data to the compression engine 201 of the controller to compress the data and obtain the compression rate.

[0035] It should be noted that the compression interval (such as a compression ratio range of 0.5-0.8 or 0.1-0.4) can be selected according to demand, and the compression range can be determined according to the user's choice.

[0036] In addition, if Figure 2 As shown, when the compression engine 201 compresses data, it compresses the data in compression units, and the compression unit refers to a data block of a fixed unit length, which is compressed at different compression rates and then output as a non-fixed length. In the embodiment of the present application, according to different compression rates and compression rate intervals composed of different compression rates, multiple group groups (such as 4) can be defined to distinguish the compression rates, that is, each group corresponds to a compression rate, so as to provide input for a more convenient physical storage location and code rate selection in the future.

[0037] 102: Divide the storage medium into a plurality of storage areas according to storage properties of the storage medium of the SSD, so that the divided storage areas have different storage reliabilities.

[0038] The storage medium refers to the carrier for storing data. For SSD, its storage medium can be flash memory, such as NAND Media, which refers to a NAND Flash particle. Each Cell can store 4 bits of information, 3 bits, 2 bits or 1 bit. Multiple storage media can be deployed in SSD.

[0039] Data attributes refer to storage characteristics, such as the number of times a storage medium is used. The more times it is used, the lower the reliability. Conversely, the fewer times it is used, the higher the reliability.

[0040] Storage reliability corresponds to storage reliability and is the quantification of storage reliability. Storage reliability refers to the ability to complete the predetermined storage function within the specified time and under the specified conditions. The corresponding storage reliability can be the corresponding capacity value, that is, the reliability of the storage area for storing data. The higher the reliability, the higher the security of the data stored in the area. Conversely, the lower the reliability, the lower the security of the data stored in the area.

[0041] For example, according to the above description, the controller of the SSD can divide one or more NAND Media into multiple storage areas according to the number of times the one or more NAND Media are used, and can divide NAND Media with the same number of times together, or divide NAND Media with the same number of times together. It is also possible to divide areas with the same number of times in a NAND Media into one storage area, or divide areas with the same number of times into one storage area.

[0042] In addition, the number of storage areas finally divided may be the same as the number of compression ratios, or may be different.

[0043] Similarly, better partitioning can be achieved by a flash translation layer processing core (FTL (Flash Translation Layer) processing core) deployed in the controller.

[0044] Specifically, the storage medium is divided into a plurality of storage areas according to the storage attribute of the SSD storage medium, including: dividing the plurality of storage media into a corresponding number of storage areas according to the determined number of compression rates and the storage attribute of the SSD storage medium.

[0045] For example, according to the above description, the flash translation layer processing core in the controller of the SSD performs the above area division according to the above description. Figure 2 As shown, the flash translation layer processing core 202 implements the above area division.

[0046] It should be noted that the flash translation layer processing core can be used to implement the allocation of physical addresses of NAND Media and maintain a mapping table between user logical addresses and physical addresses. The flash translation layer processing core FTL Processor performs partition physical address allocation according to the groups with different compression rates and the above-mentioned natural characteristics of the physical NAND Media. In the embodiment of the present application, the NAND Media can be divided into 4 storage areas to store data corresponding to groups with 4 different compression rates. The FTL processing core can also support physical address allocation for more groups as required, which will not be elaborated. Figure 2 As shown, the flash translation layer processing core 202 divides the number of regions according to the number or number of groups of compression rates determined by the compression engine 201 .

[0047] Specifically, the storage medium is divided into a plurality of storage areas according to the storage attribute of the storage medium of the SSD, including: dividing a plurality of storage media into a plurality of storage areas according to the number of times the storage medium is used, and the number of times of use is inversely related to storage reliability.

[0048] Since it has been explained in the previous article, it will not be repeated here. It is only explained that the number of uses and storage reliability are inversely related, that is, the higher the number of uses, the lower the reliability, and vice versa, and it will not be repeated here.

[0049] In addition, the storage area can be divided in the following ways to achieve the division and allocation of physical locations.

[0050] Specifically, according to the storage properties of the storage medium of the SSD, the storage medium is divided into multiple storage areas so that the divided storage areas have different storage reliabilities, including: dividing multiple storage media into multiple storage areas according to the type and operation status of the storage medium.

[0051] Among them, the type of storage medium may refer to different types of NAND Media, including: QLC (Quad-Level Cell), SLC (Single-Level Cell), MLC (Multi-Level Cell), TLC (Trinary-Level Cell), etc.

[0052] The operation status of the storage medium may refer to the operation status of the NAND Media, which can be described from multiple dimensions, including: High P / E (High program / erase), cold data temperature and high Read Disturb, or Low P / E (Low program / erase), hot data temperature and low Read Disturb.

[0053] Based on this, the controller can divide the corresponding areas according to the above characteristics, where different types of storage media correspond to different storage reliabilities, such as the storage reliability from high to low can be: SLC, MLC, TLC, QLC. The storage reliability corresponding to High P / E (High program / erase), cold data temperature and high Read Disturb (read interference) is less than the storage reliability corresponding to Low P / E (Low program / erase), hot data temperature and low Read Disturb. Therefore, the controller can divide different storage areas according to these. Determine different storage reliabilities to store compressed data. For example, the smaller the compression rate, the corresponding data requires a storage area with high reliability.

[0054] It should be noted that the hot and cold state of the data (i.e., the hot and cold data temperature) can also be used as a reference for the data storage location. The hot and cold state can be brought down by the host, and the controller can know it when allocating the physical storage location. In addition, the Read Disturb data can be managed and maintained when the user reads the data.

[0055] It should be understood that the storage characteristics here may refer to storage data characteristics.

[0056] Specifically, multiple storage media are divided into multiple storage areas according to the type and operation status of the storage media, including: dividing multiple storage media into multiple storage areas according to different types of logical pages corresponding to different types of storage media, as well as the number of times the storage media are used and the read interference status.

[0057] As can be seen from the previous text, taking QLC as an example, it can be divided into the lower page, the middle page, the upper page, and the extra page. Therefore, the lower page and the middle page in high P / E (high program / erase), cold data temperature and high Read Disturb (read disturbance) are the physical spaces with the worst storage reliability (it can be statistically determined based on experiments that the storage reliability of the lower page and the middle page is the worst), and the corresponding upper page and the extra page are the physical spaces with the second best storage reliability (it can be statistically determined based on experiments that the storage reliability of the upper page and the extra page is the second best). The upper page and the extra page corresponding to low P / E (low program / erase), hot data temperature and low Read Disturb have the best storage reliability, and the lower page and the middle page have the worst storage reliability. It should be noted that the hot and cold state of the data (i.e., the hot and cold data temperature) can also be used as a reference for the data storage location. The hot and cold state can be brought down by the host, and the controller can know it when allocating the storage physical location. In addition, the Read Disturb data can be managed and maintained when the user reads the data.

[0058] Among them, Figure 2 As shown, the physical area A205 corresponding to High P / E (High program / erase), cold data temperature and high Read Disturb (read disturbance), and the physical area B206 corresponding to Low P / E (Low program / erase), hot data temperature and low Read Disturb. Both areas have a lower page LowerPage2051, a middle page Middle Page2052, a second upper page Upper Page2053, and a high page Extra Page2054.

[0059] It should be understood that High P / E and Low P / E refer to the number of times of use, that is, the number of write / erase times.

[0060] In addition, the method 100 further includes: dividing the plurality of storage media into a plurality of storage areas according to the sub-line positions of the storage media.

[0061] As mentioned above, for NAND Media, the storage area can also be divided according to the position of its wordline (abbreviated as WL), which includes the edge WL edge sub-line and the middle WL sub-line set on the flash memory. The storage reliability corresponding to the edge sub-line is less than the storage reliability corresponding to the middle sub-line (which can also be determined by data statistics through experiments).

[0062] Therefore, the storage area can be divided according to the Edge WL edge sub-line and the middle WL sub-line.

[0063] In addition, the method 100 further includes: dividing the plurality of storage media into a cold data storage area and a hot data storage area according to the hot and cold properties of the data to be stored.

[0064] According to the previous text, data can be divided into hot data and cold data. Among them, hot data refers to data that is frequently read and written, such as data with a read and write frequency greater than a certain threshold. Cold data is data that is not frequently read and written, and its read and write frequency is less than a certain threshold. The corresponding areas are divided in this way. The divided cold data storage area and hot data storage area are used to store the corresponding cold data and hot data respectively. They can be directly divided by the above-mentioned number of uses, or other attributes can be added on this basis to divide them. For example, High P / E (High program / erase), cold data temperature and high ReadDisturb (read interference) support the storage of cold data storage.

[0065] The embodiments of the present application allocate different physical locations of storage media, i.e., storage areas, through the following dimensions, which may include: different logical page locations, such as Upper Page, Middle Page, Lower Page, and Extra Page. WLs at different locations, such as Edge WL and middle WL. Different P / E cycle usage times, high P / E and low P / E cycle usage times. Different physical data hot and cold areas, cold data areas and hot data areas. Different Read Disturb areas, high Read Disturb areas and low Read Disturb areas. Refined data management can be achieved as much as possible.

[0066] 103: According to the storage reliability corresponding to the storage area and the compression degree of the compression rate, multiple storage areas are matched with different compression rates, so that the multiple storage areas are used to store data compressed according to different compression rates, and the storage areas can provide storage reliability that satisfies the corresponding compressed data.

[0067] Among them, the storage reliability and the compression degree are positively correlated. The positive relationship between storage reliability and compression degree means that the higher the reliability, the greater the corresponding compression degree and the smaller the corresponding compression rate. Conversely, the lower the reliability, the smaller the corresponding compression degree and the larger the corresponding compression rate.

[0068] Therefore, according to the above, the controller can select the corresponding storage area according to different compression rates. For example, the maximum compression rate of 90% selects the storage area with the minimum (or smaller) reliability, such as the Lower Page with High P / E (High program / erase), cold data temperature and high Read Disturb. The lowest compression rate of 20% selects the storage area with the maximum (or larger) reliability, such as the Upper Page corresponding to Low P / E (Low program / erase), hot data temperature and low Read Disturb, so as to meet the storage reliability of the compressed data. I will not elaborate on it.

[0069] Specifically, multiple storage areas are matched with different compression rates according to the storage reliability corresponding to the storage area and the compression degree of the compression rate, including: according to the positive relationship between the storage reliability and the compression degree, the storage reliability is matched with the compression degree so that the corresponding storage area is matched with the corresponding compression rate.

[0070] For example, according to the previous text, we can know that by using a positive relationship, we can match storage areas with corresponding compression rates. For example, a storage area with high storage reliability is matched with a high (or relatively high) compression level, that is, it is matched with a low compression rate. For example, a storage area with low storage reliability is matched with a low (or relatively low) compression level, that is, it is matched with a high compression rate. Similar to the previous content, I will not repeat it here.

[0071] In order to further improve data reliability management, the error correction code rate configuration may also be determined for the compressed data.

[0072] Specifically, the method 100 also includes: according to multiple compression rates, providing error correction codes with different code rates through an error correction code encoder; according to the error correction codes with different code rates and the compression degrees of the multiple compression rates, corresponding different code rates to the multiple compression rates, so that the error correction codes with different code rates correspond to the data compressed according to the different compression rates, and the error correction codes corresponding to the compressed data can provide error correction capabilities that meet the data, and the code rate is inversely related to the compression degree.

[0073] The code rate and compression degree are inversely related, which means that the lower the code rate, the higher the compression degree, and vice versa. The higher the code rate, the less information the error correction code contains, and the lower the error correction capability, while the lower the code rate, the more information the error correction code contains, and the better the corresponding error correction capability.

[0074] For example, as mentioned above, the controller supports the encoding function of ECC error correction codes at different bit rates by deploying an error correction code encoder ECC Encoder. As mentioned above, when the compression rate input is divided into 4 groups, the ECC Encoder can support ECC encoding of 4 bit rates according to the requirements. Figure 2 As shown, the error correction code encoder 203 has the highest compression rate according to the first compression rate 2011, so a lower or lowest code rate is required to ensure the maximum error correction capability of ECC. The second compression rate 2012, the compression rate of this group is second, and the second low code rate can be selected to ensure a larger error correction capability of ECC. The other two compression rate groups have similar requirements for ECC encoding. The third compression rate 2013, the compression rate of this group is the third, and the third low code rate can be selected to ensure that the ECC meets the error correction capability. The fourth compression rate 2014, the compression rate of this group is the fourth, and the fourth low code rate can be selected to ensure that the ECC meets the error correction capability. Therefore, after the error correction code encoder 203 receives the compressed data sent by the compression engine, it encodes the error correction code according to the corresponding compression rate, obtains the compressed data and error correction code, and stores them in the corresponding storage area according to the method described above.

[0075] In addition, the embodiment of the present application only reflects the ECC coding requirements of 4 groups. The ECC coding requirements of any group greater than 4 groups can be determined according to the compression rate distribution to implement this solution and ensure more refined management. I will not go into details. By allocating different ECC code rates, small-granularity data reliability management can be achieved.

[0076] In addition, the method 100 further includes: determining an error correction code for the compressed data according to a code rate corresponding to the output compression rate through an error correction code encoder, and storing the compressed data and the error correction code in a corresponding storage area.

[0077] As can be seen from the above, after the error correction code encoder receives the compressed data sent by the compression engine, it encodes the error correction code according to the corresponding compression rate, obtains the compressed data and error correction code and stores them in the corresponding storage area according to the method described above.

[0078] Among them, Figure 2As shown, the final data A2031 corresponding to the first compression rate 2011 can be stored in the lower page Lower Page 2051 and the middle page Middle Page 2052 in the physical area B206. The final data B2032 corresponding to the second compression rate 2012 can be stored in the second highest page Upper Page 2053 and the high page ExtraPage 2054 in the physical area B206. The final data C2033 corresponding to the third compression rate 2013 can be stored in the lower page Lower Page 2051 and the middle page Middle Page 2052 in the physical area A205. The final data D2034 corresponding to the fourth compression rate 2014 can be stored in the second highest page Upper Page 2053 and the high page Extra Page 2054 in the physical area A205.

[0079] In order to further increase the data storage reliability on this basis, it can also be achieved by providing a redundant disk array. Specifically, the method 100 also includes: providing a redundant disk array; dividing the corresponding compressed data according to different compression rates, and determining corresponding verification information according to the divided data, the verification information is used to restore the divided data, and the compression degree of the compression rate is inversely related to the amount of divided data; storing the verification information in the redundant disk array.

[0080] The check information may refer to parity check information.

[0081] The compression degree of the compression ratio is inversely related to the amount of data after division, which means that the higher the compression degree, the lower the compression ratio, and the smaller the amount of data after division. Conversely, the lower the compression degree, the higher the compression ratio, and the larger the amount of data after division.

[0082] For example, according to the above description, a disk array stripe configuration raid stripe setting is deployed in the controller, which can provide a redundant disk array, and the raid stripe setting is implemented through the array. Figure 2As shown, the disk array stripe configuration raid stripe setting204 classifies the compression rate according to a certain range according to the compression rate of the compression engine 201. For example, the compression rate of 20%-40% is classified as between 2-4, and the compression rate of 40%-60% is classified as between 4-6. According to the classification of the compression rate, the data can be finely configured in different Raid Stripe disk array stripes to achieve the best OP at the user Sector level compression unit level. For example, the compression unit sector with a compression rate between 2-4, that is, the compression unit mentioned above, is configured as the final data corresponding to 15 compression units (which may include compressed data and error correction code) + 1 parity information Raid Protect redundant disk array protection. The compression unit sector with a compression rate between 4-6 is configured as the final data corresponding to 31 compression units + 1 parity information Raid Protect. Different compression rate levels can be divided according to needs. Then the final data and storage verification information are stored in the redundant disk array.

[0083] Therefore, by allocating different Raid configurations, data storage reliability management in a small granularity dimension can be achieved.

[0084] In addition, the method 100 also includes: according to multiple compression rates, decoding the error correction code of the corresponding code rate through an error correction code decoder, so that after reading the corresponding data in the storage medium, the error correction code of the corresponding data is decoded to obtain the data to be decompressed; decompressing the data to be decompressed through a decompression engine to obtain the read data, and returning it to the reading end.

[0085] For example, as mentioned above, the controller is also deployed with an error correction code decoder ECC Decoder corresponding to the error correction code encoder ECC Encoder. Similarly, the ECC Decoder can also support 4 or more code rates to ensure that the data in a specific physical space is decoded according to the encoded code rate to ensure that the correct data is sent back to the decompression engine.

[0086] Among them, Figure 2 As shown, the error correction code decoder 208 obtains the corresponding data from the corresponding storage area. For example, the corresponding data A2081 is obtained from the high page Extra Page 2054 in the physical area A205, the corresponding data B2082 is obtained from the second high page Upper Page 2053 in the physical area A205, the corresponding data C2083 is obtained from the high page Extra Page 2054 in the physical area B206, and the corresponding data D2084 is obtained from the second high page Upper Page 2053 in the physical area B206. Then, the corresponding correct data, i.e., the data to be decompressed, is obtained by decoding respectively.

[0087] The controller is also equipped with a corresponding decompression engine 207. The decompression engine 207 decompresses the above data to be decompressed, and the corresponding data A 2071, data B 2072, data C 2073, and data D 2074 to be decompressed can be obtained. The decompression engine 207 then performs decompression. Consistent with the compression engine, the data stored in the NAND Media needs to be decompressed into original data through a preset decompression algorithm (corresponding to the preset compression algorithm) and returned to the user to complete the reading process.

[0088] In the embodiment of the present application, it is impossible to perform cost classification of data by user data within a specific Device (it can only be classified between disks), and thus it is impossible to perform refined management of data within a specific disk.

[0089] In the embodiment of the present application, by adding a compression engine inside the SSD controller, the compression rate distribution obtained according to different user data is divided into several groups for refined management inside the device, and different physical addresses are allocated according to the operation status and physical characteristics of the storage medium, and different code rates are allocated to areas according to the ECC code rate switching characteristics. The storage cost, reliability and performance refined management method is completed in the disk. While the data storage is low-cost, the reliability and performance requirements can also be met.

[0090] Figure 3 The following is a schematic diagram of a data processing system based on a solid state drive (SSD) provided by an exemplary embodiment of the present application. Figure 3 As shown, the system 300 may include: a first device 301 and a second device 302 .

[0091] The first device 301 refers to a device that can provide computing and processing services in a network virtual environment, and can refer to a device that uses a network to store and manage data. In terms of physical implementation, the first device 301 can be any device that can provide computing services, respond to service requests, and determine the similarity of binary files, such as a cloud server, a cloud host, a virtual center, a conventional server, etc., on which an SSD is deployed for data storage. The first device 301 mainly includes a processor, a memory, a system bus, etc., which is similar to a general computer architecture.

[0092] The second device 302 may be a device with certain computing capabilities, which can realize the function of sending data to the first device 301, and can also receive data sent by the first device 301. The basic structure of the second device 302 may include: at least one processor. The number of processors may depend on the configuration and type of the device with certain computing capabilities. The device with certain computing capabilities may also include a memory, which may be volatile, such as RAM, or non-volatile, such as read-only memory (ROM), flash memory, etc., or may include both types at the same time. The memory usually stores an operating system (OS), one or more application programs, and may also store program data, etc. In addition to the processing unit and the memory, the device with certain computing capabilities also includes some basic configurations, such as a network card chip, an IO bus, a display component, and some peripheral devices, etc. Optionally, some peripheral devices may include, for example, a keyboard, an input pen, etc. Other peripheral devices are well known in the art and will not be described in detail here. Optionally, the second device 302 may be an intelligent terminal, such as a mobile phone, a desktop computer, a notebook, a tablet computer, etc.

[0093] Specifically, the first device 301 provides at least two compression algorithms for compressing data to be stored and determining the compression ratio corresponding to the compressed data; according to the storage properties of the storage medium of the SSD, the storage medium is divided into multiple storage areas, so that the divided storage areas have different storage reliabilities; according to the storage reliability corresponding to the storage area and the compression degree of the compression ratio, the multiple storage areas are matched with different compression ratios, so that the multiple storage areas are used to store data compressed according to different compression ratios, and the storage areas can provide storage reliability that meets the corresponding compressed data.

[0094] In addition, the first device 301 provides error correction codes with different code rates through an error correction code encoder according to multiple compression rates; and corresponds different code rates to multiple compression rates according to the error correction codes with different code rates and the compression degrees of the multiple compression rates, so that the error correction codes with different code rates correspond to the data compressed according to the different compression rates, and the error correction codes corresponding to the compressed data can provide error correction capabilities that meet the data, and the code rate is inversely related to the compression degree.

[0095] Specifically, the first device 301 divides the plurality of storage media into a corresponding number of storage areas according to the determined number of compression rates and the storage properties of the storage medium of the SSD.

[0096] Specifically, the first device 301 divides the plurality of storage media into a plurality of storage areas according to the number of times the storage media are used, and the number of times of use is inversely related to the storage reliability.

[0097] Specifically, the first device 301 obtains the data to be stored through the compression engine, compresses the data to be stored according to the compression algorithm, and outputs the compression rate corresponding to the compressed data; in addition, the first device 301 determines the error correction code of the compressed data according to the code rate corresponding to the output compression rate through the error correction code encoder, and stores the compressed data and the error correction code in the corresponding storage area.

[0098] Specifically, the first device 301 matches the storage reliability with the compression degree according to the positive relationship between the storage reliability and the compression degree, so that the corresponding storage area matches the corresponding compression rate.

[0099] Specifically, the first device 301 divides the multiple storage media into multiple storage areas according to the types and operation conditions of the storage media.

[0100] Specifically, the first device 301 divides the plurality of storage media into a plurality of storage areas according to the different types of logical pages corresponding to the different types of storage media, as well as the number of times the storage media are used and the read disturbance conditions.

[0101] In addition, the first device 301 divides the plurality of storage media into a plurality of storage areas according to the sub-line positions of the storage media.

[0102] In addition, the first device 301 divides the plurality of storage media into a cold data storage area and a hot data storage area according to the hot and cold properties of the data to be stored.

[0103] In addition, the first device 301 provides a redundant disk array; divides the corresponding compressed data according to different compression rates, and determines corresponding verification information based on the divided data, the verification information is used to recover the divided data, and the compression degree of the compression rate is inversely related to the amount of divided data; the verification information is stored in the redundant disk array.

[0104] In addition, the first device 301 decodes the error correction code of the corresponding code rate through an error correction code decoder according to multiple compression rates, so that after reading the corresponding data in the storage medium, the error correction code of the corresponding data is decoded to obtain the data to be decompressed; the data to be decompressed is decompressed by the decompression engine to obtain the read data, and returned to the reading end.

[0105] For any incomplete content, please refer to the previous article and I will not repeat it here.

[0106] In the SSD data management scenario, the user sends data to the first device 301, such as a cloud server, through the second device 302, such as a computer. That is, step 311 is executed: sending storage data. The SSD can be deployed on the physical host of the cloud server. The user can send the data to be stored to the cloud server through the provided API (Application Programming Interface) or web page interface. The cloud server sends the data to be stored to the controller of the SSD, and then sends the data to the compression engine of the controller, compresses the data to be stored according to the compression algorithm, and determines the compression rate.

[0107] The controller of the SSD can realize the area division by the flash conversion layer processing core. Specifically, one or more NAND media can be divided into multiple storage areas according to the number of times one or more NAND media is used. NAND media with the same number of times can be divided together, or NAND media with the same number of times of use can be divided together. It is also possible to divide areas with the same number of times of use in a NAND media into one storage area, or to divide areas with the same number of times of use into one storage area.

[0108] In addition, QLC can be taken as an example, which can be divided into the lower page Lower Page, the middle page Middle Page, the second highest page Upper Page, and the high page Extra Page. Therefore, the Lower Page and Middle Page in High P / E (High program / erase), cold data temperature and high Read Disturb (read disturbance) are the physical spaces with the worst storage reliability (it can be statistically determined based on experiments that the storage reliability of the Lower Page and Middle Page is the worst), and the corresponding Upper Page and Extra Page are the physical spaces with the second best storage reliability (it can be statistically determined based on experiments that the storage reliability of the Upper Page and Extra Page is the second best). The Upper Page and Extra Page corresponding to Low P / E (Low program / erase), hot data temperature and low Read Disturb have the best storage reliability, and the Lower Page and Middle Page have the worst storage reliability. This achieves the division of regions.

[0109] The controller can select the corresponding storage area according to different compression rates. For example, the maximum compression rate of 90% selects the storage area with the minimum (or smaller) reliability, such as the Lower Page with High P / E (High program / erase), cold data temperature and high Read Disturb. The lowest compression rate of 20% selects the storage area with the maximum (or larger) reliability, such as the Upper Page corresponding to Low P / E (Low program / erase), hot data temperature and low Read Disturb. I will not go into details.

[0110] The controller supports the encoding function of ECC error correction code at different code rates by deploying the error correction code encoder ECC Encoder. For example, when the compression rate input is divided into 4 groups, the ECC Encoder can support ECC encoding of 4 code rates according to the requirements. The lower the code rate, the higher the compression degree, and vice versa, the higher the code rate, the lower the compression degree. Therefore, after the error correction code encoder receives the compressed data sent by the compression engine, it encodes the error correction code according to the corresponding compression rate, obtains the compressed data and error correction code, and stores them in the corresponding storage area according to the method described above.

[0111] The controller is deployed with a disk array stripe configuration raid stripe setting, which can provide a redundant disk array, and the raid stripe setting is implemented through the array. Figure 2 As shown, the disk array strip configuration raidstripe setting204 classifies the compression rate according to a certain range according to the compression rate of the compression engine 201. For example, a compression rate of 20%-40% is classified as between 2-4, and a compression rate of 40%-60% is classified as between 4-6. According to the classification of the compression rate, the data can be finely configured with different Raid Stripe disk array stripes to achieve the best OP at the user Sector level compression unit level. For example, the compression unit sector with a compression rate between 2-4, that is, the compression unit mentioned above, is configured as the final data corresponding to 15 compression units (which may include compressed data and error correction code) + 1 parity information Raid Protect redundant disk array protection. The compression unit sector with a compression rate between 4-6 is configured as the final data corresponding to 31 compression units + 1 parity information Raid Protect. Different compression rate levels can be divided according to requirements. Then the final data and storage verification information are stored in the redundant disk array.

[0112] The controller is also equipped with an error correction code decoder ECCDecoder corresponding to the error correction code encoder ECC Encoder. Similarly, the ECC Decoder can also support 4 or more code rates to ensure that the data in a specific physical space is decoded according to the encoded code rate to ensure that the correct data is sent back to the decompression engine. The decompression engine decompresses the data and returns it to the user's computer through the cloud server, that is, executing step 312: returning the storage result.

[0113] For the contents not recorded in detail here, please refer to the previous content and I will not repeat them here.

[0114] In the above embodiment, the first device 301 and the second device 302 are connected to the network. If the first device 301 and the second device 302 are connected for communication, the network standard of the mobile network can be any one of 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+), WiMax, 5G, etc.

[0115] Figure 4 A schematic diagram of the structural framework of a data processing device based on a solid state drive (SSD) provided as an exemplary embodiment of the present application. The device 400 can be applied to an SSD, and specifically can be a controller therein. The device 400 includes: a providing module 401, a dividing module 402, and a corresponding module 403; the functions of each module are described in detail below:

[0116] A module 401 is provided, which is used to provide at least two compression algorithms for compressing the data to be stored and determining the compression ratio corresponding to the compressed data.

[0117] The division module 402 is used to divide the storage medium into a plurality of storage areas according to the storage attribute of the storage medium of the SSD, so that the divided storage areas have different storage reliability.

[0118] The corresponding module 403 is used to correspond multiple storage areas to different compression rates according to the storage reliability corresponding to the storage area and the compression degree of the compression rate, so that the multiple storage areas are used to store data compressed according to different compression rates, and the storage areas can provide storage reliability that meets the corresponding compressed data.

[0119] In addition, the device 400 also includes: a providing module 401, which is also used to provide error correction codes with different code rates through an error correction code encoder according to multiple compression rates; a corresponding module 403, which is also used to correspond different code rates to multiple compression rates according to the error correction codes with different code rates and the compression degrees of multiple compression rates, so that the error correction codes with different code rates correspond to the data compressed according to different compression rates, and the error correction codes corresponding to the compressed data can provide error correction capabilities that meet the data, and the code rate and the compression degree are inversely related.

[0120] Specifically, the division module 402 is specifically used to divide the multiple storage media into a corresponding number of storage areas according to the determined number of compression rates and the storage attributes of the storage medium of the SSD.

[0121] Specifically, the division module 402 is specifically used to divide a plurality of storage media into a plurality of storage areas according to the number of times the storage media are used, and the number of times of use is inversely related to the storage reliability.

[0122] Specifically, a module 401 is provided, which is specifically used to: obtain the data to be stored through the compression engine, compress the data to be stored according to the compression algorithm, and output the compression rate corresponding to the compressed data; the device 400 also includes: a determination module, which is used to determine the error correction code of the compressed data according to the code rate corresponding to the output compression rate through the error correction code encoder, and store the compressed data and the error correction code in the corresponding storage area.

[0123] Specifically, the corresponding module 403 is specifically used to: match the storage reliability with the compression degree according to the positive relationship between the storage reliability and the compression degree, so that the corresponding storage area is matched with the corresponding compression rate.

[0124] Specifically, the division module 402 is specifically used to divide multiple storage media into multiple storage areas according to the types and operating conditions of the storage media.

[0125] Specifically, the division module 402 is specifically used to divide a plurality of storage media into a plurality of storage areas according to different types of logical pages corresponding to different types of storage media, as well as the number of times the storage media are used and the read interference conditions.

[0126] In addition, the division module 402 is further used to divide the plurality of storage media into a plurality of storage areas according to the sub-line positions of the storage media.

[0127] In addition, the division module 402 is further used to divide the multiple storage media into a cold data storage area and a hot data storage area according to the hot and cold properties of the data to be stored.

[0128] In addition, the providing module 401 is also used to: provide a redundant disk array; the dividing module 402 is also used to: divide the corresponding compressed data according to different compression rates, and determine the corresponding verification information according to the divided data, the verification information is used to restore the divided data, and the compression degree of the compression rate is inversely related to the amount of divided data; the device 400 also includes: a storage module, which is used to store the verification information in the redundant disk array.

[0129] In addition, the device 400 also includes: a decoding module, which is used to decode the error correction code of the corresponding code rate through an error correction code decoder according to multiple compression rates, so that after reading the corresponding data in the storage medium, the error correction code of the corresponding data is decoded to obtain the data to be decompressed; a decompression module, which is used to decompress the data to be decompressed through a decompression engine to obtain the read data, and return it to the reading end.

[0130] For details of the device 400 that are not fully described, please refer to the above description and will not be repeated here.

[0131] The above describes Figure 4 The internal functions and structure of the device 400 shown, in one possible design, Figure 4 The structure of the device 400 shown can be implemented as an SSD. Figure 5 As shown, the device 500 may include: a memory 501, a processor 502;

[0132] The memory 501 is used to store computer programs.

[0133] The processor 502 is used to execute a computer program to: provide at least two compression algorithms for compressing data to be stored and determining the compression ratio corresponding to the compressed data; divide the storage medium into multiple storage areas according to the storage properties of the storage medium of the SSD, so that the divided storage areas have different storage reliabilities; and correspond the multiple storage areas to different compression ratios according to the storage reliability corresponding to the storage area and the compression degree of the compression ratio, so that the multiple storage areas are used to store data compressed according to different compression ratios, and the storage areas can provide storage reliability that satisfies the corresponding compressed data.

[0134] In addition, the processor 502 is also used to: provide error correction codes with different code rates through an error correction code encoder according to multiple compression rates; correspond different code rates to multiple compression rates according to the error correction codes with different code rates and the compression degrees of the multiple compression rates, so that the error correction codes with different code rates correspond to the data compressed according to the different compression rates, and the error correction codes corresponding to the compressed data can provide error correction capabilities that meet the data, and the code rate is inversely related to the compression degree.

[0135] Specifically, the processor 502 is specifically configured to: divide the plurality of storage media into a corresponding number of storage areas according to the determined number of compression ratios and the storage attributes of the storage medium of the SSD.

[0136] Specifically, the processor 502 is specifically configured to: divide the plurality of storage media into a plurality of storage areas according to the number of times the storage media are used, and the number of times of use is inversely related to the storage reliability.

[0137] Specifically, the processor 502 is specifically used to: obtain the data to be stored through the compression engine, compress the data to be stored according to the compression algorithm, and output the compression rate corresponding to the compressed data; in addition, the processor 502 is also used to: determine the error correction code of the compressed data according to the code rate corresponding to the output compression rate through the error correction code encoder, and store the compressed data and the error correction code in the corresponding storage area.

[0138] Specifically, the processor 502 is specifically configured to: match the storage reliability with the compression degree according to the positive relationship between the storage reliability and the compression degree, so that the corresponding storage area is matched with the corresponding compression rate.

[0139] Specifically, the processor 502 is specifically configured to: divide the plurality of storage media into a plurality of storage areas according to the type and operation status of the storage media.

[0140] Specifically, the processor 502 is specifically configured to divide the plurality of storage media into a plurality of storage areas according to the different types of logical pages corresponding to the different types of storage media, as well as the number of times the storage media are used and the read interference conditions.

[0141] In addition, the processor 502 is further configured to divide the plurality of storage media into a plurality of storage areas according to the sub-line positions of the storage media.

[0142] In addition, the processor 502 is further configured to divide the plurality of storage media into a cold data storage area and a hot data storage area according to the hot and cold properties of the data to be stored.

[0143] In addition, the processor 502 is also used to: provide a redundant disk array; divide the corresponding compressed data according to different compression rates, and determine corresponding verification information based on the divided data, the verification information is used to restore the divided data, and the compression degree of the compression rate is inversely related to the amount of divided data; store the verification information in the redundant disk array.

[0144] In addition, the processor 502 is also used to: decode the error correction code of the corresponding code rate through an error correction code decoder according to multiple compression rates, so that after reading the corresponding data in the storage medium, the error correction code of the corresponding data is decoded to obtain the data to be decompressed; decompress the data to be decompressed through the decompression engine to obtain the read data, and return it to the reading end.

[0145] For details of the device 500 that are not fully detailed, please refer to the previous description and will not be repeated here.

[0146] An embodiment of the present invention provides a computer storage medium, which, when a computer program is executed by one or more processors, causes the one or more processors to implement Figure 1-Figure 2 The steps of a data processing method based on a solid state drive (SSD) in the method embodiment will not be described in detail.

[0147] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 101, 102, 103, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0148] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0149] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0150] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable multimedia data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable multimedia data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0151] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable multimedia data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0152] These computer program instructions may also be loaded onto a computer or other programmable multimedia data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0153] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0154] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0155] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for processing data of a solid state drive (SSD), characterized in that: The SSD includes a controller and a plurality of NAND flash memory particles, the types of the NAND flash memory particles correspond to different types of logical pages, the different types of logical pages include a first type of logical page and a second type of logical page, a compression engine is deployed in the controller, and is used to compress data to be stored and obtain a corresponding compression rate, and the method is executed by the controller, and includes: Dividing the first type logical page of a first operating condition into a storage area, dividing the first type logical page of a second operating condition into a storage area, dividing the second type logical page of the first operating condition into a storage area, and dividing the second type logical page of the second operating condition into a storage area, thereby obtaining a plurality of storage areas with different storage reliability; wherein the first operating condition is high write / erase, cold data temperature and high read interference, and the second operating condition is low write / erase, hot data temperature and low read interference; Multiple storage areas are matched with different compression rate groups in such a manner that a compression rate group with a greater degree of compression corresponds to a storage area with a higher storage reliability, and a compression rate group with a smaller degree of compression corresponds to a storage area with a lower storage reliability, so that multiple storage areas are used to store data compressed according to the compression rate of the corresponding compression rate group, and the storage areas can provide storage reliability that meets the corresponding compressed data.

2. The method according to claim 1, characterized in that The method further comprises: According to the plurality of compression rate groups, error correction codes with different code rates are provided by an error correction code encoder; According to the error correction codes of different code rates and the compression degrees of multiple compression rate groups, different code rates are matched with multiple compression rate groups, so that the error correction codes of different code rates correspond to the data compressed according to different compression rates, and the error correction codes corresponding to the compressed data can provide error correction capabilities that meet the data, and the code rate is inversely related to the compression degree.

3. The method according to claim 2, characterized in that The method further comprises: Obtain the data to be stored through the compression engine, compress the data to be stored according to the compression algorithm, and output the compression ratio corresponding to the compressed data; The error correction code encoder determines the error correction code of the compressed data according to the code rate corresponding to the output compression rate, and stores the compressed data and the error correction code in the corresponding storage area.

4. The method according to claim 1, characterized in that: The method further comprises: Provides redundant disk arrays; According to different compression rate groups, the corresponding compressed data is divided, and the corresponding check information is determined according to the divided data. The check information is used to restore the divided data. The compression degree of the compression rate is inversely related to the amount of the divided data. Store parity information in redundant disk arrays.

5. The method according to claim 1, characterized in that The method further comprises: According to the plurality of compression rate groups, the error correction code of the corresponding code rate is decoded by an error correction code decoder, so that after reading the corresponding data in the NAND flash memory particle, the error correction code of the corresponding data is decoded to obtain the data to be decompressed; The decompression engine decompresses the data to be decompressed to obtain the read data, and returns it to the reading end.

6. A computing device, characterized in that An SSD is deployed thereon, the SSD includes a controller and a plurality of NAND flash memory particles, the types of the NAND flash memory particles correspond to different types of logical pages, the different types of logical pages include a first type of logical page and a second type of logical page, a compression engine is deployed in the controller, for compressing the data to be stored and obtaining a corresponding compression rate, and the controller is used to: Dividing the first type logical page of a first operating condition into a storage area, dividing the first type logical page of a second operating condition into a storage area, dividing the second type logical page of the first operating condition into a storage area, and dividing the second type logical page of the second operating condition into a storage area, thereby obtaining a plurality of storage areas with different storage reliability; wherein the first operating condition is high write / erase, cold data temperature and high read interference, and the second operating condition is low write / erase, hot data temperature and low read interference; Multiple storage areas are matched with different compression rate groups in such a manner that a compression rate group with a greater degree of compression corresponds to a storage area with a higher storage reliability, and a compression rate group with a smaller degree of compression corresponds to a storage area with a lower storage reliability, so that multiple storage areas are used to store data compressed according to the compression rate of the corresponding compression rate group, and the storage areas can provide storage reliability that meets the corresponding compressed data.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by one or more processors, the one or more processors are caused to implement the steps of the method according to any one of claims 1 to 5.