Data deduplication method and storage device for performing data deduplication

The dynamic selection of processor cores for deduplication in cloud storage systems addresses the latency and efficiency trade-offs in existing methods, achieving reduced latency and efficient storage through multi-core processor management.

WO2024177187A1PCT designated stage expired Publication Date: 2024-08-29GLUESYS +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2023/003180
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-20
Filing Date
2023-03-08
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Data deduplication methods in cloud storage systems face challenges in balancing storage efficiency and latency, with inline deduplication reducing storage space but increasing latency, and offline deduplication increasing storage requirements without latency issues.

Method used

A data deduplication method that dynamically selects a processor core for deduplication based on usage, using multi-core processors to perform deduplication as a background event, separate from foreground write requests, thereby reducing input/output latency.

Benefits of technology

This approach reduces data input/output latency while maintaining efficient storage usage by allocating processor cores independently for deduplication tasks, ensuring minimal latency and optimal storage performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2023003180_29082024_PF_FP_ABST
    Figure KR2023003180_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are a data deduplication method that can reduce the latency of data input / output, and a storage server for performing data deduplication. The disclosed data deduplication method comprises the steps of: monitoring the usage amounts of candidate processor cores when a write request is generated; selecting processor cores with which to perform deduplication of the write-requested data among the candidate processor cores according to the usage amounts; and using the selected processor cores to perform the data deduplication.
Need to check novelty before this filing date? Find Prior Art

Description

Data deduplication method and storage device performing data deduplication

[0001] The present invention relates to a data deduplication method and a storage device that performs data deduplication.

[0002]

[0003] The data processed in cloud storage services is growing exponentially. Data processed through cloud storage services is replicated across distributed storage systems for high availability, reliability, and failure management. This redundant data impacts the overall system, including storage performance, storage system efficiency, and network bandwidth. Therefore, cloud storage service providers utilize data deduplication to eliminate redundant data stored by users.

[0004] Data deduplication technology can be divided into inline deduplication and offline deduplication based on the deduplication point. Inline deduplication is a method in which deduplication is performed before the data requested to be written is stored in storage. Since deduplication is performed before storage, it has the advantage of requiring relatively less storage space. However, since deduplication is performed during the data storage process, it has the disadvantage of increasing latency. Offline deduplication is a method in which duplicated data is removed after the data requested to be written is stored in storage. Since deduplication is performed after the data is stored, there is no problem with increased latency due to deduplication. However, it has the disadvantage of requiring relatively more storage space.

[0005]

[0006] The present invention provides a data deduplication method capable of reducing the latency of data input / output and a storage server performing data deduplication.

[0007]

[0008] According to one embodiment of the present invention for achieving the above-mentioned purpose, a data deduplication method is provided, including: when a write request occurs, a step of monitoring the usage of candidate processor cores; a step of selecting a processor core among the candidate processor cores to perform deduplication on write-requested data based on the usage; and a step of performing the deduplication using the selected processor core.

[0009] In addition, according to another embodiment of the present invention for achieving the above-mentioned purpose, a data deduplication method is provided, including the steps of: when a write request occurs, creating a first thread for the write request; monitoring the usage of candidate processor cores to select a processor core among the candidate processor cores to perform deduplication on the write-requested data; and creating a second thread to be processed by the selected processor core and to perform deduplication on the write-requested data.

[0010] In addition, according to another embodiment of the present invention for achieving the above-mentioned object, a storage server for performing data deduplication is provided, which includes: storage; memory; and at least one multi-core processor electrically connected to the memory, wherein the multi-core processor monitors the usage of candidate processor cores when a write request for the storage, which is a foreground event, occurs, and selects a processor core among the candidate processor cores to perform deduplication for the write-requested data based on the usage, and the deduplication, which is a background event, is performed through a thread assigned to the selected processor core.

[0011]

[0012] According to one embodiment of the present invention, by allocating a processor core for deduplication, which is a background event, independently from a processor core for processing a write request, which is a foreground event, depending on the usage of the processor core, data input / output latency due to deduplication processing can be reduced.

[0013]

[0014] FIG. 1 is a drawing for explaining a storage server that performs data deduplication according to one embodiment of the present invention.

[0015] FIG. 2 is a drawing for explaining a data deduplication method according to one embodiment of the present invention.

[0016] FIG. 3 is a drawing for explaining a data deduplication method according to another embodiment of the present invention.

[0017] Figure 4 is a diagram showing input / output requests processed in SPDK.

[0018]

[0019] The present invention is susceptible to various modifications and embodiments. Specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, but rather to encompass all modifications, equivalents, and alternatives falling within the spirit and technical scope of the present invention. Throughout the description of each drawing, similar reference numerals have been used to designate similar components.

[0020]

[0021] SPDK (Storage Performance Development Kit) is a device driver implemented in user space, not kernel space, and is a driver for storage interfaces such as NVMe. Since SPDK is implemented in user space, it provides low latency by making the kernel I / O stack lightweight, and it provides a module that can provide background services such as data deduplication and compaction while foreground input / output (I / O) is being processed. In other words, SPDK performs data deduplication while data I / O is being processed.

[0022] SPDK also handles data deduplication using the processor cores used for data I / O operations. In other words, in an SPDK environment, foreground I / O and background services are not processed separately on separate processor cores, but rather on the same processor core. Therefore, in environments utilizing SPDK, data deduplication can increase latency during data I / O processing.

[0023] Accordingly, the present invention proposes a data deduplication method capable of reducing data input / output latency in an environment where a storage interface driver is used, which is implemented in a user area such as SPDK and performs data input / output processing through a single processor core.

[0024] A data deduplication method according to one embodiment of the present invention can be performed in a computing device including a memory and a multi-core processor, and a storage server providing a cloud storage service can be an example of such a computing device.

[0025] Hereinafter, embodiments according to the present invention will be described in detail with reference to the attached drawings.

[0026]

[0027] FIG. 1 is a drawing for explaining a storage server that performs data deduplication according to one embodiment of the present invention.

[0028] Referring to FIG. 1, a storage server according to one embodiment of the present invention includes storage (110), memory (120), and at least one multi-core processor (130).

[0029] Storage (110) stores write request data of a computing node, such as a terminal application, and data stored in storage (110) can be transmitted to an application according to a read request from the application. Storage (110) may be an NVMe SSD as an example, and SPDK may be used as a storage interface driver.

[0030] A multi-core processor (130) electrically connected to memory (120) processes I / O requests of an application and controls storage (110). In addition, the multi-core processor (130) performs data deduplication during data input / output processing.

[0031] In an environment where a storage interface driver implemented in the user area, such as SPDK, is used, the multi-core processor (130) performs data deduplication, which is a background event, when a write request, which is a foreground event, occurs. At this time, the processor core on which the thread for data deduplication is processed is dynamically determined based on the usage of the processor cores included in the multi-core processor (130).

[0032] When a write request for storage (110), which is a foreground event, occurs, the multi-core processor (130) monitors the usage of candidate processor cores, and selects a processor core among the candidate processor cores to perform deduplication on the write-requested data based on the monitored usage. Then, deduplication, which is a background event, is performed through a thread assigned to the selected processor core. Here, the candidate processor core is a processor core being used by a storage interface driver implemented in the user area, and includes a processor core that processes the write request.

[0033] As an example, the multi-core processor (130) may select, among candidate processor cores, a processor core with the lowest usage as the processor core to perform deduplication. When the processor cores used by the storage interface driver are the first to fourth cores, and a write request is processed by the first core, if the usage of the fourth core is the lowest, the fourth core may be selected as the processor core to perform deduplication. In addition, if the usage of the first core is the lowest, even if a write request is being processed by the first core, the first core may be selected as the processor core to perform deduplication. In other words, the processor core to perform deduplication is selected independently, regardless of the processor core that processes the write request.

[0034] In this way, according to one embodiment of the present invention, by allocating a processor core for deduplication, which is a background event, independently from a processor core for processing a write request, which is a foreground event, depending on the usage of the processor core, data input / output latency due to deduplication processing can be reduced.

[0035] After the write-requested data is stored in storage, the multi-core processor (130) determines whether the write-requested data is stored in duplicate, and performs deduplication on the write-requested data based on the determination result. A specific deduplication method is described in detail in the drawings below.

[0036]

[0037] FIG. 2 is a drawing for explaining a data deduplication method according to one embodiment of the present invention.

[0038] Referring to FIG. 2, a storage server according to an embodiment of the present invention monitors the usage of candidate processor cores when a write request occurs (S210), and selects a processor core among the candidate processor cores to perform deduplication on the write-requested data based on the monitored usage (S230).

[0039] As described above, the candidate processor core is a processor core being used by a storage interface driver implemented in the user area, and the storage interface driver may be SPDK. In step S230, the storage server may select, among the candidate processor cores, the processor core with the lowest usage as the processor core on which deduplication will be performed.

[0040] The storage server then performs deduplication using the processor core selected in step S230, and performs deduplication after storing the write-requested data in storage. That is, after the write-requested data is stored in storage, the storage server can determine whether the write-requested data is stored in duplicate, and perform deduplication based on the result of the determination of whether the data is stored in duplicate.

[0041] To determine whether data is stored duplicately, the storage server divides the requested data into chunks of a preset size. The storage server can divide the requested data into chunks of, for example, 512 bytes or 1024 bytes. The storage server then inputs each chunk into a preset hash function to calculate a hash value for each chunk. The storage server can then determine whether each chunk is stored duplicately by checking whether the hash value for the chunk is included in a deduplication table. The deduplication table is a table that records hash values ​​and storage addresses for data stored in storage. If the hash value for a chunk is already recorded in the deduplication table, the storage server can determine that the chunk is stored duplicately.

[0042] If the storage server determines that a chunk is duplicated, it records duplicate storage information for the duplicated chunk in a deduplication table. The duplicate storage information may include a hash value of the duplicated chunk, a storage address value, and a flag value indicating whether the chunk is duplicated.

[0043] Storage servers can perform deduplication by recording duplicate storage information in a deduplication table, rather than directly removing duplicated chunks from storage. Duplicated chunks are data to be removed. Storage can then use the deduplication information to identify the storage location of duplicated chunks, delete them, and overwrite the deleted storage area with new data.

[0044] Alternatively, depending on the embodiment, the storage server can increase available storage space by immediately deleting duplicated chunks from the storage immediately after they are stored in the storage. In this case, the hash values ​​and storage addresses for duplicated chunks do not need to be recorded in the deduplication table, so the storage server can record the hash values ​​and storage addresses of non-duplicated chunks in the deduplication table.

[0045] [Table 1] is a table for explaining the performance of a data deduplication method according to one embodiment of the present invention.

[0046]

[0047]

[0048] In [Table 1], no dedup indicates a case where data input / output is processed without data deduplication, inline dedup indicates a case where data input / output is processed with inline data deduplication, and sema-inline dedup indicates a case where data input / output is processed with a data deduplication method according to an embodiment of the present invention.

[0049] As shown in [Table 1], according to one embodiment of the present invention, it can be seen that performance similar to that in which data deduplication is not performed is exhibited, and data input / output can be processed without an increase in latency due to data deduplication.

[0050]

[0051] FIG. 3 is a drawing for explaining a data deduplication method according to another embodiment of the present invention, and FIG. 4 is a drawing showing input / output requests processed in SPDK.

[0052] Referring to FIG. 3, a storage server according to an embodiment of the present invention creates a first thread for a write request when a write request occurs (S310). The first thread is assigned to one of the processor cores being used by the storage interface driver.

[0053] The storage server monitors the usage of candidate processor cores and selects a processor core among the candidate processor cores to perform deduplication on the data requested for writes (S320). The candidate processor core is a processor core currently in use by the storage interface driver implemented in the user area, and the storage server can select the processor core with the lowest usage.

[0054] The storage server then processes the selected processor core and creates a second thread to perform deduplication on the write-requested data (S330). After the write-requested data is stored in the storage through the first thread, the storage server determines whether the write-requested data is stored in duplicate through the second thread and, based on the determination result, performs deduplication on the write-requested data. The storage server can perform deduplication as described in FIG. 3.

[0055] The above-described data deduplication method can be processed in SPDK as shown in FIG. 4. A thread (Thread 1) for a write request (Write I / O) is processed by one of the processor cores being used by SPDK. A write request, which is a foreground I / O transmitted from an application, passes through the NVMe-oF target BDEV and reaches the Passthru BEDV, which is a user-defined BEDV (Block Device Abstraction Layer). Then, the Passthru BEDV of SPDK generates a background I / O (Dedup I / O) for deduplication and monitors the usage of the candidate processor cores to select a processor core to perform deduplication. FIG. 4 illustrates an embodiment in which Core 4 is selected among two candidate processor cores, Core 2 and Core 4. The background I / O is transmitted to the selected processor core, and the thread (Thread 4) for performing deduplication is processed independently from the thread (Thread 1) for the write request on the selected processor core.

[0056]

[0057] The technical contents described above may be implemented in the form of program commands that can be executed through various computer means and recorded on a computer-readable medium. The computer-readable medium may include program commands, data files, data structures, etc., alone or in combination. The program commands recorded on the medium may be those specially designed and configured for the embodiments, or may be those known and available to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specially configured to store and execute program commands, such as ROMs, RAMs, and flash memories. Examples of program commands include not only machine language codes generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter, etc. The hardware devices may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

[0058]

[0059] Although the present invention has been described with reference to specific details such as specific components and limited embodiments and drawings, these have been provided only to help a more general understanding of the present invention, and the present invention is not limited to the above embodiments, and those with ordinary skill in the art to which the present invention pertains can make various modifications and variations based on these descriptions. Therefore, the spirit of the present invention should not be limited to the described embodiments, and all things that are equivalent or equivalent to the following claims as well as the claims are considered to fall within the scope of the spirit of the present invention.

Claims

1. When a write request occurs, a step of monitoring the usage of candidate processor cores; A step of selecting a processor core among the candidate processor cores according to the above usage, to perform deduplication on the data requested to be written; and A step of performing the deduplication using the selected processor cores A method for deduplication of data including:

2. In paragraph 1, The above candidate processor cores are A processor core in use by a storage interface driver implemented in user space. How to deduplicate data.

3. In paragraph 2, The above storage interface driver SPDK How to deduplicate data.

4. In paragraph 1, The step of selecting the above processor core is Among the above candidate processor cores, the processor core with the minimum usage is selected as the processor core to perform the deduplication. How to deduplicate data.

5. In paragraph 1, The steps for performing the above duplicate removal are After the above write-requested data is stored in storage, a step of determining whether the write-requested data is stored in duplicate; and A step of performing the above duplicate removal according to the above judgment result A method for deduplication of data including:

6. In paragraph 5, The step of determining whether the above duplicate storage is A step of dividing the above-mentioned write-requested data into chunks of a preset size; A step of calculating a hash value for each of the above chunks; and A step of checking whether the hash value for the chunk is included in the deduplication table in which the hash value and storage address value for the data stored in the above storage are recorded. A method for deduplication of data including:

7. In paragraph 6, The steps for performing the above duplicate removal are Record the duplicate storage information for the duplicated chunks in the duplicate removal table, The above duplicate storage information includes the hash value of the duplicated chunk, the storage address value, and the flag value for whether or not there is duplicate storage. A method for deduplication of data including:

8. When a write request occurs, a step of creating a first thread for the write request; A step of monitoring the usage of candidate processor cores and selecting a processor core among the candidate processor cores to perform deduplication for the data requested to be written; and A step of creating a second thread for performing deduplication on the data requested to be written and processed on the selected processor core. A method for deduplication of data including:

9. In paragraph 8, The above candidate processor cores are A processor core in use by a storage interface driver implemented in user space. How to deduplicate data.

10. In paragraph 9, The above storage interface driver SPDK How to deduplicate data.

11. In paragraph 8, The step of selecting a processor core to perform the above deduplication thread is Among the above candidate processor cores, the processor core with the minimum usage is selected as the processor core to perform the deduplication. How to deduplicate data.

12. In paragraph 8, After the above write-requested data is stored in storage, a step of determining whether the write-requested data is stored in duplicate; and A step of performing deduplication on the data requested to be written according to the above judgment result. It further includes a method for deduplication of data.

13. In paragraph 12, The step of determining whether the above duplicate storage is A step of dividing the above-mentioned write-requested data into chunks of a preset size; A step of calculating a hash value for each of the above chunks; and A step of checking whether the hash value for the chunk is included in the deduplication table in which the hash value and address value for the data stored in the above storage are recorded. A method for deduplication of data including:

14. In paragraph 13, The steps for performing the above duplicate removal are Record the duplicate storage information for the duplicated chunks in the duplicate removal table, The above duplicate storage information includes the hash value of the duplicated chunk, the storage address value, and the flag value for whether or not there is duplicate storage. A method for deduplication of data including:

15. Storage; memory; and At least one multi-core processor electrically connected to the memory, The above multi-core processor When a write request to the above storage, which is a foreground event, occurs, the usage of the candidate processor cores is monitored, Based on the above usage, among the candidate processor cores, a processor core is selected to perform deduplication on the data requested to be written. The above duplicate removal is a background event. It is performed through a thread assigned to the selected processor core. A storage server that performs data deduplication.

16. In paragraph 15, The above candidate processor cores are A processor core in use by a storage interface driver implemented in user space. A storage server that performs data deduplication.

17. In paragraph 16, The above storage interface driver SPDK A storage server that performs data deduplication.

18. In paragraph 17, The above multi-core processor Among the above candidate processor cores, the processor core with the minimum usage is selected as the processor core to perform the deduplication. A storage server that performs data deduplication.

19. In paragraph 18, The above multi-core processor After the above write-requested data is stored in the storage, whether the write-requested data is stored in duplicate is determined, and based on the determination result, deduplication of the write-requested data is performed. A storage server that performs data deduplication.

Citation Information

Patent Citations

  • Data parallel deduplication system

    KR101229851B1

  • Method for synchronizing file

    KR1020160046649A

  • A parity data deduplication method in All Flash Array based OpenStack cloud block storage

    KR1020180059197A

  • Apparatus for removing etch stop layers

    KR1020230019243A

  • Data input and output method using storage node based key-value srotre

    KR102471966B1