Data processing method, apparatus and system

By constructing a pre-defined SSD linked list and determining the frequency level based on the historical read and write counts of data, the storage of data between SSDs and HDDs is optimized, solving the problems of high storage costs and poor read and write performance in hybrid disk arrays, and achieving efficient data read and write.

CN116700610BActive Publication Date: 2026-11-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310484147.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2026-11-20
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

In existing technologies, using SSDs alone results in high costs and susceptibility to damage, while using HDDs alone results in poor read/write performance, and hybrid disk arrays suffer from low data read/write efficiency.

Method used

By constructing a pre-defined SSD linked list, the read/write frequency level of data is determined based on the historical number of reads and writes within a preset time period. High-frequency data is stored in the SSD array, while low-frequency data is stored in the HDD array. Data backup is performed using RAID 10 mode to improve read/write performance and reliability.

Benefits of technology

While maintaining the low-cost advantage of mechanical hard drives and the read/write performance of solid-state drives, this system improves data read/write efficiency, reduces the risk of SSD damage, and enhances the overall performance and reliability of the hybrid storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116700610B_ABST
    Figure CN116700610B_ABST
Patent Text Reader

Abstract

The application provides a data processing method, device and system, the method comprising: receiving a first input, the first input comprising an operation of reading first target data from a first disk array or an operation of writing second target data to a second disk array, wherein the first disk array is a disk array constructed by a plurality of mechanical hard disks, and the second disk array is a disk array constructed by a plurality of solid state disks; in response to the first input, reading the first target data from a corresponding disk array or writing the second target data to the corresponding disk array through a preset solid state disk linked list; wherein the preset solid state disk linked list is constructed based on the historical read-write times of each data within a preset period. The application improves the data read-write efficiency while ensuring the low-cost advantage of the mechanical hard disk and the read-write performance of the solid state disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data storage technology, and in particular to a data processing method, apparatus and system. Background Technology

[0002] In recent years, with the development of storage technology, there have been higher requirements for storage performance and stability. For storage applications with high read and write performance requirements, solid-state drives (SSDs) with high read and write performance are usually used for storage; for large-capacity storage applications, hard disk drives (HDDs) with lower cost are usually used for storage.

[0003] In important high-capacity data storage needs, the single SSD storage mode has disadvantages such as high cost and frequent read and write operations that can easily damage the SSD, while the single HDD storage mode has disadvantages such as poor read and write performance.

[0004] Therefore, there is an urgent need for a data processing method, device, and system to solve the above problems. Summary of the Invention

[0005] To address the problems existing in the prior art, the present invention provides a data processing method, apparatus, and system.

[0006] This invention provides a data processing method, comprising:

[0007] Receive a first input, the first input including an operation to read a first target data from a first disk array, or an operation to write a second target data to a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives;

[0008] In response to the first input, the first target data is read from the corresponding disk array through a preset solid-state drive linked list, or the second target data is written to the corresponding disk array;

[0009] The preset solid-state drive linked list is constructed based on the historical number of reads and writes of each data within a preset time period.

[0010] According to a data processing method provided by the present invention, the preset solid-state drive linked list is constructed in the following manner:

[0011] The historical number of reads and writes of the data to be written within a preset time period is obtained, wherein the data to be written is data to be written to a disk array, and the disk array includes a first disk array and a second disk array;

[0012] Based on the storage location information corresponding to the first disk array and the second disk array respectively, a data storage location mapping relationship is constructed between the first disk array and the second disk array;

[0013] The preset solid-state drive linked list is constructed based on the preset read / write count threshold, the data storage location mapping relationship, and the historical read / write count.

[0014] According to a data processing method provided by the present invention, the step of constructing a preset solid-state drive linked list based on a preset read / write count threshold, the data storage location mapping relationship, and the historical read / write count includes:

[0015] Based on the preset read / write frequency threshold and the historical read / write frequency, determine the read / write frequency level corresponding to the data to be written;

[0016] If the historical read / write count is greater than or equal to the preset read / write count threshold, the data to be written is marked as high-frequency data. According to the data storage location mapping relationship, the high-frequency data is written to the corresponding storage location in the first disk array and the corresponding storage location in the second disk array, respectively. Based on the storage location of the high-frequency data, the storage location information of the data at both ends of the high-frequency data, and the historical read / write count, a corresponding high-frequency data sub-linked list is generated.

[0017] If the number of historical reads and writes is less than the preset read and write count threshold, and the number of historical reads and writes is not 0, the data to be written is marked as low-frequency data, and the low-frequency data is written to the corresponding storage location in the first disk array. Based on the storage location of the low-frequency data, the storage location information of the data at the beginning and end of the low-frequency data, and the number of historical reads and writes, a corresponding low-frequency data sub-linked list is generated.

[0018] Based on the storage location information of the unstored data in the second disk array, a corresponding free sub-list is generated;

[0019] The preset solid-state drive linked list is constructed based on the high-frequency data sub-linked list, the low-frequency data sub-linked list, and the idle sub-linked list.

[0020] According to a data processing method provided by the present invention, the step of reading the first target data from the corresponding disk array through a preset solid-state drive linked list in response to the first input includes:

[0021] Obtain the first storage location information of the first target data;

[0022] Based on the first storage location information and the preset solid-state drive linked list, the first target data is judged. If the first target data has second storage location information and the first target data is the high-frequency data, the first target data is read from the second disk array.

[0023] If the first target data exists in the second storage location information, and the first target data is the low-frequency data, the first target data is read from the first disk array;

[0024] If the second storage location information is not available for the first target data, the first target data is read from the first disk array;

[0025] Wherein, the first storage location information is the storage location information of the first target data in the first disk array, and the second storage location information is the storage location information of the first target data in the second disk array.

[0026] According to a data processing method provided by the present invention, the step of writing the second target data to the corresponding disk array through a preset solid-state drive linked list in response to the first input includes:

[0027] According to the preset solid-state drive linked list, the second target data is judged. If the second target data is the high-frequency data, the second target data is written to the first disk array and the second disk array respectively.

[0028] If the second target data is the low-frequency data, the second target data is written to the first disk array.

[0029] According to a data processing method provided by the present invention, after reading the first target data from the corresponding disk array through a preset solid-state drive linked list in response to the first input, or writing the second target data to the corresponding disk array, the method further includes:

[0030] Based on the current data read / write cycle, obtain the real-time read / write count of the first target data or the second target data within a preset time period;

[0031] If the first target data or the second target data is determined to be low-frequency data, and if the number of real-time read / write operations is greater than or equal to the preset read / write operation threshold, the low-frequency data sub-linked list corresponding to the first target data or the second target data is updated to the high-frequency data sub-linked list.

[0032] According to a data processing method provided by the present invention, the first disk array is obtained by combining the RAID10 array combination mode, and the second disk array is obtained by combining the RAID0 array combination mode.

[0033] The present invention also provides a data processing apparatus, comprising:

[0034] An input module is used to receive a first input, the first input including an operation to read first target data from a first disk array or an operation to write second target data to a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives;

[0035] The data read / write module is used to respond to the first input by reading the first target data from the corresponding disk array through a preset solid-state drive linked list, or writing the second target data to the corresponding disk array.

[0036] The preset solid-state drive linked list is constructed based on the historical number of reads and writes of each data within a preset time period.

[0037] The present invention also provides a hybrid storage system, including a hybrid storage array and the above-mentioned data processing device, wherein the hybrid storage array is composed of a first disk array and a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives.

[0038] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the data processing methods described above.

[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the data processing method as described above.

[0040] The data processing method, apparatus, and system provided by this invention construct a preset solid-state drive linked list based on the historical number of reads and writes of each data within a preset time period. The system determines the disk type corresponding to the data to be written or read, and then uses the solid-state drive or mechanical hard drive that is more suitable for read and write performance to perform data read and write. This improves data read and write efficiency while ensuring the low cost advantage of mechanical hard drives and the read and write performance of solid-state drives. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0042] Figure 1 A flowchart illustrating the data processing method provided by the present invention;

[0043] Figure 2 This is a schematic diagram of the structure of the hybrid disk array provided by the present invention;

[0044] Figure 3 A schematic diagram of the preset solid-state drive linked list provided by the present invention;

[0045] Figure 4 A flowchart illustrating the data reading process provided by this invention;

[0046] Figure 5 A flowchart illustrating the data writing process provided by this invention;

[0047] Figure 6 A schematic diagram of the structure of the data processing device provided by the present invention;

[0048] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

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

[0050] In data storage applications, the appropriate hard drive is typically selected based on the specific storage scenario. For example, SSDs with high read / write performance are used for applications requiring high read / write speeds, while HDDs, which offer lower costs, are used for large-capacity storage. Because single-mode storage has certain drawbacks—such as the high cost of SSDs and the risk of SSD damage from frequent read / write operations, and the poor read / write performance of HDDs—hybrid arrays of independent disks (RAID) are commonly used for data storage, combining traditional HDDs and SSDs into a single integrated hard drive. However, current hybrid array data storage primarily relies on the user's storage needs, storing data on the corresponding hard drive areas. For example, data is written to an HDD or SSD by the user, and data can only be retrieved from the previously actively stored hard drive. Since the user must actively retrieve data from the corresponding hard drive, data read / write efficiency is relatively low.

[0051] Figure 1 A flowchart illustrating the data processing method provided by this invention is shown below. Figure 1 As shown, the present invention provides a data processing method, including:

[0052] Step 101: Receive a first input, the first input including an operation to read first target data from a first disk array or an operation to write second target data to a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives.

[0053] In this invention, the hybrid disk array is composed of multiple mechanical hard drives (i.e., the first disk array) and multiple solid-state drives (i.e., the second disk array). Preferably, the first disk array is obtained by combining based on the RAID10 array combination mode, and the second disk array is obtained by combining based on the RAID0 array combination mode.

[0054] In this invention, x SSDs are used to form a Raid 0 mode SSD module to obtain a second disk array for storing medium and high frequency data of HDDs, thereby improving the overall storage read and write performance; y HDDs are used to form a Raid 10 mode HDD module to obtain a first disk array, where y satisfies 4 + N × 2 (N ≥ 0), in order to reduce the overall storage cost and improve reliability. Furthermore, by setting up the Raid 10 mode, data can be backed up and recovered in time in case of loss, thereby improving the reliability of storage.

[0055] Figure 2 The schematic diagram of the hybrid disk array provided by the present invention can be referred to. Figure 2 As shown, after determining that the data to be written in the HHD module (i.e., the second target data) is mid-to-high frequency data (such as data a1, data f1, and data k1), during data writing, the mid-to-high frequency data is written to the first disk array simultaneously with the second disk array. Correspondingly, during data reading, when the user submits a read operation for the data to be read (i.e., the first target data), the data is read from the first disk array. If the data to be read is mid-to-high frequency data, it will be read from the second disk array (since the data is mid-to-high frequency data, it has already been written to both the first and second disk arrays simultaneously during writing). It should be noted that in this invention, when the data write operation is to write to the first disk array, the data is directly written to the first disk array; and when the data read operation is to read data from the second disk array, the data is directly read from the second disk array.

[0056] Step 102: In response to the first input, read the first target data from the corresponding disk array through the preset solid-state drive linked list, or write the second target data to the corresponding disk array;

[0057] The preset solid-state drive linked list is constructed based on the historical number of reads and writes of each data within a preset time period.

[0058] In this invention, the read / write frequency level of the data to be written or read is obtained based on a preset solid-state drive (SSD) linked list, thereby determining the write or read path for this data. Based on the preset SSD linked list constructed from the historical read / write counts of each data point within a preset time period, the read / write frequency level of the data to be written or read can be quickly determined. After determining that the data is medium-to-high frequency data, the user's data read / write operations are adjusted. For example, if the data to be read is initially read from the first disk array, and after determining that the data is medium-to-high frequency data, the data will then be read from the second disk array.

[0059] The data processing method provided by this invention constructs a preset solid-state drive linked list based on the historical number of reads and writes of each data within a preset time period. It then determines the disk type corresponding to the data to be written or read and uses the solid-state drive or mechanical hard drive that is more suitable for read and write performance to perform data read and write. This improves data read and write efficiency while ensuring the low cost advantage of mechanical hard drives and the read and write performance of solid-state drives.

[0060] Based on the above embodiments, the preset solid-state drive linked list is constructed in the following way:

[0061] The historical number of reads and writes of the data to be written within a preset time period is obtained, wherein the data to be written is data to be written to a disk array, and the disk array includes a first disk array and a second disk array;

[0062] Based on the storage location information corresponding to the first disk array and the second disk array respectively, a data storage location mapping relationship is constructed between the first disk array and the second disk array;

[0063] The preset solid-state drive linked list is constructed based on the preset read / write count threshold, the data storage location mapping relationship, and the historical read / write count.

[0064] Figure 3 This is a schematic diagram of the preset solid-state drive linked list provided by the present invention, which can be referred to. Figure 3 As shown, in this invention, each group of data in the preset solid-state drive linked list includes five pieces of information: ssd_add, hdd_add, ct, prev, and next. Here, ssd_add represents the location information of the data stored in the SSD, and hdd_add represents the location information of the data stored in the HDD. That is, based on the data storage location mapping relationship, the same data exists in both the SSD and HDD in a storage area. (See reference...) Figure 3 As shown, the first row corresponds to a certain data, which is stored in region 0 of the SSD and region 4 of the HDD. `ct` represents the number of read / write operations. Taking the data in the first row as an example, `ct = 20` means that the data has been read / written 20 times. In this invention, the default SSD linked list is composed of multiple sub-linked lists. Each sub-linked list corresponds to data at different read / write frequency levels, and each sub-linked list has a head pointer and a tail pointer to record the previous and next sets of data corresponding to the data in the current sub-linked list. `prev` represents the previous set of data corresponding to the current data, and `next` represents the next set of data corresponding to the current data. For the `prev` and `next` columns, -1 indicates that there is no previous or next set of data.

[0065] Based on the above embodiments, the step of constructing the preset solid-state drive linked list according to the preset read / write count threshold, the data storage location mapping relationship, and the historical read / write count includes:

[0066] Based on the preset read / write frequency threshold and the historical read / write frequency, determine the read / write frequency level corresponding to the data to be written;

[0067] If the historical read / write count is greater than or equal to the preset read / write count threshold, the data to be written is marked as high-frequency data. According to the data storage location mapping relationship, the high-frequency data is written to the corresponding storage location in the first disk array and the corresponding storage location in the second disk array, respectively. Based on the storage location of the high-frequency data, the storage location information of the data at both ends of the high-frequency data, and the historical read / write count, a corresponding high-frequency data sub-linked list is generated.

[0068] If the number of historical reads and writes is less than the preset read and write count threshold, and the number of historical reads and writes is not 0, the data to be written is marked as low-frequency data, and the low-frequency data is written to the corresponding storage location in the first disk array. Based on the storage location of the low-frequency data, the storage location information of the data at the beginning and end of the low-frequency data, and the number of historical reads and writes, a corresponding low-frequency data sub-linked list is generated.

[0069] Based on the storage location information of the unstored data in the second disk array, a corresponding free sub-list is generated;

[0070] The preset solid-state drive linked list is constructed based on the high-frequency data sub-linked list, the low-frequency data sub-linked list, and the idle sub-linked list.

[0071] In this invention, the preset solid-state drive linked list contains 3 sub-lists. Each sub-list is determined based on the number of times the data corresponding to the sub-list has been read and written (for the preset solid-state drive linked list in the initial state, it can be created based on the historical number of times the data has been read and written in the system, and the number of read and write times is counted again in the next data read and write cycle, so as to update the number of data read and write times in each read and write cycle).

[0072] In one embodiment, a preset read / write count threshold can be set based on the average number of times data has been read and written in the system throughout history. For example, the preset read / write count threshold could be 10 times. Figure 3As shown, the ct value of the data in the first row is 20, indicating that the sub-linked list corresponding to this data is a high-frequency data sub-linked list (correspondingly, the sub-linked list corresponding to the data in the fifth row is also a high-frequency data sub-linked list); the ct value of the data in the second row is 9, indicating that the sub-linked list corresponding to this data is a low-frequency data sub-linked list (correspondingly, the sub-linked list corresponding to the data in the sixth row is also a low-frequency data sub-linked list); the sub-linked list where hdd_add is -1 is an idle sub-linked list, indicating that the HDD does not store data, and its corresponding ssd_add is in an idle state of storage space. In one embodiment, in order to improve read and write efficiency, ssd_add in the low-frequency data sub-linked list can be set to -1, indicating that the data is currently read and written in the HDD during the current data read and write cycle. If the number of read and write cycles in the current read and write cycle exceeds a preset read and write count threshold, the low-frequency data sub-linked list is updated to a high-frequency data sub-linked list. Accordingly, the -1 in ssd_add is restored to the corresponding storage location information. For example, refer to Figure 3 As shown, the sub-list in the second row has been read and written 9 times in the current read and write cycle. The storage location information 1 corresponding to ssd_add can be temporarily set to -1, indicating that the sub-list is a low-frequency data sub-list. If the read and write cycle has not ended and the data of the sub-list needs to be read and written again, the read and write count will be incremented by 1. If the preset read and write count threshold (10 times) is exceeded, the -1 in ssd_add will be changed back to 1, and the data will be stored in ssd_add accordingly.

[0073] Furthermore, each sub-linked list has a corresponding head pointer and tail pointer. The head pointer points to the previous set of data in the sub-linked list, and the tail pointer points to the next set of data. These two pointers facilitate data exchange between different sub-linked lists. When the low-frequency data sub-linked list array `ct` exceeds a preset read / write count threshold within the current data read / write cycle, the head pointer of the low-frequency data sub-linked list points to that set of data, and then that set of data is moved from the low-frequency data sub-linked list to the tail of the high-frequency data sub-linked list. When deletion is needed, the deletion operation is performed from the tail pointer portion of the low-frequency data sub-linked list.

[0074] In this invention, the high-frequency data sub-list represents data that is frequently read and written in the HDD. This data exists in both the HDD and the SSD, and during reading, the data in the SSD is read first to improve read and write efficiency. The low-frequency data sub-list represents data that is less frequently read and written in the HDD. This data exists only in the HDD, so during reading and writing, the data is only read and written in the HDD. The free sub-list represents the storage space in the SSD that is in a free state. Data can be stored in the SSD corresponding to this sub-list according to actual read and write needs.

[0075] Based on the above embodiments, the step of reading the first target data from the corresponding disk array in response to the first input via a preset solid-state drive linked list includes:

[0076] Obtain the first storage location information of the first target data;

[0077] Based on the first storage location information and the preset solid-state drive linked list, the first target data is judged. If the first target data has second storage location information and the first target data is the high-frequency data, the first target data is read from the second disk array.

[0078] If the first target data exists in the second storage location information, and the first target data is the low-frequency data, the first target data is read from the first disk array;

[0079] If the second storage location information is not available for the first target data, the first target data is read from the first disk array;

[0080] Wherein, the first storage location information is the storage location information of the first target data in the first disk array, and the second storage location information is the storage location information of the first target data in the second disk array.

[0081] Figure 4 The flowchart illustrating the data reading process provided by this invention can be referred to. Figure 4 As shown, in this invention, firstly, based on a preset solid-state drive linked list and data read request, and according to the first storage location information hdd_add of the first target data... i Determine if the first target data corresponds to ssd_add i Is it -1?

[0082] If it is not -1, it indicates that the first target data is also stored in the SSD. This confirms that the first target data is medium-to-high frequency data, and the ssd_add data in the SSD is read directly. i The corresponding data is read, and it is determined whether the first target data was read successfully. If successful, proceed to the next step; otherwise, read hdd_add. i Corresponding HDD i1 The data (i.e., the first target data) is processed, and an SSD alarm message is generated to prompt maintenance personnel to check and replace the corresponding hard drive. After replacement, the SSD is accessed through the pre-defined solid-state drive list via hdd_add. i Corresponding HDD i2 The system recovers mid-to-high frequency data from the corresponding SSD; that is, when reading mid-to-high frequency data, it prioritizes reading from the SSD, and if reading from the SSD fails, it reads from the HDD. i1Backup data in the SSD is restored via HDD. i2 Backup data in the disk can prevent damage caused by frequent reads of the same disk.

[0083] If the value is -1, it indicates that the data is not on the SSD and should be read from hdd_add. i Corresponding HDD i1 The data is read, and it is determined whether the data was read successfully. If successful, proceed to the next step; otherwise, read hdd_add. i Corresponding HDD i2 The data (the backup data corresponding to the first target data) will be retrieved, and an HDD alarm will be generated to prompt maintenance personnel to check and replace the corresponding hard drive. After replacement, the corresponding HDD can be recovered through RAID 10 mode. i1 The data in the middle.

[0084] Furthermore, it determines whether to update the preset SSD linked list. If, after the current data read, the read / write count of the corresponding sub-list is greater than or equal to the preset read / write count threshold, the preset SSD linked list will be updated. In this case, the corresponding sub-list (i.e., updating the low-frequency data sub-list to a high-frequency data sub-list, updating the previous item and the next item) needs to be updated before ending the data reading operation. If the preset SSD linked list update is not triggered, the current data reading operation ends directly. It should be noted that in this invention, for the high-frequency data sub-list, if the next data read / write cycle begins, the high-frequency data sub-list also needs to be updated. For example, the read / write count is re-recorded. If the read / write count exceeds the preset read / write count threshold within a short period (a preset duration can be set according to actual needs), it remains a high-frequency data sub-list; if the read / write count does not exceed the preset read / write count threshold within a short period, it is updated to a low-frequency data sub-list.

[0085] Based on the above embodiments, the step of writing the second target data to the corresponding disk array in response to the first input via a preset solid-state drive linked list includes:

[0086] According to the preset solid-state drive linked list, the second target data is judged. If the second target data is the high-frequency data, the second target data is written to the first disk array and the second disk array respectively.

[0087] If the second target data is the low-frequency data, the second target data is written to the first disk array.

[0088] Figure 5 The flowchart illustrating the data writing process provided by this invention can be referred to. Figure 5As shown, in this invention, firstly, based on the write data request and the preset solid-state drive linked list, it is determined whether to write the second target data to the corresponding SSD; if the sub-linked list corresponding to the second target data is a high-frequency data sub-linked list, then add data to ssd_add. j Write this data, then add it to the corresponding hdd_add. j1 and hdd_add j2 (for hdd_add) j1 Write a data copy to the corresponding backup storage address; if the data is low-frequency data, then write a copy to hdd_add. j1 and hdd_add j2 Write this data.

[0089] Further, it is determined whether to update the preset SSD linked list. If, after the second target data is written, the read / write count of the corresponding sub-list is greater than or equal to the preset read / write count threshold, the preset SSD linked list will be updated. In this case, the corresponding sub-list (i.e., the low-frequency data sub-list is updated to a high-frequency data sub-list) needs to be updated before the data writing operation ends. If the preset SSD linked list update is not triggered, the current data writing operation ends directly. For the update of the high-frequency data sub-list during the data writing process, the update steps of the high-frequency data sub-list in the data reading operation process of the above embodiment can be referred to.

[0090] Based on the above embodiments, after responding to the first input by reading the first target data from the corresponding disk array through a preset solid-state drive linked list, or writing the second target data to the corresponding disk array, the method further includes:

[0091] Based on the current data read / write cycle, obtain the real-time read / write count of the first target data or the second target data within a preset time period;

[0092] If the first target data or the second target data is determined to be low-frequency data, and if the number of real-time read / write operations is greater than or equal to the preset read / write operation threshold, the low-frequency data sub-linked list corresponding to the first target data or the second target data is updated to the high-frequency data sub-linked list.

[0093] In this invention, during each data read / write cycle, the number of reads and writes in the sub-list is accumulated with each read / write operation. When the number of reads and writes in the low-frequency data sub-list exceeds the preset threshold after accumulation, the low-frequency data sub-list needs to be pointed to the tail of the high-frequency data sub-list through the tail pointer, thereby updating it to a high-frequency data sub-list.

[0094] The data processing apparatus provided by the present invention will be described below. The data processing apparatus described below can be referred to in correspondence with the data processing method described above.

[0095] Figure 6 A schematic diagram of the structure of the data processing device provided by the present invention is shown below. Figure 6 As shown, the present invention provides a data processing device, including an input module 601 and a data read / write module 602. The input module 601 is used to receive a first input, which includes an operation of reading first target data from a first disk array or an operation of writing second target data to a second disk array. The first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives (SSDs). The data read / write module 602 is used to respond to the first input by reading the first target data from the corresponding disk array through a preset SSD linked list, or writing the second target data to the corresponding disk array. The preset SSD linked list is constructed based on the historical number of reads and writes of each data within a preset time period.

[0096] The data processing device provided by this invention constructs a preset solid-state drive linked list based on the historical number of reads and writes of each data within a preset time period. It then determines the disk type corresponding to the data to be written or read and uses the solid-state drive or mechanical hard drive that is more suitable for read and write performance to perform data read and write. This improves data read and write efficiency while ensuring the low cost advantage of mechanical hard drives and the read and write performance of solid-state drives.

[0097] The present invention also provides a hybrid storage system, including a hybrid storage array and the data processing device described in the above embodiments. The hybrid storage array is composed of a first disk array and a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives.

[0098] In this invention, a hybrid disk array is constructed using an SSD based on RAID 0 mode and an HDD based on RAID 10 mode. High-frequency data (those frequently read / written from the HDD) is stored in the SSD to leverage the SSD's high read / write performance, while low-frequency data (those less frequently read / written) is stored in the HDD to reduce storage costs. RAID 10 mode is used for data backup to improve storage reliability. During data retrieval, high-frequency data is read from the SSD based on the number of read / write operations, while low-frequency data is read from the HDD.

[0099] The data processing system provided by this invention constructs a preset solid-state drive linked list based on the historical number of reads and writes of each data within a preset time period. It then determines the disk type corresponding to the data to be written or read and uses the solid-state drive or mechanical hard drive that is more suitable for read and write performance to perform data read and write. This improves data read and write efficiency while ensuring the low cost advantage of mechanical hard drives and the read and write performance of solid-state drives.

[0100] The system provided by this invention is used to execute the above-described method embodiments. For specific processes and details, please refer to the above embodiments, which will not be repeated here.

[0101] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 7 As shown, the electronic device may include: a processor 701, a communications interface 702, a memory 703, and a communication bus 704, wherein the processor 701, the communications interface 702, and the memory 703 communicate with each other via the communication bus 704. The processor 701 can invoke logical instructions in the memory 703 to execute a data processing method, which includes: receiving a first input, the first input including an operation to read first target data from a first disk array or an operation to write second target data to a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives (SSDs); responding to the first input, reading the first target data from the corresponding disk array or writing the second target data to the corresponding disk array through a preset SSD linked list; wherein the preset SSD linked list is constructed based on the historical read / write counts of each data within a preset time period.

[0102] Furthermore, the logical instructions in the aforementioned memory 703 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a 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 the present invention. 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.

[0103] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the data processing method provided by the above methods, the method comprising: receiving a first input, the first input comprising an operation of reading first target data from a first disk array or an operation of writing second target data to a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives; responding to the first input, reading the first target data from the corresponding disk array or writing the second target data to the corresponding disk array through a preset solid-state drive linked list; wherein the preset solid-state drive linked list is constructed based on the historical number of reads and writes of each data within a preset time period.

[0104] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the data processing method provided in the above embodiments. The method includes: receiving a first input, the first input including an operation of reading first target data from a first disk array or an operation of writing second target data to a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives; responding to the first input, reading the first target data from the corresponding disk array or writing the second target data to the corresponding disk array through a preset solid-state drive linked list; wherein the preset solid-state drive linked list is constructed based on the historical number of reads and writes of each data within a preset time period.

[0105] The device embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0106] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data processing method, characterized in that, include: Receive a first input, the first input including an operation to read a first target data from a first disk array, or an operation to write a second target data to a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives; In response to the first input, the first target data is read from the corresponding disk array through a preset solid-state drive linked list, or the second target data is written to the corresponding disk array; The preset solid-state drive linked list is constructed based on the historical read and write counts of each data within a preset time period; The preset solid-state drive linked list is constructed in the following way: The historical number of reads and writes of the data to be written within a preset time period is obtained, wherein the data to be written is data to be written to a disk array, and the disk array includes a first disk array and a second disk array; Based on the storage location information corresponding to the first disk array and the second disk array respectively, a data storage location mapping relationship is constructed between the first disk array and the second disk array; The preset solid-state drive linked list is constructed based on the preset read / write count threshold, the data storage location mapping relationship, and the historical read / write count; The step of constructing the preset solid-state drive linked list based on the preset read / write count threshold, the data storage location mapping relationship, and the historical read / write count includes: Based on the preset read / write frequency threshold and the historical read / write frequency, determine the read / write frequency level corresponding to the data to be written; If the historical read / write count is greater than or equal to the preset read / write count threshold, the data to be written is marked as high-frequency data. According to the data storage location mapping relationship, the high-frequency data is written to the corresponding storage location in the first disk array and the corresponding storage location in the second disk array, respectively. Based on the storage location of the high-frequency data, the storage location information of the data at both ends of the high-frequency data, and the historical read / write count, a corresponding high-frequency data sub-linked list is generated. If the number of historical reads and writes is less than the preset read and write count threshold, and the number of historical reads and writes is not 0, the data to be written is marked as low-frequency data, and the low-frequency data is written to the corresponding storage location in the first disk array. Based on the storage location of the low-frequency data, the storage location information of the data at the beginning and end of the low-frequency data, and the number of historical reads and writes, a corresponding low-frequency data sub-linked list is generated. Based on the storage location information of the unstored data in the second disk array, a corresponding free sub-list is generated; The preset solid-state drive linked list is constructed based on the high-frequency data sub-linked list, the low-frequency data sub-linked list, and the idle sub-linked list.

2. The data processing method according to claim 1, characterized in that, The step of responding to the first input by reading the first target data from the corresponding disk array through a preset solid-state drive linked list includes: Obtain the first storage location information of the first target data; Based on the first storage location information and the preset solid-state drive linked list, the first target data is judged. If the first target data has second storage location information and the first target data is the high-frequency data, the first target data is read from the second disk array. If the first target data exists in the second storage location information, and the first target data is the low-frequency data, the first target data is read from the first disk array; If the second storage location information is not available for the first target data, the first target data is read from the first disk array; Wherein, the first storage location information is the storage location information of the first target data in the first disk array, and the second storage location information is the storage location information of the first target data in the second disk array.

3. The data processing method according to claim 1, characterized in that, The step of responding to the first input by writing the second target data to the corresponding disk array through a preset solid-state drive linked list includes: According to the preset solid-state drive linked list, the second target data is judged. If the second target data is the high-frequency data, the second target data is written to the first disk array and the second disk array respectively. If the second target data is the low-frequency data, the second target data is written to the first disk array.

4. The data processing method according to claim 1, characterized in that, After responding to the first input by reading the first target data from the corresponding disk array via a preset solid-state drive linked list, or writing the second target data to the corresponding disk array, the method further includes: Based on the current data read / write cycle, obtain the real-time read / write count of the first target data or the second target data within a preset time period; If the first target data or the second target data is determined to be low-frequency data, and if the number of real-time read / write operations is greater than or equal to the preset read / write operation threshold, the low-frequency data sub-linked list corresponding to the first target data or the second target data is updated to the high-frequency data sub-linked list.

5. The data processing method according to any one of claims 1 to 4, characterized in that, The first disk array is obtained by combining the RAID10 arrays in a combined mode, and the second disk array is obtained by combining the RAID0 arrays in a combined mode.

6. A data processing apparatus, characterized in that, The apparatus is used to implement the data processing method as described in any one of claims 1 to 5.

7. A hybrid storage system, characterized in that, The device includes a hybrid storage array and the data processing apparatus of claim 6, wherein the hybrid storage array is composed of a first disk array and a second disk array, wherein the first disk array is a disk array constructed from multiple mechanical hard disks, and the second disk array is a disk array constructed from multiple solid-state drives.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the data processing method as described in any one of claims 1 to 5.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the data processing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for data storage

    CN108932114A

  • Hybrid data storage array

    CN110770691A