Storage control method of storage device and related equipment

CN119937922BActive Publication Date: 2026-08-21DAPUSTOR CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411997928.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2026-08-21
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

由于现有的存储解决方案往往固定了闪存颗粒的类型,例如常见的TLC、QLC等,这些颗粒一旦生产出来,就难以进行升级到更低位数的存储类型,比如从TLC转变为SLC或QLC转变为TLC

Benefits of technology

[0040] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: it can acquire the original data, determine the amount of the original data, determine the current usage type of the storage medium, and determine the target usage type of the storage medium based on the comparison between the amount of data and the preset write threshold corresponding to at least one low-bit usage type. The target usage type is the current usage type or any one of at least one low-bit usage type, where the number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio, where the low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type. Under the premise of ensuring the integrity of some data storage, the usage type of the storage medium can be changed from the usage type of the high-bit storage medium to the usage type of the low-bit storage medium, resulting in higher storage density and storage performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937922B_ABST
    Figure CN119937922B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a storage control method of a storage device, a storage control device of the storage device, a storage control equipment of the storage device, a computer readable storage medium and a computer program product containing instructions, which are used for storage control of the storage device in the case of improving storage density and storage performance. The method comprises the following steps: determining a data amount of original data, determining a current use type of a storage medium, determining a target use type of the storage medium according to a comparison between the data amount and preset write amount thresholds corresponding to at least one low-bit use type, the target use type being the current use type or any one of the at least one low-bit use type, the number of bits of the low-bit use type being lower than that of the current use type, the preset write amount threshold being a product of a total capacity of the current use type and a low-to-high bit ratio, and the low-to-high bit ratio being a ratio of the number of bits of the low-bit use type to that of the current use type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage control of storage devices, and more specifically, to storage control methods, storage control devices, storage control equipment, computer-readable storage media, and computer program products containing instructions. Background Technology

[0002] In modern data storage, the basic interaction process between the host and storage devices is as follows: the interaction between the host and the read / write flash memory includes "host write - memory software / hardware processing - write to flash memory" and "host read - memory software / hardware processing - read from flash memory". Because existing storage solutions often fix the type of flash memory chips, such as the common TLC and QLC, once these chips are manufactured, it is difficult to upgrade to lower bit-level storage types, such as from TLC to SLC or from QLC to TLC. This is because limitations in flash memory manufacturing processes and cost considerations make dynamic type conversion difficult. This means that low-bit (bit) configurations cannot be directly converted to high-bit configurations, and when converting from high-bit to low-bit configurations, the lower bit capacity also reduces storage capacity.

[0003] Therefore, existing technologies have low storage density and low storage performance. Summary of the Invention

[0004] This application provides a storage control method for a storage device, a storage control device for a storage device, a storage control apparatus for a storage device, a computer-readable storage medium, and a computer program product containing instructions, for performing storage control of a storage device while improving storage density and storage performance.

[0005] In a first aspect, embodiments of this application provide a storage control method for a storage device, comprising:

[0006] Obtain the raw data and determine the amount of raw data;

[0007] Determine the current usage type of the storage medium;

[0008] Based on the comparison between the data volume and the preset write threshold corresponding to each of the at least one low-bit usage type, the target usage type of the storage medium is determined. The target usage type is either the current usage type or any one of the at least one low-bit usage type. The number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio. The low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type.

[0009] Optionally, determining the target usage type of the storage medium based on a comparison between the data volume and a preset write volume threshold corresponding to at least one low-order usage type includes:

[0010] If there exists a preset write volume threshold that is greater than the target low-order usage type corresponding to the data volume, then the target low-order usage type will be used as the target usage type.

[0011] Optionally, determining the target usage type of the storage medium based on a comparison between the data volume and a preset write volume threshold corresponding to at least one low-order usage type includes:

[0012] If there is no low-bit usage type corresponding to the data volume that is greater than the preset write threshold, the original data is compressed to obtain compressed data.

[0013] Determine the target compression ratio of the compressed data, wherein the target compression ratio of the compressed data is the ratio of the amount of the original data to the amount of the compressed data;

[0014] The target usage type of the storage medium is determined based on a comparison between the target compression ratio of the compressed data and the preset minimum compression ratio threshold corresponding to at least one low-bit usage type. The preset minimum compression ratio threshold is the ratio of the number of bits of the current usage type to the number of bits of the low-bit usage type.

[0015] Optionally, determining the target usage type of the storage medium based on a comparison between the target compression ratio and a preset minimum compression ratio threshold corresponding to at least one low-bit usage type includes:

[0016] If there exists a preset minimum compression ratio threshold that is less than the target low-bit usage type corresponding to the target compression ratio, then the target usage type of the storage medium is determined to be the target low-bit usage type.

[0017] Optionally, determining the target usage type of the storage medium based on a comparison between the target compression ratio and a preset minimum compression ratio threshold corresponding to at least one low-bit usage type includes:

[0018] If there is no low-level usage type corresponding to a preset minimum compression ratio threshold that is less than the target compression ratio, then the target usage type of the storage medium is determined to be the current usage type.

[0019] Optionally, the compressed data includes compressed data and uncompressed data;

[0020] After compressing the original data to obtain compressed data, the method further includes:

[0021] The target usage type of the storage medium corresponding to the uncompressed data is determined to be the current usage type;

[0022] The determination of the target usage type of the storage medium based on the comparison result between the target compression ratio of the compressed data and the preset minimum compression ratio threshold corresponding to at least one low-level usage type includes:

[0023] Determine the target compression ratio of the compressed data, and determine the target usage type of the storage medium corresponding to the compressed data based on the comparison result between the target compression ratio of the compressed data and the minimum preset compression ratio threshold corresponding to at least one low-level usage type.

[0024] Optionally, determining the target usage type of the storage medium corresponding to the compressed data based on a comparison between the target compression ratio of the compressed data and a preset minimum compression ratio threshold corresponding to at least one low-level usage type includes:

[0025] If there exists a target low-bit usage type corresponding to the target compression rate of the compressed data that is less than the minimum preset compression rate threshold, then the target usage type of the storage medium corresponding to the compressed data is determined as the target low-bit usage type.

[0026] Optionally, determining the target usage type of the storage medium corresponding to the compressed data based on a comparison between the target compression ratio of the compressed data and a preset minimum compression ratio threshold corresponding to at least one low-level usage type includes:

[0027] If there is no low-level usage type corresponding to the target compression rate of the compressed data that is less than the preset minimum compression rate threshold, then the target usage type of the storage medium corresponding to the compressed data is determined as the current usage type.

[0028] Optionally, determining the current usage type of the storage medium includes:

[0029] After erasing the storage medium based on the first usage type, the first usage type is taken as the current usage type.

[0030] Secondly, embodiments of this application provide a storage control device for a storage device, comprising:

[0031] An acquisition unit is used to acquire raw data and determine the amount of raw data.

[0032] The determining unit is used to determine the current usage type of the storage medium;

[0033] The determining unit is further configured to determine the target usage type of the storage medium based on a comparison between the data volume and a preset write threshold corresponding to each of the at least one low-bit usage type. The target usage type is either the current usage type or any one of the at least one low-bit usage type. The number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio. The low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type.

[0034] Thirdly, embodiments of this application provide a storage control device for a storage device, comprising:

[0035] Central processing unit, memory, input / output interfaces, wired or wireless network interfaces, and power supply;

[0036] The memory is either a short-term storage memory or a persistent storage memory;

[0037] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the aforementioned storage control method for the storage device.

[0038] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the aforementioned storage control method for the storage device.

[0039] Fifthly, embodiments of this application provide a computer program product containing instructions that, when run on a computer, cause the computer to execute the aforementioned storage control method for the storage device.

[0040] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: it can acquire the original data, determine the amount of the original data, determine the current usage type of the storage medium, and determine the target usage type of the storage medium based on the comparison between the amount of data and the preset write threshold corresponding to at least one low-bit usage type. The target usage type is the current usage type or any one of at least one low-bit usage type, where the number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio, where the low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type. Under the premise of ensuring the integrity of some data storage, the usage type of the storage medium can be changed from the usage type of the high-bit storage medium to the usage type of the low-bit storage medium, resulting in higher storage density and storage performance. Attached Figure Description

[0041] Figure 1This is a schematic flowchart of a storage control method for a storage device disclosed in an embodiment of this application;

[0042] Figure 2 This is a schematic diagram of the flash memory chip types disclosed in the embodiments of this application;

[0043] Figure 3 This is a schematic diagram illustrating the conversion of a high-level usage type to a low-level usage type as disclosed in an embodiment of this application;

[0044] Figure 4 This is a schematic flowchart of another storage control method for a storage device disclosed in an embodiment of this application;

[0045] Figure 5 This is a schematic diagram of a NAND initialization state disclosed in an embodiment of this application;

[0046] Figure 6 This is a schematic diagram of the structure of a storage control device for a storage device disclosed in an embodiment of this application;

[0047] Figure 7 This is a schematic diagram of the structure of a storage control device for a storage device disclosed in an embodiment of this application. Detailed Implementation

[0048] This application provides a storage control method for a storage device, a storage control device for a storage device, a storage control apparatus for a storage device, a computer-readable storage medium, and a computer program product containing instructions, for performing storage control of a storage device while improving storage density and storage performance.

[0049] Please see Figure 1 , Figure 1 This is a flowchart illustrating a storage control method for a storage device disclosed in an embodiment of this application. The method includes:

[0050] 101. Obtain the raw data and determine the amount of raw data.

[0051] In this embodiment, when performing storage control of the storage device, the original data can be obtained and the amount of original data can be determined.

[0052] Specifically, raw data refers to data that has not undergone compression processing, and the amount of raw data refers to the actual storage space occupied by the raw data during the storage process.

[0053] 102. Determine the current usage type of the storage medium.

[0054] After obtaining the raw data and determining its volume, the current usage type of the storage medium can be determined.

[0055] Specifically, the storage control method of the storage device according to the embodiments of the present application is applicable to all products using NAND particles. NAND (Not And) particles are a type of non-volatile semiconductor memory and are the basic units constituting the flash memory storage array in a solid-state drive (SSD). SLC (Single-Level Cell), MLC (Multi-Level Cell), TLC (Trinary-Level Cell), and QLC (Quad-Level Cell) are all different-level encoding methods adopted by NAND flash memory. These types represent the number of binary digits that a single storage cell can store data, determining the characteristics of storage density and performance, such as lifespan, performance, the amount of data stored per cell, and data stability, etc. For the amount of data stored per cell, please refer to Figure 2 , Figure 2 which is a schematic diagram of the flash particle types disclosed in the embodiments of the present application, Figure 2 indicating the number of bits stored under each cell of SLC, MLC, TLC, and QLC, or the storage data density of each cell. Each cell of SLC stores 1 bit of data, each cell of MLC stores 2 bits of data, each cell of TLC stores 3 bits of data, and each cell of QLC stores 4 bits of data. For lifespan: SLC > MLC > TLC > QLC. For performance: SLC > MLC > TLC > QLC. For the amount of data stored per cell: SLC < MLC < TLC < QLC. For data stability: SLC > MLC > TLC > QLC.

[0056] 103. Determine the target usage type of the storage medium according to the comparison of the data volume with the preset write volume thresholds respectively corresponding to at least one lower-order usage type. The target usage type is the current usage type or any one of the at least one lower-order usage type. The number of bits of the lower-order usage type is lower than that of the current usage type. The preset write volume threshold is the product of the total capacity of the current usage type and the low-high ratio. The low-high ratio is the ratio of the number of bits of the lower-order usage type to the number of bits of the current usage type.

[0057] After determining the current usage type of the storage medium, the target usage type of the storage medium can be determined according to the comparison of the data volume with the preset write volume thresholds respectively corresponding to at least one lower-order usage type. The target usage type is the current usage type or any one of the at least one lower-order usage type. The number of bits of the lower-order usage type is lower than that of the current usage type. The preset write volume threshold is the product of the total capacity of the current usage type and the low-high ratio. The low-high ratio is the ratio of the number of bits of the lower-order usage type to the number of bits of the current usage type.

[0058] Specifically, for example, if the current usage type is QLC, then the lower bit usage type is any of the usage types of storage media with a lower bit count than QLC, such as SLC, MLC, TLC, etc.

[0059] It is worth mentioning that, while ensuring the integrity of some data storage, changing the storage medium usage type from a high-bit storage medium usage type (encoding type) to a low-bit storage medium usage type (encoding type) can improve storage density and storage performance.

[0060] In this embodiment, raw data can be acquired, the amount of raw data can be determined, the current usage type of the storage medium can be determined, and the target usage type of the storage medium can be determined based on the comparison between the amount of data and the preset write threshold corresponding to at least one low-bit usage type. The target usage type is the current usage type or any one of at least one low-bit usage type, where the number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio, where the low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type. This allows the usage type of the storage medium to be changed from a high-bit storage medium usage type to a low-bit storage medium usage type while ensuring the integrity of some data storage, resulting in higher storage density and storage performance.

[0061] In this application embodiment, there are various methods for determining the target usage type of the storage medium based on a comparison between the data volume and a preset write volume threshold corresponding to at least one low-order usage type. Figure 1 The storage control method of the storage device shown is described below, and one of the methods is described below.

[0062] In this embodiment, when performing storage control of the storage device, the original data can be obtained first, and the amount of original data can be determined.

[0063] After obtaining the raw data and determining its volume, the current usage type of the storage medium can be determined.

[0064] After determining the current usage type of the storage medium, the target usage type of the storage medium can be determined by comparing the data volume with the preset write threshold corresponding to at least one low-bit usage type. The target usage type is either the current usage type or any one of the at least one low-bit usage type, where the number of bits in the low-bit usage type is less than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio, where the low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type.

[0065] One method for determining the target usage type of the storage medium based on a comparison between the data volume and the preset write volume threshold corresponding to at least one low-level usage type is that if there is a preset write volume threshold that is greater than the target low-level usage type corresponding to the data volume, then the target low-level usage type is taken as the target usage type.

[0066] Specifically, if the current usage type is QLC, then the lower-order usage type is any one of SLC, MLC, or TLC. The total capacity of QLC is 8TB, and the preset write thresholds for SLC, MLC, and TLC are 8TB*(1 / 4), 8TB*(2 / 4), and 8TB*(3 / 4), respectively. If the original data volume is 5.9TB, since 8TB*(3 / 4) is greater than 5.9TB, TLC (target lower-order usage type) can be determined as the target usage type.

[0067] It is worth mentioning that when the amount of data is small but still suitable for low-byte type storage, prioritizing low-byte type can result in lower read / write latency and energy consumption, thereby improving storage performance.

[0068] One method for determining the target usage type of the storage medium based on a comparison between the data volume and a preset write threshold corresponding to at least one low-bit usage type is as follows: if there is no preset write threshold greater than the low-bit usage type corresponding to the data volume, the original data is first compressed to obtain compressed data. Then, the target compression ratio of the compressed data is determined. The target compression ratio of the compressed data is the ratio of the data volume of the original data to the data volume of the compressed data. Finally, the target usage type of the storage medium is determined based on a comparison between the target compression ratio of the compressed data and the minimum preset compression ratio threshold corresponding to at least one low-bit usage type. The minimum preset compression ratio threshold is the ratio of the number of bits of the current usage type to the number of bits of the low-bit usage type.

[0069] For details, please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating the conversion of a high-level usage type to a low-level usage type as disclosed in an embodiment of this application. Figure 3 This paper demonstrates a method for converting high-level (e.g., 4-bit QLC) usage types to low-level (e.g., 3-bit TLC) usage types using specific techniques (such as data compression) to maintain or increase storage capacity while improving storage performance. This method can maintain or increase storage capacity, and a higher compression ratio can achieve even greater storage capacity. It fully utilizes storage space without sacrificing system performance, thereby improving the overall system storage density and performance. In other words, this conversion of high-bit flash memory chips to low-bit flash memory chips, combined with compression algorithms, can significantly improve flash memory chip performance and data stability while ensuring capacity.

[0070] One method for determining the target usage type of a storage medium based on a comparison between the target compression ratio and the minimum preset compression ratio threshold corresponding to at least one low-bit usage type is that if there is a minimum preset compression ratio threshold that is less than the target low-bit usage type corresponding to the target compression ratio, then the target usage type of the storage medium is determined to be the target low-bit usage type.

[0071] The method for determining the target usage type of the storage medium based on the comparison between the target compression rate and the minimum preset compression rate threshold corresponding to at least one low-level usage type can also be that if there is no low-level usage type corresponding to the target compression rate that is less than the minimum preset compression rate threshold, then the target usage type of the storage medium is determined to be the current usage type.

[0072] For details, please refer to Figure 4 , Figure 4 This is a schematic flowchart of another storage control method for a storage device disclosed in an embodiment of this application. Figure 4 It is known that the current usage type is QLC high-bit usage type, and the low-bit usage type is TLC low-bit usage type. Specifically, the host data (raw data) is written first, then the storage device receives the data written by the host, caches the data in the storage device, and executes the following three steps corresponding to the conditions:

[0073] Condition 1: When the amount of original data is less than the preset write threshold [Preset write threshold = total capacity of the current type * (number of low bits / number of high bits) = total capacity * (3 / 4)], the original data will be assembled and written according to the TLC rule, and the assembled data will be sent to the NAND for write operation.

[0074] Condition 2: When the amount of original data is greater than the preset write amount threshold, the original data is compressed. If the target compression ratio is greater than the preset minimum compression ratio threshold (preset minimum compression ratio threshold = 4 / 3), the compressed data is assembled according to the TLC rule and the assembled data is sent to NAND for write operation.

[0075] Condition 3: When the amount of original data is greater than the preset write volume threshold, if the target compression ratio is less than the preset minimum compression ratio threshold (compression ratio threshold = 4 / 3), the compressed data will be assembled according to the QLC rule, and the assembled data will be sent to the NAND for write operation.

[0076] Specifically, the target compression ratio (data compression ratio) needs to be greater than or equal to the high bit / low bit ratio. This can be understood as follows: for QLC to TLC conversion, the target compression ratio must be greater than 4 / 3 of the preset minimum compression ratio threshold; for QLC to MLC conversion, the target compression ratio must be greater than 4 / 2 of the preset minimum compression ratio threshold, and so on.

[0077] In this process, after compressing the original data to obtain compressed data, the target usage type of the storage medium corresponding to the uncompressed data can be determined as the current usage type. The compressed data includes compressed data and uncompressed data. The method for determining the target usage type of the storage medium based on the comparison between the target compression ratio of the compressed data and the minimum preset compression ratio threshold corresponding to at least one low-level usage type can be as follows: determine the target compression ratio of the compressed data, and determine the target usage type of the storage medium corresponding to the compressed data based on the comparison between the target compression ratio of the compressed data and the minimum preset compression ratio threshold corresponding to at least one low-level usage type.

[0078] It's important to understand that not all data in the original data can be compressed. Therefore, when compressing the original data, the resulting compressed data may contain two parts: compressed data and uncompressed data. Compressed data refers to the data in the original data that can be compressed, while uncompressed data refers to the data in the original data that cannot be compressed.

[0079] One method for determining the target usage type of the storage medium corresponding to the compressed data based on the comparison between the target compression ratio of the compressed data and the minimum preset compression ratio threshold corresponding to at least one low-bit usage type is as follows: if there is a minimum preset compression ratio threshold that is less than the target low-bit usage type corresponding to the target compression ratio of the compressed data, then the target usage type of the storage medium corresponding to the compressed data is determined as the target low-bit usage type.

[0080] The method for determining the target usage type of the storage medium corresponding to the compressed data based on the comparison between the target compression ratio of the compressed data and the minimum preset compression ratio threshold corresponding to at least one low-level usage type can also be: if there is no low-level usage type corresponding to the target compression ratio of the compressed data that is less than the minimum preset compression ratio threshold, then the target usage type of the storage medium corresponding to the compressed data is determined as the current usage type.

[0081] It is worth mentioning that when the amount of compressed data is close to or reaches the minimum threshold of the preset compression ratio for a certain low bit usage type, choosing a lower bit type can increase storage density, optimize storage strategy, and improve storage space utilization.

[0082] One method for determining the current usage type of the storage medium is to perform an erasure operation on the storage medium based on a first usage type, and then use the first usage type as the current usage type.

[0083] For details, please refer to Figure 5 , Figure 5 This is a schematic diagram of a NAND initialization state disclosed in an embodiment of this application. Figure 5 The initialization steps for converting all QLC / TLC / MLC to TLC / MLC / SLC respectively are as follows: Figure 5 As shown, raw NAND flash memory cannot be written to without erasure. Taking a 2-plane NAND flash memory with 4 AUs (Authorized Units) per plane and each AU capable of storing 4KB of data, when NAND flash is erased using TLC (Time Limit Continuous) erasure, each write operation under TLC requires 3 pages * 2 planes * 2 AUs * 4KB and only requires one write operation. When NAND flash is erased using QLC (Quick Limit Continuous) erasure, each write operation under QLC requires 4 pages * 2 planes * 2 AUs * 4KB and requires two write operations to complete the NAND write. Therefore, different erase modes (TLC, MLC, or QLC) can alter the nature of subsequent read and write operations to some extent. For example, if erased using QLC mode, it can be initialized to TLC or MLC so that the program operates only on the corresponding erase level, or it can be partially used according to the original level and partially converted for use. This flexibility depends on the system's configuration requirements. This allows for adjustments to the behavior and performance of the storage device as needed.

[0084] In this embodiment, raw data can be acquired, its volume determined, and the current usage type of the storage medium determined. Based on a comparison of the data volume with a preset write threshold corresponding to at least one low-bit usage type, the target usage type of the storage medium is determined. The target usage type is either the current usage type or any one of at least one low-bit usage type, where the number of bits in the low-bit usage type is lower than that in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio, where the low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type. This allows the storage medium's usage type to be converted from a high-bit storage medium usage type to a lower-bit storage medium usage type while ensuring the integrity of some data storage, resulting in higher storage density and performance. Secondly, this conversion of high-bit flash memory chips to low-bit flash memory chips, combined with compression algorithms, can significantly improve flash memory chip performance and data stability while maintaining capacity. Finally, for compressed data volumes approaching or reaching a preset minimum compression rate threshold for a certain low-bit usage type, selecting a lower bit type can increase storage density, optimize storage strategies, and improve storage space utilization.

[0085] The storage control method of the storage device in the embodiments of this application has been described above. The storage control device of the storage device in the embodiments of this application is described below. Please refer to [link to relevant documentation]. Figure 6 One embodiment of the storage control device of the storage device in this application includes:

[0086] An acquisition unit is used to acquire raw data and determine the amount of raw data.

[0087] The determining unit is used to determine the current usage type of the storage medium;

[0088] The determining unit is further configured to determine the target usage type of the storage medium based on a comparison between the data volume and a preset write threshold corresponding to each of the at least one low-bit usage type. The target usage type is either the current usage type or any one of the at least one low-bit usage type. The number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio. The low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type.

[0089] In this embodiment, raw data can be acquired, the amount of raw data can be determined, the current usage type of the storage medium can be determined, and the target usage type of the storage medium can be determined based on the comparison between the amount of data and the preset write threshold corresponding to at least one low-bit usage type. The target usage type is the current usage type or any one of at least one low-bit usage type, where the number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio, where the low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type. This allows the usage type of the storage medium to be changed from a high-bit storage medium usage type to a low-bit storage medium usage type while ensuring the integrity of some data storage, resulting in higher storage density and storage performance.

[0090] Please refer to the following: Figure 7 One embodiment of the storage control device 700 of the storage device in this application includes:

[0091] Central processing unit 701, memory 705, input / output interface 704, wired or wireless network interface 703, and power supply 702;

[0092] Memory 705 is either a short-term storage memory or a persistent storage memory;

[0093] The central processing unit 701 is configured to communicate with the memory 705 and execute instructions stored in the memory 705 to perform the aforementioned operations. Figure 1 The method in the illustrated embodiment.

[0094] This application also provides a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the aforementioned actions. Figure 1 The method in the illustrated embodiment.

[0095] This application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the aforementioned... Figure 1 The method in the illustrated embodiment.

[0096] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0097] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

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

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

[0100] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0101] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A storage control method for a storage device, characterized in that, include: Receive the raw data to be written from the host and determine the amount of the raw data; Determine the current usage type of the storage medium; Based on the comparison between the data volume and the preset write volume threshold corresponding to each of the at least one low-bit usage type, the target usage type of the storage medium is determined. The target usage type is the current usage type or any one of the at least one low-bit usage type. The number of bits in the low-bit usage type is less than the number of bits in the current usage type. The preset write volume threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio. The low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type. The storage medium of the target usage type is used to write and store the original data. The step of determining the target usage type of the storage medium based on a comparison between the data volume and a preset write volume threshold corresponding to at least one low-order usage type includes: If there is no low-bit usage type corresponding to the data volume that is greater than the preset write threshold, the original data is compressed to obtain compressed data. Determine the target compression ratio of the compressed data, wherein the target compression ratio of the compressed data is the ratio of the amount of the original data to the amount of the compressed data; The target usage type of the storage medium is determined based on a comparison between the target compression ratio of the compressed data and the preset minimum compression ratio threshold corresponding to at least one low-bit usage type. The preset minimum compression ratio threshold is the ratio of the number of bits of the current usage type to the number of bits of the low-bit usage type.

2. The storage control method for a storage device according to claim 1, characterized in that, The step of determining the target usage type of the storage medium based on a comparison between the data volume and a preset write volume threshold corresponding to at least one low-order usage type includes: If there exists a preset write volume threshold that is greater than the target low-order usage type corresponding to the data volume, then the target low-order usage type will be used as the target usage type.

3. The storage control method for a storage device according to claim 1, characterized in that, The determination of the target usage type of the storage medium based on the comparison result between the target compression ratio and the minimum preset compression ratio threshold corresponding to at least one low-bit usage type includes: If there exists a preset minimum compression ratio threshold that is less than the target low-bit usage type corresponding to the target compression ratio, then the target usage type of the storage medium is determined to be the target low-bit usage type.

4. The storage control method for a storage device according to claim 1, characterized in that, The determination of the target usage type of the storage medium based on the comparison result between the target compression ratio and the minimum preset compression ratio threshold corresponding to at least one low-bit usage type includes: If there is no low-level usage type corresponding to a preset minimum compression ratio threshold that is less than the target compression ratio, then the target usage type of the storage medium is determined to be the current usage type.

5. The storage control method for a storage device according to claim 1, characterized in that, The compressed data includes both compressed and uncompressed data; After compressing the original data to obtain compressed data, the method further includes: The target usage type of the storage medium corresponding to the uncompressed data is determined to be the current usage type; The determination of the target usage type of the storage medium based on the comparison result between the target compression ratio of the compressed data and the preset minimum compression ratio threshold corresponding to at least one low-level usage type includes: Determine the target compression ratio of the compressed data, and determine the target usage type of the storage medium corresponding to the compressed data based on the comparison result between the target compression ratio of the compressed data and the minimum preset compression ratio threshold corresponding to at least one low-level usage type.

6. The storage control method for a storage device according to claim 5, characterized in that, The determination of the target usage type of the storage medium corresponding to the compressed data based on the comparison result between the target compression ratio of the compressed data and the preset minimum compression ratio threshold corresponding to at least one low-level usage type includes: If there exists a target low-bit usage type corresponding to the target compression rate of the compressed data that is less than the minimum preset compression rate threshold, then the target usage type of the storage medium corresponding to the compressed data is determined as the target low-bit usage type.

7. The storage control method for a storage device according to claim 6, characterized in that, The determination of the target usage type of the storage medium corresponding to the compressed data based on the comparison result between the target compression ratio of the compressed data and the preset minimum compression ratio threshold corresponding to at least one low-level usage type includes: If there is no low-level usage type corresponding to the target compression rate of the compressed data that is less than the preset minimum compression rate threshold, then the target usage type of the storage medium corresponding to the compressed data is determined as the current usage type.

8. The storage control method for a storage device according to claim 1, characterized in that, Determining the current usage type of the storage medium includes: After erasing the storage medium based on the first usage type, the first usage type is taken as the current usage type.

9. A storage control device for a storage device, characterized in that, include: The acquisition unit is used to receive the raw data to be written from the host and determine the amount of the raw data. The determining unit is used to determine the current usage type of the storage medium; The determining unit is further configured to determine the target usage type of the storage medium based on a comparison between the data volume and a preset write threshold corresponding to each of the at least one low-bit usage type. The target usage type is either the current usage type or any one of the at least one low-bit usage type. The number of bits in the low-bit usage type is lower than the number of bits in the current usage type. The preset write threshold is the product of the total capacity of the current usage type and the low-to-high bit ratio. The low-to-high bit ratio is the ratio of the number of bits in the low-bit usage type to the number of bits in the current usage type. The determining unit is specifically configured to, if there is no preset write amount threshold greater than the low-bit usage type corresponding to the data amount, compress the original data to obtain compressed data, determine the target compression ratio of the compressed data, the target compression ratio of the compressed data being the ratio of the data amount of the original data to the data amount of the compressed data, and determine the target usage type of the storage medium based on the comparison result between the target compression ratio of the compressed data and the preset minimum compression ratio threshold corresponding to at least one low-bit usage type, the preset minimum compression ratio threshold being the ratio of the number of bits of the current usage type to the number of bits of the low-bit usage type, and the storage medium of the target usage type being used to write and store the original data.

10. A storage control device for a storage device, characterized in that, include: Central processing unit and memory; The memory is either a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 8.

12. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Storage device control method and device and storage device

    CN115729437A

  • Data storage method and data storage system of storage chip

    CN118626024A