A data processing method, storage system and storage device

By using the asynchronous aggregation method and cache layer for data aggregation processing in the distributed storage system, the problems of high data writing delay and large hard disk loss in the distributed storage system are solved, achieving efficient data storage and extending the life of the hard disk.

CN112817544BActive Publication Date: 2024-09-20BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110245480.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-05
Publication Date
2024-09-20
Estimated Expiration
2041-03-05

AI Technical Summary

Technical Problem

Existing distributed storage systems have problems such as high data writing delay and large hard disk loss when writing data, especially in the multi-copy synchronous recording mode, which leads to data loss and shortened hard disk service life.

Method used

The asynchronous aggregation method is used to store the data into the SSD WAL cache under each storage node in the storage system. The data is aggregated through the memory WAL buffer in the memory cache layer. When the aggregation reaches the preset quantity threshold, it is then written to the SSD WAL cache. Reduce hard drive wear and increase data storage rate.

Benefits of technology

It effectively reduces the write amplification phenomenon, reduces hard disk wear, increases the data storage rate, and improves data reliability and the overall performance of the storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112817544B
    Figure CN112817544B
Patent Text Reader

Abstract

The embodiments of the present application provide a data processing method, a storage system and a storage device. The method includes: obtaining data to be written; storing the data into an aggregate block in a first storage medium; wherein the aggregate block is formed by aggregating multiple data; when the transfer condition is met, storing the multiple data in the aggregate block into a second storage medium to persist the multiple data; after the multiple data in the aggregate block are stored in the second storage medium, setting the state of the aggregate block to a removable state, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium. The technical solution provided by the embodiments of the present application can improve the data writing rate, reduce write amplification, and reduce hard disk wear.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a data processing method, a storage system and a storage device. Background Art

[0002] At present, when using distributed storage systems to store data, data is often recorded synchronously in multiple copies to the hard disks under each storage node of the distributed storage system to achieve persistent storage. Although the use of multiple copies of synchronous recording can effectively avoid data loss within the redundancy range, there are problems such as high data write latency and high hard disk wear. Summary of the invention

[0003] In view of the above problems, the present application provides a data processing method, system and storage device that solve the above problems or at least partially solve the above problems.

[0004] In one embodiment of the present application, a data processing method is provided. The method comprises:

[0005] Get the data to be written;

[0006] Storing the data in an aggregate block in a first storage medium; wherein the aggregate block is formed by aggregating a plurality of data;

[0007] When the transfer condition is met, storing the multiple data in the aggregated block into a second storage medium to persistently store the multiple data;

[0008] After the multiple data in the aggregate block are stored in the second storage medium, the state of the aggregate block is set to a removable state, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

[0009] In one embodiment of the present application, a storage system is provided. The system includes:

[0010] A first storage medium is used to obtain data to be written; store the data into an aggregate block in the first storage medium; wherein the aggregate block is formed by aggregating multiple data; and when a transfer condition is met, send the multiple data in the aggregate block to a second storage medium;

[0011] a second storage medium, used for persistently storing the plurality of data in the aggregated block and sending the stored information to the first storage medium;

[0012] The first storage medium is also used to set the state of the aggregate block to a removable state after receiving the stored information, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

[0013] In one embodiment of the present application, a storage device is provided. The storage device includes: a memory and a processor, wherein:

[0014] The memory is used to store programs;

[0015] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0016] Get the data to be written;

[0017] Storing the data in an aggregate block in a first storage medium; wherein the aggregate block is formed by aggregating a plurality of data;

[0018] When the transfer condition is met, storing the multiple data in the aggregated block into a second storage medium to persistently store the multiple data;

[0019] After the multiple data in the aggregate block are stored in the second storage medium, the state of the aggregate block is set to a removable state, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

[0020] The technical solution provided by the embodiment of the present application, after acquiring the data to be written, will first store the data in an aggregate block in the first storage medium, and then when the transfer conditions are met, the multiple data in the aggregate block will be stored in the second storage medium to persist the multiple data; and after the multiple data in the aggregate block are stored in the second storage medium, the state of the aggregate block will be set to a removable state, so that when the removal conditions are met, the multiple data in the aggregate block will be deleted from the first storage medium. This solution uses the aggregate block as the basic storage unit to store data in the second storage medium, which can help improve the data storage rate, and can effectively reduce write amplification and reduce hard disk wear. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0022] Figure 1 A flowchart of a data processing method provided in one embodiment of the present application;

[0023] Figure 2a A schematic diagram of the software architecture principle corresponding to the data processing provided in one embodiment of the present application;

[0024] Figure 2b A schematic diagram of a software architecture principle corresponding to data processing provided in another embodiment of the present application;

[0025] Figure 3a A schematic diagram showing the principle of storing data in a first storage medium according to an embodiment of the present application;

[0026] Figure 3b A schematic diagram of states corresponding to aggregate blocks in a first storage medium provided in an embodiment of the present application;

[0027] Figure 3c A schematic diagram of states corresponding to aggregate blocks in a first storage medium provided in another embodiment of the present application;

[0028] Figure 3d A schematic diagram of a status result corresponding to an aggregated block in a first storage medium provided in yet another embodiment of the present application;

[0029] Figure 4 A structural block diagram of a storage system provided in one embodiment of the present application;

[0030] Figure 5 A structural block diagram of a data processing device provided in one embodiment of the present application;

[0031] Figure 6 A structural block diagram of a storage device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0032] At present, storage devices on the market are mainly divided into two categories: hard drive disk (HDD) and solid state disk (SSD). Generally speaking, due to the lower cost of manufacturing HDD, the capacity of HDD is generally larger than SSD, but the data storage speed of SSD is much higher than that of HDD. Therefore, in the prior art, more and more storage servers adopt a hybrid hard disk architecture of solid state hybrid hard disk (SSD), that is, HDD is used as the basic data storage space and SSD is used as the system cache layer to achieve a balance between performance and cost. For example, see Figure 2aThe schematic diagram of the principle of the software architecture corresponding to data writing shown in the figure shows that when the user sends the data to be written (i.e., Write IO) to the storage device 01 through the client, the storage device 01 will first store the data in the memory (Memory write cache). Since the memory can only be used to temporarily store data, once the power is off, the data in the memory will be lost. For this reason, the data in the memory must be written to a hard disk that can be persisted. For example, the data in the memory is written to the mechanical hard disk HDD. At this time, in order to ensure the data writing performance of the storage device 01, the write cache solid state drive (SSD writecache) is used as the cache layer before the data in the memory is written to the mechanical hard disk HDD, so that after the data is saved to a certain size in the SSD write cache, this part of the data will be written to the mechanical hard disk HDD; for another example, the cached data in the memory is directly written to the cache solid state drive (SSD WAL cache) that records data in a log format, so as to persist the data and improve the overall performance of the storage device. The above Figure 2a The SSD write cache and SSD WAL cache shown in the figure are both solid-state drives (SSDs) in nature. The only difference is the way they use the SSD space.

[0033] However, with the development of distributed technology, distributed storage systems have emerged. In existing distributed storage systems, when writing data in memory to the SSDWAL cache under different storage nodes (i.e., storage devices, which can also be simply understood as storage servers), the data is synchronously recorded in the form of logs to the SSD WAL cache under each storage node through a distributed hash algorithm and a multi-copy method, so as to ensure data persistence. Although the use of a multi-copy synchronous log recording method can effectively avoid data loss in the storage system within the redundancy range, in some scenarios such as a virtual machine with a storage system as a system disk, there is a problem of allowing the storage system to lose part of the data before the system is abnormal. Moreover, the above-mentioned multi-copy synchronous log recording method directly writes the data in the memory to the SSD WAL cache under each storage node, so there are still problems such as high data write latency and large hard disk loss. In addition, when implementing the data reading and writing process, the existing technology focuses on the overall design of data reading and writing, and does not specifically design the process of writing data to the SSD WAL cache.

[0034] In order to solve or partially solve the above problems, one or more embodiments of the present application provide a data processing method, which uses an asynchronous aggregation method to distribute the data to be written into the SSD WAL cache under each storage node in the storage system. In order to enable personnel in the technical field to better understand the present application scheme, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0035] In some processes described in the specification, claims and the above-mentioned figures of this application, multiple operations appearing in a specific order are included, and these operations may not be executed or executed in parallel in the order in which they appear in this article. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., and do not represent the order of precedence, nor do they limit "first" and "second" to be different types. The term "or / and" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist, for example: A or / and B, indicating that A can exist alone, A and B can exist at the same time, and B can exist alone; the character " / " in this application generally indicates that the objects associated before and after are in an "or" relationship. In addition, the following embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making any creative work shall fall within the scope of protection of this application.

[0036] Before describing the solutions provided by the embodiments of the present application, the relevant terms involved in the present application are briefly described.

[0037] Synchronization method: In a distributed storage system, the memory used for caching data under the main storage node corresponding to the client (such as Figure 2a After the data in the memory write cache shown in the figure is sent to other secondary storage nodes, the data is successfully stored in the solid-state hard disk (such as Figure 2a The SSD WAL cache shown in the figure) will then feedback the data write success information to the primary storage node. This method is called synchronization.

[0038] Asynchronous mode: In a distributed storage system, after the data in the memory of the primary storage node corresponding to the client is sent to other secondary storage nodes, the data is saved in the memory of other secondary storage nodes, and then the data write success information is fed back to the primary storage node. This mode is asynchronous;

[0039] Write Amplification (WF) is an undesirable phenomenon in SSDs and flash memory devices, specifically, it refers to the amount of data actually written to the SSD being greater than the amount of data itself. For example, due to the characteristics of the SSD itself, when the SSD is fully written, the original data must be erased before data is written (generally, the erase unit is much larger than the minimum write unit, such as the common write unit is the page size (i.e. 4KB), but the common erase unit is the block size (i.e. 512KB, or higher)), and before erasing, the data in the original erase block (here refers to valid data) needs to be copied to other erase blocks, which causes the copied data to be written to other erase blocks again (the first write refers to writing the data into an erase block when it is received from the outside), so when executing a new data write, the amount of data actually written to the SSD is greater than the amount of the new data itself. In addition, since the number of erasures of the SSD is limited, the write amplification problem will increase the loss of the SSD and reduce its service life.

[0040] RPO (Recovery Point Object) refers to the time point before a disaster occurs when the disaster recovery system recovers data. It can be described as the maximum amount of data that the storage system allows to be lost. For example, if the RPO is 1 hour, the disaster recovery system can recover all data before 1 hour of the disaster, but the data of this 1 hour may be lost.

[0041] The data processing methods provided in the following embodiments can be applied to Figure 4 The distributed storage system shown is based on Figure 2b The storage device shown executes data writing to the corresponding software architecture. Figure 2b As shown, in order to solve Figure 2a When the storage device 01 directly writes the data in the memory write cache into the SSD WAL cache, there are problems such as high data write latency and large hard disk loss. Figure 2a The software architecture corresponding to the data writing of storage device 01 is improved. Figure 2b The storage device 02 (ie, the storage device 01) shown in FIG. executes data writing into the corresponding software architecture. Figure 2bAs shown, a cache layer Memory WAL buffer is added between the memory Memory write cache and the SSD WAL cache in the storage device 02. By using the cache layer Memory WAL buffer, before writing the data in the memory Memory write cache into the SSD WAL cache, the data can be cached into the cache layer Memory WAL buffer and aggregated. When the data cached into the cache layer Memory WAL buffer is aggregated to a preset quantity threshold, the aggregated data are written into the SSD WAL cache, thereby reducing hard disk wear. The preset quantity threshold can be determined according to actual conditions. For example, the preset quantity threshold can be a quantity threshold corresponding to minimizing the write amplification effect of the solid-state hard disk, and can specifically be an integer multiple of the physical block size of the solid-state hard disk. Based on the above, in Figure 4 In the storage system shown, a cache layer Memory WAL buffer can be provided between the memory Memory write cache and the SSD WAL cache of each storage node. After the user sends the data to be written to the primary storage node (i.e., the first storage device 10) through the client device 30, in order to achieve the disaster preparedness effect, the primary storage node will distribute the data to be written stored in the memory to the secondary storage node (i.e., the second storage device 20). When the storage system confirms that the data is stored in the memory Memory write cache and the cache layer Memory WAL buffer under the secondary storage node, it can feedback the prompt information of the successful data storage to the client device 30, and the prompt information includes but is not limited to images, texts, voices, etc. In addition, in order to realize the persistent storage of data, each storage node will continue to be controlled to store the data in the cache layer Memory WAL buffer into the SSD WAL cache. In the specific implementation, the data in the cache layer Memory WAL buffer after aggregation processing is stored in the SSD WAL cache to reduce the hard disk loss. The specific implementation process can be referred to the following related content, which will not be described in detail here.

[0042] Figure 1 FIG. 1 is a flow chart showing a data processing method provided by an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0043] 101. Obtain the data to be written;

[0044] 102. Store the data into an aggregate block in a first storage medium; wherein the aggregate block is formed by aggregating multiple data.

[0045] 103. When the transfer condition is met, storing the multiple data in the aggregated block into a second storage medium to persistently store the multiple data;

[0046] 104. After the multiple data in the aggregate block are stored in the second storage medium, the state of the aggregate block is set to a removable state, so that when a removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

[0047] In the above 101, the data to be written may be obtained from a third storage medium in a storage device, and the data to be written in the third storage medium is sent to the corresponding storage device by a client device or any device in the system that performs a certain task (such as a camera, a microphone). The third storage medium is the memory corresponding to the storage device, such as Figure 2a or Figure 2b Memory write cache in the memory; the data can be image data collected by a camera, voice data collected by a microphone, or text data downloaded from the Internet, etc., and this embodiment does not limit the specific form of the data; the client device can be any terminal device such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, a smart wearable device, etc., and this embodiment does not specifically limit this. Accordingly, one possible implementation of step 101 "obtaining the data to be written" is: obtaining the data to be written from the third storage medium.

[0048] In practical applications, see Figure 2b, SSD WAL cache usually needs to store not only the main content of data such as images, voices, texts, etc. sent by the client device or any device in the system that performs a certain task, but also the metadata related to the data body. The metadata can be simply understood as the description information of the data, such as: the offset address of the data, the length of the data, the check value used to verify the integrity of the data, etc. In general, when metadata is stored in SSD WAL cache, it often only takes up a small storage space, usually tens of bytes. However, in the process of writing metadata to SSD WAL cache, due to the limitation of the minimum read and write unit of the storage system, it is often necessary to align the metadata to a fixed length before the metadata can be written to SSD WAL cache. For example, suppose that metadata a itself only occupies 30 bytes, and the minimum read and write unit of SSD WALcache is 4096 bytes. In this case, if you want to write metadata a to SSD WAL cache, you need to align metadata a to 4096 bytes, which undoubtedly causes a huge waste of storage space and increases hard disk wear. Similarly, when writing the data body to SSD WAL cache, if the data body is relatively small, there will also be the above-mentioned problem of wasting storage space and increasing hard disk wear. Based on this, in order to avoid the above problems, this embodiment first caches the data body and metadata related to the data body in the memory write cache into a cache layer before writing the data body and metadata related to the data body into the SSD WAL cache. For example, Figure 2b The cache layer Memory WAL buffer shown in the figure is used to aggregate the data body and the metadata related to the data body at the same time, so as to aggregate and form a number of aggregate blocks containing multiple data bodies or multiple metadata related to the data body, and then the multiple data bodies or multiple metadata related to the multiple data bodies in the aggregate block are stored in the SSD WAL cache with the aggregate block as the basic unit. In specific implementation, the data body and the metadata related to the data body can be aggregated separately in different storage queues in the cache layer Memory WAL buffer.

[0049] Based on the above content, the data in step 101 may include first type data or second type data; wherein the first type data is description information of the second type data; different types of data are stored in different aggregate blocks in the first storage medium; accordingly, in a specific achievable technical solution, the above step 102 "storing the data in an aggregate block in the first storage medium" may specifically include:

[0050] S01. According to the type of the data, storing the data into a corresponding aggregation block in the first storage medium;

[0051] In a specific implementation, the first storage medium is a cache layer located between the memory and the solid state drive in the storage device. For example, the first storage medium is Figure 2b The cache layer Memory WAL buffer in the first storage medium has at least one storage queue, and the data in a storage queue is aggregated to form multiple aggregate blocks; the same type of data is stored in the same storage queue. To this end, the above step S01 "storing the data into the corresponding aggregate block in the first storage medium" can be implemented by the following steps:

[0052] S011. According to the type of the data, the data is stored in a corresponding storage queue;

[0053] S012, numbering the data marking queue entering the storage queue in an ascending manner;

[0054] The aggregate block in the storage queue corresponds to a numbering interval, and the aggregate block where the data is located can be determined based on the numbering interval in which the queue number corresponding to the data is located.

[0055] In the above S011, see Figure 3a When the data is of the first type, the data may be stored in a storage queue R1; and when the data is of the second type, the data may be stored in a storage queue R2.

[0056] In the above S012, when the queue number of the data entering the storage queue is marked in an incremental manner, 0 or 1 can be used as the starting queue number, and this embodiment does not limit this. In order to facilitate the description of the technical solution of the present application, this embodiment uses Arabic numerals starting from 1 to mark the queue numbers of the data entering the storage queue one after another, and the queue number of the data in the storage queue after the queue number is a natural number series. The queue number of the data in the storage queue can be specifically referred to in Figure 3a The queue number corresponding to the first type of data in the storage queue R1 shown in the figure, or the queue number corresponding to the second type of data in the storage queue R2.

[0057] It should be noted that: since multiple aggregate blocks in a storage queue are formed by aggregating the data in the storage queue, the aggregate blocks in the storage queue actually correspond to a number interval, which is related to the number threshold set when aggregating the data in the storage queue and the queue number of the data. The number threshold can be determined according to actual conditions. For example, the number threshold can be the number corresponding to the minimum write amplification effect, such as 5, 10, 20, etc. For details, continue to refer to Figure 3a , assuming that the quantity threshold is 10, the data is the first type of data, and the corresponding storage queue is R1. When the first type of data in the storage queue R1 is aggregated, 10 consecutive first type of data entering the storage queue R1 will be aggregated in sequence to form an aggregate block. The upper and lower limit numbers of the corresponding number interval of the aggregate block are the queue numbers of the first type of data corresponding to the start and end of the corresponding aggregation. Therefore, the first type of data in the storage queue R1 is aggregated to form an aggregate block A1 corresponding to the number interval [1,10], and the aggregate block A2 corresponds to the number interval [11,20]. By analogy, the number intervals corresponding to other aggregate blocks formed by the data in the storage queue R1 can be determined. Therefore, based on the number interval of the queue number corresponding to the data, the aggregate block where the data is located can be determined, and then it can also be determined whether the amount of data in the aggregate block where the data is located reaches the data threshold according to the queue number corresponding to the data and the upper limit number of the number interval.

[0058] That is, the above step S01 "storing the data into the corresponding aggregate block in the first storage medium" further includes the following steps:

[0059] S013. If the queue number corresponding to the data is equal to the upper limit number of the number interval, the amount of data in the aggregate block where the data is located reaches the quantity threshold.

[0060] In this embodiment, the first type of data and the second type of data belonging to the same data information have the same storage number in different storage queues. For example, see Figure 3a , the first type of data a in the storage queue R1 1 and the second type data b in the storage queue R2 1 They belong to the same data information, and have the same queue number, that is, both are 1, when they are stored in their corresponding storage queues.

[0061] In the above 103, since the first storage medium is essentially a cache layer, its role is to provide a cache aggregation space for the data. The data cannot be stored permanently in the first storage medium. Once the power is off, the data will be lost. In order to persist the data, it is necessary to send a write request to the second storage medium that can persist for multiple data in the aggregate block when the transfer conditions are met, so that the second storage medium responds to the write request and stores the multiple data in the aggregate block into the second storage medium. In specific implementation, the second storage medium can be as follows Figure 2b The SSD WAL cache shown in FIG. 1 ; the transfer condition is satisfied when at least one of the following is satisfied:

[0062] S11, when the storage duration of the plurality of data in the aggregated block reaches a time threshold, the transfer condition is met;

[0063] S12: When the amount of data in the aggregated block reaches a quantity threshold, the transfer condition is met;

[0064] S13: When a transfer instruction for the aggregated block is received, the transfer condition is met.

[0065] In the above S11, the time threshold is related to the parameters configured by the user for the first storage medium, and the parameters may be, for example, RPO. For example, if the RPO is set to 1 hour, when the storage time of the multiple data in the aggregate block reaches 1 hour, the multiple data in the aggregate block will be sent to the second storage medium for storage;

[0066] In the above S12, the quantity threshold may be determined according to actual conditions, and may specifically be the quantity corresponding to minimizing the write amplification effect. For example, the quantity threshold may be 5, 10, 20, etc., which is not limited in this embodiment.

[0067] In the above S13, the transfer instruction may be a transfer instruction included in a Flush request, and the Flush request is determined according to an interaction protocol between the client device and the storage device. The interaction protocol may be a SCSI protocol, and the SCSI protocol defines a SYNCHRONIZE CACHE operation, which is a related instruction operation corresponding to the Flush request, such as a transfer instruction and a deletion instruction for the aggregate block. The above Flush request may be sent by a user to the application storage system (such as a storage device) of this embodiment through an interaction method (such as a mouse, keyboard, or touch) provided by the client device. Figure 4The storage system sends a data packet to the storage system shown in the figure. The storage system stores multiple data in the aggregate block into the second storage medium based on the transfer indication for the aggregate block in the received Flush request, and after determining that multiple data in the aggregate block corresponding to the Flush request are deleted from the first storage medium, it is considered that the user's Flush request is completed, so that corresponding prompt information can be fed back to the client device corresponding to the user. The specific process of confirming the completion of the Flush request can be referred to the following related content, which will not be described in detail here.

[0068] The above-mentioned one or more methods are used to determine whether the aggregate block meets the transfer condition, so that when the transfer condition is met, the multiple data in the aggregate block are stored in the second storage medium, which can effectively ensure the efficiency of data storage in the second storage medium and help improve the reliability of the data. For example, using the transfer conditions in step S11 and step S12, as long as the storage duration of the multiple data in the aggregate block reaches the time threshold and / or the amount of data in the aggregate block reaches the quantity threshold, the multiple data in the aggregate block can be stored in the second storage medium, which can not only ensure the parameters of the first storage medium (such as PRO), but also improve the data storage efficiency and reduce the impact on the life of the hard disk. Using the transfer condition in step S13, that is, receiving the transfer instruction for the aggregate block, it can further ensure that the data is stored in the second storage medium, thereby improving the reliability of the data.

[0069] It should be noted that, when the transfer condition is met, the corresponding write operation of storing the multiple data in the aggregated block in the first storage medium into the second storage medium is an asynchronous operation, that is, the multiple data in the aggregated block corresponding to the write request submitted to the second storage medium first may be stored in the second storage medium later. Figure 3a In the storage queue R1 shown in FIG, it is assumed that the aggregate block A1 satisfies the transfer condition before the aggregate block A2. Although the first storage medium will first send a write request to the second storage medium for the multiple data in the aggregate block A1, and then send a write request to the second storage medium for the multiple data in the aggregate block A2, the multiple data in the aggregate block A2 may be successfully stored in the second storage medium first.

[0070] In the above 104, after determining that the multiple data in the aggregate block have all been successfully stored in the second storage medium, in order to facilitate further operations (such as deletion operations) on the multiple data in the aggregate block, the state of the aggregate block can also be set, such as setting the state of the aggregate block to a removable state, so that when the conditions to be removed are met, the multiple data in the aggregate block are deleted from the first storage medium to release storage space. In specific implementation, when the aggregate block is a head aggregate block, it is determined that the removal condition is met. This is in accordance with the principle of queue-related properties (that is, the queue only allows insertion at one end (that is, the tail of the queue) and deletion at the other end (that is, the head of the queue)). Accordingly, the method provided in this embodiment may also include the following steps:

[0071] 105. When the state of the aggregation block is a removable state, determine whether the aggregation block is a head aggregation block;

[0072] 106. When the aggregate block is a head aggregate block, multiple data in the aggregate block in a removable state are deleted from the first storage medium.

[0073] Furthermore, after the plurality of data in the aggregated block are deleted from the first storage medium, the method further includes:

[0074] 107. At least one aggregation block in the storage queue that is located after the aggregation block moves forward.

[0075] In specific implementation, the forward movement action may include, at the technical level: modifying the positions of multiple data in the aggregate block in the storage queue, while the queue number of the data remains unchanged.

[0076] Furthermore, the above method further includes:

[0077] 108. After the multiple data in the aggregate block are deleted from the first storage medium, first prompt information is fed back to a device corresponding to the write requester according to the write requester of the data.

[0078] In specific implementation, following the above step S13, the first prompt information can be a prompt information fed back to the device corresponding to the user after confirming the completion of a Flush request sent by the user (i.e., the write requester), so that the user can clearly understand that the data is stored in the second storage medium through the first prompt information, which is conducive to further ensuring data reliability. Among them, the second prompt information can be but is not limited to at least one of the following: text, image, voice; the device corresponding to the write requester can be a client device, or any device in the system that performs a task.

[0079] Further, after step 102 of "storing the data into the aggregate block in the first storage medium", it also includes:

[0080] According to the data writing requester, second prompt information indicating that the data has been successfully stored is fed back to a device corresponding to the data writing requester.

[0081] In specific implementation, since this embodiment adopts an asynchronous aggregation method when processing data to be written, after the data is stored in the aggregation block in the first storage medium, a second prompt information indicating that the data storage is successful can be fed back to the device corresponding to the write requester, wherein the device corresponding to the write requester can be a client device, or any device in the system that performs a certain task, such as a camera, microphone, etc.; the second prompt information can include but is not limited to text, images, voice, etc.

[0082] For example, take the device corresponding to the write requester as the client device, see Figure 4 In the storage system shown, after the user sends a corresponding write request to the first storage device 10 for the data to be written through the client device 30, the first storage device 10 responds to the write request and caches the data in the third storage medium 11 within itself. At the same time, in order to achieve a disaster preparedness effect, the first storage device will also send the data stored in its own third storage medium to the second storage device 20. After the second storage device 20 receives the data and caches the data in its own first storage medium 21, the storage system can feedback prompt information such as text, image, voice, etc. that the data has been successfully stored to the user's corresponding client device 30.

[0083] The technical solution provided in this embodiment, after obtaining the data to be written, will first store the data into the corresponding storage queue in the first storage medium, and at the same time, aggregate the data in the storage queue to form multiple aggregate blocks; when the transfer conditions are met, the multiple data in the aggregate block will be stored in the second storage medium that can be persisted with the aggregate block as the basic unit, which can effectively improve the data storage rate, and can effectively reduce write amplification and reduce hard disk wear.

[0084] The above mainly illustrates the technical solution provided by this embodiment from the perspective of the acquired data being a single type of data. The following will give a specific example from the perspective of acquiring multiple types of data to further illustrate the technical solution provided by this embodiment, wherein the multiple types of data belong to the same data information.

[0085] Before describing this example in detail, we will first briefly describe the relevant schematic diagrams involved in this embodiment, namely Figures 3a to 3d A brief description is given. Specifically, Figure 3aWhen the data in the storage queue is aggregated, the corresponding data threshold is 10, that is, 10 consecutive data in the storage queue are aggregated into an aggregate block; Figure 3b to Figure 3d In the figure, the multiple data in the aggregation block are not specifically shown, and only the maximum queue number among the queue numbers corresponding to the multiple data in each aggregation block is simply shown through the data identifier displayed on the aggregation block (such as the data identifier 10 displayed on the aggregation block A1), and the gray aggregation block in the figure (such as Figure 3c Aggregate blocks A3 and B4 in the figure indicate that multiple data in the aggregate block have been successfully stored in the second storage medium, and the corresponding state is that multiple data in the aggregate block are in a removable state; white aggregate blocks (such as Figure 3c Aggregate block A1, aggregate block B3) in the aggregate block indicates that a write request has been submitted to the second storage medium for multiple data in the aggregate block, but the data in the aggregate block has not yet been stored in the second storage medium, and the corresponding state is that the multiple data in the aggregate block are in an irremovable state. The following takes the acquisition of two types of data belonging to the same data information as an example to introduce the technical solution provided by this embodiment.

[0086] See also Figure 3a After obtaining the first type of data and the second type of data belonging to the same data information to be written, based on the types of the first type of data and the second type of data, the first type of data and the second type of data are respectively stored in the corresponding storage queues in the first storage medium, such as storing the first type of data in the storage queue R1 and storing the second type of data in the storage queue R2; if the first type of data in the current storage queue R1 is formed by aggregation as shown in Figure 3b The four aggregation blocks shown in the storage queue R1, namely, the aggregation block A1, the aggregation block A2, the aggregation block A3 and the aggregation block A4, are stored in the queue R2, and the second type of data is formed by aggregation as shown in FIG. Figure 3b The four aggregate blocks shown in the storage queue R2, namely, aggregate block B1, aggregate block B2, aggregate block B3 and aggregate block B4, and the above Figure 3bThe 4 aggregate blocks in the storage queue R1 and the 4 aggregate blocks in the storage queue R2 have been asynchronously sent to the second storage medium when the transfer conditions are met, but they are not currently stored in the second storage medium. Here, it is assumed that the above-mentioned situation of meeting the transfer conditions includes receiving a transfer instruction for the aggregate block, and the transfer instruction corresponds to a Flush request sent by the user through the client device. Suppose the system receives a Flush request sent by the user at the 28th data information. Then, only after it is determined that the first type of data and the second type of data with a queue number not greater than 28 in the first storage medium are all stored in the second storage medium and deleted from the first storage medium, can it be confirmed that the system has completed the user's Flush request, so that the corresponding prompt information can be fed back to the user for the user's Flush request, that is, it is necessary to ensure that the aggregate block A3 where the 28th first type data is located and the aggregate block B3 where the 28th second type data is located are all removed from the storage queues where they are located, before it can be determined that the system has completed the user's Flush request.

[0087] Following the above content, it is assumed that after a period of time, such as 3 seconds or 1 minute, the second storage medium feeds back to the first storage medium information that the storage is successful for the aggregated blocks A2, A3, B1, B2, and B4; according to the feedback information, the states corresponding to the aggregated blocks A2, A3, B1, B2, and B4 in the first storage medium are set to be removable. For specific setting results, see Figure 3c . Since the aggregate block B1 is the head aggregate block and its status is removable, the multiple second type data in the aggregate block B1 can be deleted from the first storage medium at this time; after the multiple second type data in the aggregate block B1 are deleted, the aggregate block B2 adjacent to the aggregate block B1 will be used as the new head aggregate block of the storage queue R2, and the corresponding status of the aggregate block B2 is also removable. Therefore, the operation of deleting the multiple second type data in the aggregate block B2 from the first storage medium is continued, and the aggregate block B3 is updated as the new head aggregate block of the storage queue R2. Although the corresponding status of the aggregate block B4 in the storage queue R2 is also removable, the aggregate block B4 is a non-head aggregate block. Therefore, the multiple second type data in the aggregate block B4 cannot be deleted from the first storage medium at present, and it is necessary to wait for the multiple second type data in the aggregate block B3 to be stored in the second storage medium. For the same reason, the multiple first type data in the aggregate block A2 and the aggregate block A3 cannot be deleted from the first storage medium. Since the aggregate block A3 and the aggregate block B3 have not been removed from their respective storage queues, the system has not yet completed the user's Flush request. After the above series of deletion operations, the current final status of the storage queue R1 and the storage queue R2 can be seen in Figure 3d Schematic diagram 100 in FIG.

[0088] Assuming that after another period of time, such as 2 minutes or 5 minutes, it is determined that the aggregate block A1 is stored in the second storage medium, then the state corresponding to the aggregate block A1 is the removable state and the aggregate block A1 is the head aggregate block. According to the above deletion operation, for the multiple first type data in the removable aggregate block in the storage queue R1, the operation of deleting from the first storage medium is performed, and the following is obtained: Figure 3d The schematic diagram 200 in the figure shows the status of the storage queue R1 and the storage queue R2. Based on the result shown in the schematic diagram 200, it can be known that at this time, multiple first-type data in the aggregate block A3 have been deleted from the storage queue R1, which means that the first-type data with queue numbers less than or equal to 30 have all been stored in the second storage medium, but the aggregate block B3 is still in an irremovable state. For this reason, the system has not yet completed the user's Flush request, and it is necessary to wait for multiple second-type data in the aggregate block B3 to be stored in the second storage medium and removed from the first storage medium before confirming that the user's Flush request has been completed, so that the first prompt information can be fed back to the user's corresponding device in response to the user's Flush request; wherein, the first prompt information can be but not limited to text, pictures, voice, etc.

[0089] In summary, this embodiment is to aggregate different types of data belonging to the same data information in the first storage medium to form corresponding aggregate blocks, and then store the multiple data in the aggregate blocks into the second storage medium with the aggregate blocks as the basic unit. Because in the aggregation process, the set quantity threshold (that is, the maximum number of data that can be contained in an aggregate block) is flexibly set according to the actual situation, and specifically can be the number corresponding to the minimum write amplification effect, therefore, when the multiple data in the aggregate blocks are subsequently stored in the second storage medium with the aggregate blocks as the basic unit, the write amplification can be effectively reduced, and the hard disk loss can be reduced. For example, set the size of a data to 4KB, and the second storage medium is as follows. Figure 2bThe SSD WAL cache shown in the figure has a block size of 512KB. If the 4KB data is directly stored in a block of the SSD WAL cache without data aggregation, the block has no clean space (i.e., it is full), but there is invalid data that can be erased. At this time, the master control of the SSD WAL cache will copy the valid data in the block (assuming that all data in the block are valid data) to another block, and then erase the block, and then perform the data storage operation of the 4KB size. In the above process, the actual writing of 4KB data results in the writing of the entire block, that is, the writing of 512KB data, and the write amplification is 128 times. If the technical solution provided by this embodiment is used to aggregate data to form a corresponding aggregate block (assuming that the aggregate block contains 128 data of 4KB in size), and then the 128 data of 4KB in size in the aggregate block are stored in a full block of the above-mentioned SSD WAL cache with the aggregate block as the basic unit, 2*512KB of data are actually written when 512KB of data is actually to be written, and the write amplification is only 2. It can be seen that the technical solution provided by this embodiment can effectively reduce write amplification, thereby effectively reducing hard disk wear.

[0090] It should be noted that the above data processing method can be applied to any scenario involving data storage, and this embodiment does not specifically limit the specific application scenario.

[0091] The following is a storage system. Figure 4 The structural diagram of a storage system provided by an embodiment of the present application is shown. The storage system specifically includes:

[0092] The first storage medium 21 is used to obtain data to be written; store the data into an aggregate block in the first storage medium; wherein the aggregate block is formed by aggregating multiple data; and send the multiple data in the aggregate block to the second storage medium when the transfer condition is met;

[0093] The second storage medium 22 is used to persistently store the multiple data in the aggregated block; and send the stored information to the first storage medium;

[0094] The first storage medium 21 is also used to set the state of the aggregate block to a removable state after receiving the stored information, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

[0095] The technical solution provided by this embodiment is that after the first storage medium obtains the data to be written, it will first store the data into the corresponding storage queue in the first storage medium, and at the same time, the data in the storage queue will be aggregated to form multiple aggregate blocks; when the transfer conditions are met, the multiple data in the aggregate block will be stored in the second storage medium that can be persisted with the aggregate block as the basic unit, which can effectively improve the data storage rate, and can effectively reduce write amplification and reduce hard disk wear.

[0096] Furthermore, the system provided in this embodiment further includes:

[0097] A third storage medium 11, used for caching data to be written;

[0098] The first storage medium 21 is used to obtain the data to be written from the third storage medium.

[0099] Furthermore, the above storage system further includes:

[0100] A first storage device 10, comprising the third storage medium;

[0101] A second storage device 20, comprising the first storage medium and the second storage medium;

[0102] The client device 30 is used to send data to be written to the first storage device, so that the first storage device 10 caches the data in the third storage medium.

[0103] It should be noted that: the first storage device 10 includes Figure 4 In addition to the third storage medium shown in FIG. 1 , the first storage medium and the second storage medium in the second storage device 20 are also included. Similarly, the second storage device 20 also includes the third storage medium in the first storage device 10. Figure 4It is not specifically shown in the figure. In the specific interaction process, the user sends the data to be written to the primary storage device (i.e., the first storage device 10) through the interaction method provided by the client device (such as mouse, keyboard, touch). After receiving the data, the primary storage device will first store the data in its own third storage medium (such as memory), and then send the data in its own third storage medium to its own first storage medium; at the same time, in order to achieve the disaster preparedness effect, the primary storage device will also send the data stored in its own third storage medium to the secondary storage device (i.e., the second storage device 20). After the secondary storage device stores the data in its own third storage medium and the first storage medium successively, the storage system can consider that the data has been stored successfully, and can feedback the prompt information of the successful data storage to the corresponding client device 30 of the user. In addition, since the essence of the first storage medium is a cache layer, its actual function is to cache the data and perform aggregation processing on the data. Therefore, in order to achieve persistent retention of the data, both the primary storage device and the secondary storage device will execute the storage of the data in the first storage medium into a persistent second storage medium. For the specific storage process, please refer to the above-mentioned related content and will not be elaborated here.

[0104] It is also necessary to explain here that: Figure 4 The number of storage devices in the storage system shown is only illustrative and does not represent actual data. The specific number can be determined according to actual conditions, and this embodiment does not specifically limit this. In addition, the contents of each step in the storage system provided by this embodiment that are not fully described in detail can refer to the corresponding contents in the above embodiments, and will not be repeated here. In addition, in addition to the above steps, the storage system provided by this embodiment can also include other parts or all of the steps in the above embodiments, and the details can be referred to the corresponding contents in the above embodiments, and will not be repeated here.

[0105] Figure 5 FIG. 1 shows a structural block diagram of a data processing device provided by an embodiment of the present application. Figure 5 As shown, the data processing device includes: an acquisition module 301, a first storage module 302, a second storage module 303 and a setting module 304, wherein:

[0106] An acquisition module 301 is used to acquire data to be written;

[0107] A first storage module 302 is used to store the data into an aggregate block in a first storage medium; wherein the aggregate block is formed by aggregating multiple data;

[0108] A second storage module 303 is used to store the multiple data in the aggregated block into a second storage medium to persistently store the multiple data when the transfer condition is met;

[0109] The setting module 304 is used to set the state of the aggregate block to a removable state after the multiple data in the aggregate block are stored in the second storage medium, so that when the removal condition is met, the multiple data in the aggregate block will be deleted from the first storage medium.

[0110] The technical solution provided in this embodiment, after obtaining the data to be written, will first store the data in the corresponding storage queue in the first storage medium, and at the same time, aggregate the data in the storage queue to form multiple aggregate blocks; when the transfer conditions are met, the multiple data in the aggregate block will then be stored in the second storage medium that can be persisted with the aggregate block as the basic unit, which can effectively improve the data storage rate, reduce write amplification, and reduce hard disk wear.

[0111] Further, the data includes first type data or second type data; wherein the first type data is description information of the second type data; different types of data are stored in different aggregation blocks in the first storage medium; accordingly,

[0112] The first storage module 302, when used to store the data into an aggregate block in the first storage medium, is specifically used to: store the data into a corresponding aggregate block in the first storage medium according to the type of the data.

[0113] Furthermore, the first storage medium has at least one storage queue, and the data in one storage queue is aggregated to form multiple aggregate blocks; the same type of data is stored in the same storage queue.

[0114] Furthermore, the first storage module 302, when used to store the data into the aggregate block in the first storage medium, is specifically used to:

[0115] According to the type of the data, the data is stored in a corresponding storage queue;

[0116] The data marking queues entering the storage queue are numbered in an ascending manner;

[0117] The aggregate block in the storage queue corresponds to a numbering interval, and the aggregate block where the data is located can be determined based on the numbering interval in which the queue number corresponding to the data is located.

[0118] Furthermore, the first storage module 302 is also specifically used for: if the queue number corresponding to the data is equal to the upper limit number of the number interval, the amount of data in the aggregate block where the data is located reaches the quantity threshold.

[0119] Furthermore, the first type of data and the second type of data belonging to the same data information have the same storage number in different storage queues.

[0120] Furthermore, the second storage module 303 is also used for at least one of the following:

[0121] When the storage time of the plurality of data in the aggregated block reaches a time threshold, the transfer condition is met;

[0122] When the amount of data in the aggregated block reaches a quantity threshold, the transfer condition is met;

[0123] When a transfer instruction for the aggregated block is received, the transfer condition is met.

[0124] Further, the aggregated block is located in a storage queue; accordingly, the device provided by this embodiment further includes:

[0125] A determination module, configured to determine whether the aggregate block is a head aggregate block when the state of the aggregate block is a removable state;

[0126] The deleting module is used to delete multiple data in the aggregate block in a removable state from the first storage medium when the aggregate block is a head aggregate block.

[0127] Furthermore, the above-mentioned deletion module, after being used to delete multiple data in the aggregate block from the first storage medium, is also used to move forward at least one aggregate block located after the aggregate block in the storage queue.

[0128] Furthermore, the above-mentioned deletion module is also used to feedback first prompt information to a device corresponding to a write requester according to a write requester of the data after the multiple data in the aggregate block are deleted from the first storage medium.

[0129] Furthermore, the method provided in this embodiment further includes: a feedback module;

[0130] After the first storage module is used to store the data into the aggregate block in the first storage medium, the feedback module is used to feedback second prompt information of successful data storage to the device corresponding to the write requester according to the write requester of the data.

[0131] Furthermore, the acquisition module 301, when used to acquire the data to be written, is specifically used to: acquire the data to be written from the third storage medium.

[0132] It should be noted here that: the data processing device provided in this embodiment can realize the above Figure 1The technical solution described in the data processing method embodiment shown in the figure, the specific implementation principle of each module or unit can be found in the above Figure 1 The corresponding contents in the data processing method embodiment shown will not be repeated here.

[0133] Figure 6 FIG. 1 shows a schematic diagram of a storage device provided by an embodiment of the present application. Figure 6 As shown, the storage device includes: a memory 401, a processor 402, and a communication component 403. The memory 401 can be configured to store various other data to support operations on the sensor. Examples of these data include instructions for any application or method for operating on the sensor. The memory 401 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk.

[0134] The processor 402 is coupled to the memory 401 and is configured to execute the program stored in the memory 401 to:

[0135] Get the data to be written;

[0136] storing the data into an aggregate block in a first storage medium;

[0137] When the transfer condition is met, storing the multiple data in the aggregated block into a second storage medium to persistently store the multiple data;

[0138] After the multiple data in the aggregate block are stored in the second storage medium, the state of the aggregate block is set to a removable state, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

[0139] In particular, when the processor 402 executes the program in the memory 401, in addition to the above functions, other functions may also be implemented, and details may refer to the description of the previous embodiments.

[0140] Further, if Figure 6 As shown, the storage device also includes other components such as a display 404 , a power component 405 , and an audio component 406 . Figure 6 Only some components are shown schematically, which does not mean that the storage device only includes Figure 6 Components shown.

[0141] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a computer, it can implement the data processing method steps or functions provided in the above embodiments.

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

[0143] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

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

Claims

1. A data processing method, It is characterized in that include: Acquire data to be written; wherein the data includes first type data or second type data, the first type data is description information of the second type data, different types of data are stored in different storage queues in a first storage medium, the first storage medium has at least one storage queue, data in one storage queue is aggregated to form multiple aggregate blocks, and one aggregate block is formed by aggregating multiple data; According to the type of the data, the data is stored in a corresponding storage queue in the first storage medium, and the data tag queue entering the storage queue is numbered in an ascending manner; wherein the aggregate block in the storage queue corresponds to a number interval, and based on the number interval in which the queue number corresponding to the data is located, the aggregate block in which the data is located can be determined; When the transfer condition is met, storing the multiple data in the aggregated block into a second storage medium to persistently store the multiple data; After the multiple data in the aggregate block are stored in the second storage medium, the state of the aggregate block is set to a removable state, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

2. The method according to claim 1, It is characterized in that Also includes: If the queue number corresponding to the data is equal to the upper limit number of the number interval, the amount of data in the aggregate block where the data is located reaches the quantity threshold.

3. The method according to claim 1, It is characterized in that The first type of data and the second type of data belonging to the same data information have the same storage number in different storage queues.

4. The method according to any one of claims 1 to 3, It is characterized in that Also includes at least one of the following: When the storage time of the plurality of data in the aggregated block reaches a time threshold, the transfer condition is met; When the amount of data in the aggregated block reaches a quantity threshold, the transfer condition is met; When a transfer instruction for the aggregated block is received, the transfer condition is met.

5. The method according to claim 1, It is characterized in that The aggregated block is located in a storage queue, When the state of the aggregate block is a removable state, determining whether the aggregate block is a head aggregate block; When the aggregate block is a head aggregate block, a plurality of data in the aggregate block in a removable state are deleted from the first storage medium.

6. The method according to claim 5, It is characterized in that After the plurality of data in the aggregated block are deleted from the first storage medium, the method further includes: At least one aggregate block in the storage queue that is located after the aggregate block moves forward.

7. The method according to claim 5, It is characterized in that After the plurality of data in the aggregated block are deleted from the first storage medium, the method further includes: According to the data writing requester, first prompt information is fed back to a device corresponding to the data writing requester.

8. The method according to claim 1, It is characterized in that After storing the data into the aggregated block in the first storage medium, the method further includes: According to the data writing requester, second prompt information indicating that the data has been successfully stored is fed back to a device corresponding to the data writing requester.

9. A storage system, It is characterized in that include: A first storage medium, used to obtain data to be written; wherein the data includes first type data or second type data, the first type data is description information of the second type data, different types of data are stored in different storage queues in the first storage medium, the first storage medium has at least one storage queue, data in one storage queue is aggregated to form multiple aggregate blocks, and one aggregate block is formed by aggregating multiple data; According to the type of the data, the data is stored in the corresponding storage queue in the first storage medium, and the data tag queue entering the storage queue is numbered in an ascending manner; wherein the aggregate block in the storage queue corresponds to a number interval, and based on the number interval in which the queue number corresponding to the data is located, the aggregate block where the data is located can be determined; when the transfer condition is met, multiple data in the aggregate block are sent to the second storage medium; a second storage medium, used for persistently storing the plurality of data in the aggregated block and sending the stored information to the first storage medium; The first storage medium is also used to set the state of the aggregate block to a removable state after receiving the stored information, so that when the removal condition is met, the multiple data in the aggregate block are deleted from the first storage medium.

10. The storage system according to claim 9, It is characterized in that Also includes: A third storage medium, used for caching data to be written; The first storage medium is used to obtain the data to be written from the third storage medium.

11. The storage system according to claim 10, It is characterized in that Also includes: A first storage device, comprising the third storage medium; A second storage device, comprising the first storage medium and the second storage medium; The client device is used to send data to be written to the first storage device so that the first storage device caches the data in the third storage medium.

12. A storage device, It is characterized in that include: Memory and processor, wherein: The memory is used to store programs; The processor is coupled to the memory, and is used to execute the program stored in the memory to implement the data processing method according to any one of claims 1 to 8.