Method, electronic device and computer program product for storage management

By generating content-based variable-size data streams, it solves the time-consuming and resource-intensive problems of the traditional deduplication process, achieving efficient storage management and cost reduction.

CN114063882BActive Publication Date: 2024-09-03EMC IP HLDG CO LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010757580.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-31
Publication Date
2024-09-03
Estimated Expiration
2040-07-31

AI Technical Summary

Technical Problem

The traditional data deduplication process is time-consuming and consumes a lot of processing resources. Fixed block sizes lead to low space utilization and cannot effectively utilize differences in data content, resulting in unnecessary storage overhead.

Method used

Generate a target data stream of variable size based on the content of the object to be stored, and determine whether to store duplicate data by matching it with the stored data stream to achieve content-aware deduplication.

Benefits of technology

Improves storage management performance, reduces storage costs, and optimizes storage system throughput and processing resource utilization by reducing unnecessary data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114063882B
    Figure CN114063882B
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to methods, electronic devices, and computer program products for storage management. According to an exemplary implementation of the present disclosure, a method for storage management is provided, comprising: generating a target data stream to be stored based on an object to be stored, the target data stream comprising at least a portion of the object; determining whether the target data stream matches at least one stored data stream that has been stored in a storage device, the size of the target data stream and at least one stored data stream depending on their respective contents; and if the target data stream does not match at least one stored data stream, storing the target data stream in the storage device. Thus, the storage management performance can be improved and the storage cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure generally relate to storage management, and more particularly to methods, electronic devices, and computer program products for storage management. Background Art

[0002] With the development of storage technology, the space of storage devices is getting larger and larger, while the price is getting cheaper and cheaper. However, the growth of data is so rapid that it leads to severe challenges in meeting storage needs. In order to reduce the consumption of storage space, it is necessary to perform deduplication on storage devices (such as storage servers and cloud storage). The traditional deduplication process is divided into four stages: block segmentation, signature generation, indexing, and writing metadata and data blocks. However, the execution of these four stages is very time-consuming. In addition, the block segmentation stage and signature generation stage will also take up a lot of processing resources. Summary of the invention

[0003] Embodiments of the present disclosure provide a method, an electronic device, and a computer program product for storage management.

[0004] In a first aspect of the present disclosure, a method for storage management is provided. The method comprises: generating a target data stream to be stored based on an object to be stored, the target data stream comprising at least a portion of the object; determining whether the target data stream matches at least one stored data stream that has been stored in a storage device, the size of the target data stream and the at least one stored data stream depending on their respective contents; and if the target data stream does not match at least one stored data stream, storing the target data stream in the storage device.

[0005] In a second aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit and at least one memory. The at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. The instructions, when executed by the at least one processing unit, cause the device to perform an action, the action comprising: generating a target data stream to be stored based on an object to be stored, the target data stream including at least a portion of the object; determining whether the target data stream matches at least one stored data stream that has been stored in a storage device, the size of the target data stream and the at least one stored data stream depending on their respective contents; and if the target data stream does not match at least one stored data stream, storing the target data stream in the storage device.

[0006] In a third aspect of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions, which, when executed, cause a machine to implement any step of the method described in the first aspect of the present disclosure.

[0007] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.

[0009] Figure 1 A schematic diagram illustrating an example of a storage management environment in which some embodiments of the present disclosure can be implemented;

[0010] Figure 2 A flowchart of a method for storage management according to some embodiments of the present disclosure is shown;

[0011] Figure 3 A flowchart of a method for generating a target data stream according to some embodiments of the present disclosure is shown;

[0012] Figure 4 A schematic diagram showing an example of data flow information according to some embodiments of the present disclosure;

[0013] Figure 5 A schematic diagram showing an example of data block information according to some embodiments of the present disclosure;

[0014] Figure 6 A schematic diagram showing an example of performance comparison using dedicated processing resources and general-purpose processing resources; and

[0015] Figure 7 A schematic block diagram of an example device that may be used to implement embodiments of the present disclosure is shown.

[0016] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0017] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0018] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0019] As mentioned above, since the four stages in the traditional deduplication process are very time-consuming, especially the block stage and the signature generation stage will occupy a lot of processing resources, therefore, traditional storage systems usually use a fixed block size to perform deduplication.

[0020] In addition, before writing a data block, metadata and indexes need to be searched to avoid writing duplicate data. However, since the metadata and indexes of a data block are too large to be put into a memory (such as a random access memory (RAM)), they are stored in a storage device with a larger space but a slower speed. This will significantly affect the throughput of the storage system. Furthermore, since searching for indexes is very time-consuming, each data block cannot be very large.

[0021] In the case of distributed storage, when storing data blocks, each data block is divided into a predetermined number of multiple fragments. For example, each data block can be divided into 12+4 fragments, that is, 12 data fragments and 4 check fragments. Each fragment is stored on different disks across multiple storage nodes in the distributed storage system.

[0022] However, the traditional deduplication process does not take the content of the data into consideration. If a fixed block size is used for deduplication, space utilization will be significantly reduced. For example, suppose the content of one object is identical to that of another object except for a few letters in the middle. In this case, even if most of the content of the two objects is the same, the content of the data blocks into which the two objects are divided may be completely different due to the fixed-size block.

[0023] Specifically, suppose an object is (ABCDEFGHIJKLMNOP). When a fixed block size is used, it is divided into (ABCD|EFGH|IJKL|MNOP). In addition, suppose another object is (ABCDEF22GHIJKLMNOP). When a fixed block size is used, it is divided into (ABCD|EF22|GHIJ|KLMN|OP). It can be seen that for these two objects, except for the first data block, all other data blocks cannot be matched. Therefore, all other data blocks must be stored, resulting in unnecessary storage overhead.

[0024] Furthermore, distributed storage occupies a large amount of general processing resources (such as central processing units (CPUs)). On the one hand, the computing power of general processing resources is slowly increasing, while on the other hand, the throughput of storage devices (such as flash memory and phase change memory (PCM, Phase Change Memory)) continues to grow. In addition, high-speed network cards such as 25G / 40G network cards also require more processing resources to handle data packets and hardware interrupts. In this case, it is difficult to use sufficient general processing resources for block segmentation and signature generation, making the block segmentation and signature generation stages very time-consuming.

[0025] According to an example embodiment of the present disclosure, an improved solution for storage management is proposed. In the solution, based on the object to be stored, a target data stream to be stored is generated, the target data stream includes at least a part of the object; it is determined whether the target data stream matches at least one stored data stream that has been stored in a storage device, and the sizes of the target data stream and the at least one stored data stream depend on their respective contents; and if the target data stream does not match at least one stored data stream, the target data stream is stored in the storage device.

[0026] In this way, the present solution can achieve a content-aware deduplication process by generating a variable-size data stream based on the content of the object to be stored. For example, suppose the content of one object is identical to the content of another object except for a number of letters in the middle. In this case, although there are different middle letters in the two objects, the other data blocks into which the two objects are divided may be the same due to the content-based block division.

[0027] Specifically, assume that one object is (ABCDEFGHIJKLMNOP) and the other object is (ABCDEF22GHIJKLMNOP). Since the blocks are divided according to the content, the two objects are divided into (ABCD|EFGH|IJKL|MNOP) and (ABCD|EF22GH|IJKL|MNOP) respectively. It can be seen that except for the second data block, the other data blocks can be matched. In this case, there is no need to repeatedly store the same other data blocks. Therefore, the storage management performance can be improved and the storage cost can be reduced.

[0028] In the following, we will combine Figure 1-Figure 7 A specific example of the present scheme is described in more detail. Figure 1 A schematic diagram of an example of a storage management environment 100 according to some embodiments of the present disclosure is shown. The storage management environment 100 includes a computing device 110 and a storage device 120. The computing device 110 may be any device with computing capabilities, such as but not limited to a distributed computing system, a mainframe, a server, a personal computer, a desktop computer, a notebook computer, a tablet computer, a wearable device, etc. The storage device 120 may be any device with storage capabilities, such as a distributed storage system, a cloud storage, a storage server, a hard disk, a flash memory, etc.

[0029] The object 130 is to be stored in the storage device 120. In order to reduce the consumption of storage space in the storage device 120, it is necessary to perform data deduplication on the storage device 120. Therefore, before the object 130 is stored in the storage device 120, it is necessary to divide the object 130 and generate a data stream (hereinafter referred to as "target data stream 140") including at least a portion of the object. The division of the object is based on the content of the object. Therefore, a data stream with a variable size can be generated depending on the content of the object.

[0030] The target data stream 140 may be compared with at least one stored data stream 150 of at least one stored object that has been stored in the storage device 120. If the target data stream 140 matches the stored data stream 150, it is proved that the storage device 120 has stored the same data stream as the target data stream 140, and the target data stream 140 does not need to be repeatedly stored in the storage device 120. Only when the target data stream 140 does not match the stored data stream 150, the target data stream 140 needs to be stored in the storage device 120.

[0031] In this way, the solution can achieve a content-aware data deduplication process by generating a data stream with a variable size based on the content of the object to be stored or the target data stream, thereby improving storage management performance and reducing storage costs.

[0032] The following will be combined Figure 2-Figure 6 The operations performed by the computing device 110 are described in detail. Figure 2 FIG. 2 is a flowchart of a method 200 for storage management according to some embodiments of the present disclosure. For example, the method 200 may be performed as follows: Figure 1 It should be understood that method 200 may also include additional steps not shown and / or may omit the steps shown, and the scope of the present disclosure is not limited in this respect. For ease of understanding, reference will be made to Figure 3-Figure 6 The method 200 is described.

[0033] At 210, the computing device 110 generates a target data stream 140 to be stored based on the object 130 to be stored. The target data stream 140 includes at least a portion of the object 130. The size of the target data stream 140 depends on the content of the object 130, and therefore can also be considered to be dependent on the content of the target data stream. In this case, the size of the target data stream 140 generated based on the object 130 is variable, rather than fixed.

[0034] In some embodiments, the computing device 110 may generate a data stream with a variable size in the following manner. Specifically, the computing device 110 may use a sliding window with a predetermined size to divide the object. When the hash value of the portion of the object within the sliding window meets the standard, a partition boundary is determined, thereby generating a data stream. To this end, two parameter values ​​associated with the standard may be predefined, namely a first predetermined parameter value and a second predetermined parameter value, wherein the second predetermined parameter value is less than the first parameter value.

[0035] Specifically, when the sliding window moves to a position in the object, the hash value of the part of the object in the sliding window can be modulo divided by the first predetermined parameter value, thereby obtaining a modulo result. If the modulo result matches the second predetermined parameter value, the boundary of the sliding window at this position can be determined as the partition boundary of the object. This process will be repeated until the entire object is partitioned. In addition, the size of the blocks into which the object is partitioned can also be within a predetermined size range. Limiting the size of the blocks within a maximum and minimum range can avoid damaging deduplication.

[0036] In the following, reference will be made to Figure 3 An example of a method for generating a target data stream is described in detail. At 310, the computing device 110 may determine a hash value of a portion of the object 130 within a sliding window of a predetermined size. The hash value may be obtained by any suitable hash algorithm or function, such as Rabin fingerprint algorithm, MD5, MD6, SHA-1, etc.

[0037] The computing device 110 may determine the boundary of the target data stream 140 based on the hash value. In some embodiments, at 320, the computing device 110 may modulo-divide the hash value by the first predetermined parameter value to obtain a modulo-division result.

[0038] At 330, computing device 110 may determine whether the modulo result matches the second predetermined parameter value. If the modulo result matches the second predetermined parameter value, computing device 110 may determine the boundary of target data stream 140 based on the window boundary of the sliding window at 340. Thus, at 350, computing device 110 may divide object 130 using the boundary to generate target data stream 140.

[0039] Otherwise, if the modulo result does not match the second predetermined parameter value, then at 360, computing device 110 may move the sliding window to include a subsequent portion of object 130. At 370, a boundary of target data stream 140 may be determined based on the window boundary of the moved sliding window. Thus, at 380, computing device 110 may divide object 130 using the boundary to generate target data stream 140.

[0040] For example, it is assumed that the object 130 is (ABCDEFGHIJKLMNOP) and the size of the sliding window is the size of one character. In addition, it is also assumed that at the three positions of characters D, H, and L, the modulo division result of the hash value of the part within the sliding window (i.e., characters D, H, and L) by the first predetermined parameter value is equal to the second predetermined parameter value. In this case, the object 130 is divided into four blocks (ABCD|EFGH|IJKL|MNOP), thereby generating four data streams ("ABCD", "EFGH", "IJKL", and "MNOP").

[0041] As another example, assume that the object 130 is (ABCDEF22GHIJKLMNOP) and the size of the sliding window is the size of one character. In addition, assume that at the three positions of characters D, H, and L, the modulo division result of the hash value of the portion within the sliding window (i.e., characters D, H, and L) by the first predetermined parameter value is equal to the second predetermined parameter value. In this case, the object 130 is divided into four blocks (ABCD|EF22GH|IJKL|MNOP), thereby generating four data streams ("ABCD", "EF22GH", "IJKL", and "MNOP").

[0042] It should be understood that the size of the sliding window can be set to any suitable size, and the distance that the sliding window moves can also be set to any suitable distance. For example, the size of the sliding window can be set to three characters, and the distance moved can be set to move one character at a time.

[0043] From the above two examples, it can be seen that for different objects with a small difference, the variable-size data stream generated according to the content of the object can be matched for the most part. In fact, except for the second data block, all other data blocks can be matched.

[0044] Return to reference Figure 2 At 220, the computing device 110 determines whether the target data stream 140 matches at least one stored data stream 150 that has been stored in the storage device. As described above, the target data stream 140 and the stored data stream 150 are both generated based on the content of the data stream, so the size of the target data stream and the stored data stream 150 depends on their respective contents.

[0045] In some embodiments, the stored data streams 150 are associated with stored objects. In this case, in order to determine whether the target data stream 140 and these stored data streams 150 match, the computing device 110 can obtain the corresponding data stream information of the stored object. The corresponding data stream information of the stored object includes the identification of the stored data stream 150. The identification of the data stream represents any suitable information that can uniquely identify the data stream.

[0046] Figure 4 FIG. 4 is a schematic diagram showing an example of data flow information 400 according to some embodiments of the present disclosure. Figure 4 As shown, data stream information 400 includes object identification 410 and data stream identification 420. For the stored object identified as "object 1", three data streams are generated, and the identifications of these data streams are "data stream 1", "data stream 2" and "data stream 3". Similarly, for the stored object identified as "object 2", three data streams are generated, and the identifications of these data streams are "data stream 4", "data stream 2" and "data stream 5". It should be understood that data stream information 400 can also be updated. Although not shown, the identification of the data stream generated by object 130 can also be stored in data stream information 400 for use by future objects to be stored.

[0047] In addition, the computing device 110 can compare the identification of the target data stream 140 with the identification of each stored data stream 150 to determine whether the target data stream 140 and the stored data stream 150 match. Assume that four data streams are generated based on the object 130. Any of the four data streams can be regarded as a target data stream. The identifications of the four data streams are "Data Stream 1", "Data Stream 5", "Data Stream 6" and "Data Stream 7", respectively. For example, the target data stream identified as "Data Stream 1" matches the stored data stream identified as "Data Stream 1". The target data stream identified as "Data Stream 5" matches the stored data stream identified as "Data Stream 5". The target data streams identified as "Data Stream 6" and "Data Stream 7" do not match any stored data streams.

[0048] If the target data stream 140 matches the stored data stream 150 , the computing device 110 does not need to repeatedly store the target data stream 140 in the storage device 120 as a data block, thereby achieving data deduplication.

[0049] Otherwise, if the target data stream 140 does not match the stored data stream 150, then at 230, the computing device 110 stores the target data stream 140 in the storage device 120. In some embodiments, the computing device 110 may determine an address in the storage device 120 for storing the target data stream 140, and based on the address, store the target data stream 140 in the storage device 120 as a data block. Since the size of the target data stream is variable, the size of the data block is also variable.

[0050] In addition, in order to access the data stream, the computing device 110 may also generate data block information for accessing the data stream based on addresses where the data stream is stored as data blocks. Figure 5 A schematic diagram showing an example of data block information 500 according to some embodiments of the present disclosure.

[0051] like Figure 5 As shown, data block information 500 includes a data stream identifier 510 and a data block address 520. The address of the data block corresponding to the data stream identified as "data stream 1" is "address 1". The address of the data block corresponding to the data stream identified as "data stream 2" is "address 2". And so on. It should be understood that data block information 500 can also be updated. Although not shown, the addresses of the data blocks corresponding to the data stream "6" and the data stream "7" generated by the object 130 can also be stored in the data block information 500 for addressing the data blocks corresponding to the data stream "6" and the data stream "7".

[0052] Furthermore, nowadays, the capabilities of dedicated processing resources are getting stronger and stronger. Dedicated processing resources such as graphics processing units (GPUs) have developed into multi-core processors with high parallelism and powerful computing power. For this reason, dedicated processing resources can be used to accelerate the processing of hash functions such as MD5 or SHA-1 in the deduplication process. In other words, dedicated processing resources can be used to assist general processing resources such as central processing units (CPUs). For example, GPUs are used as coprocessors of CPUs, and hash functions are executed on GPUs to improve computing throughput and save general processing resources. In this case, computing device 110 can generate target data streams using dedicated processing resources, and generate metadata such as data block information and data stream information of objects using general processing resources.

[0053] In addition, in order to reduce the overhead caused by copying data in the memory between the dedicated processing resources and the general processing resources. The general processing resources and the dedicated processing resources can share storage resources such as memory. In this case, when storing an object, the dedicated processing resource obtains the address of the object in the storage resource (for example, obtains a pointer to the object). The dedicated processing resource divides the object to generate one or more data streams, and notifies the general processing resource to store these data streams in the storage device 120 as data blocks. In addition, the general processing resource can also generate data block information and data stream information. In this way, the computing throughput can be significantly improved and the general processing resources can be saved.

[0054] Figure 6 Schematic diagram showing an example of performance comparison using dedicated processing resources and general-purpose processing resources. Figure 6 As shown, in the data deduplication process, the performance obtained by using dedicated processing resources significantly exceeds the performance obtained by using general-purpose processing resources.

[0055] Figure 7 Schematic block diagram of an example device 700 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The computing device 110 shown can be implemented by the device 700. As shown, the device 700 includes a central processing unit (CPU) 710, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 720 or loaded from a storage unit 780 to a random access memory (RAM) 730. In the RAM 730, various programs and data required for the operation of the device 700 can also be stored. The CPU 710, the ROM 720, and the RAM 730 are connected to each other via a bus 740. An input / output (I / O) interface 750 is also connected to the bus 740.

[0056] A number of components in the device 700 are connected to the I / O interface 750, including: an input unit 760, such as a keyboard, a mouse, etc.; an output unit 770, such as various types of displays, speakers, etc.; a storage unit 780, such as a disk, an optical disk, etc.; and a communication unit 790, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 790 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0057] The various processes and processing described above, such as methods 200 and 300, may be performed by the processing unit 710. For example, in some embodiments, the methods 200 and 300 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 780. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 720 and / or the communication unit 790. When the computer program is loaded into the RAM 730 and executed by the CPU 710, one or more actions of the methods 200 and 300 described above may be performed.

[0058] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0059] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0060] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0061] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, Smalltalk, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0062] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0063] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0064] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0065] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0066] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for storage management, comprising: selecting, by a system including a processor, a sliding window size of the sliding window based on an amount of difference between first content of a target data object to be stored divided into a first data stream of a fixed length and second content of at least one stored data object already stored in a storage device; Based on the sliding window, the system uses a hash function to determine the boundary of the target data object to be stored; The system divides the target data object to be stored into data objects, wherein the data objects are divided into second data streams of variable length within the divided data objects according to the boundaries; Based on the variable length of the second data stream, determining by the system whether the divided data object and the at least one stored data object match, wherein to avoid errors in determining whether the divided data object and the at least one stored data object match, a size range for the variable length of the second data stream is selected based on the difference amount; as well as In response to determining that the partitioned data object and the at least one stored data object do not match, the system stores the partitioned data object in the storage device.

2. The method according to claim 1, wherein determining the boundary of the target data object to be stored comprises: include: Based on the sliding window, a hash value of a portion of the object to be stored within the sliding window is determined by the hash function.

3. The method of claim 2, wherein determining the boundary comprises: Dividing the hash value modulo a first predetermined parameter value to obtain a modulo division result; as well as In response to determining that the modulo result matches a second predetermined parameter value, the boundary of the target data object to be stored is determined based on a window boundary of the sliding window.

4. The method of claim 3, wherein determining the boundary further comprises: In response to determining that the modulo result does not match the second predetermined parameter value, moving the sliding window so that the moved sliding window includes a subsequent portion of the target data object to be stored; and A boundary among the boundaries is determined based on a window boundary of the moved sliding window.

5. The method of claim 1 , wherein the at least one stored data object is associated with at least one stored object, and determining whether the partitioned data object and the at least one stored data object match comprises: Acquire corresponding data object information of the at least one stored object, wherein the corresponding data object information of the at least one stored object comprises at least one first identifier of the at least one stored data object; as well as The second identifier of the divided data object is compared with the at least one first identifier to determine whether the divided data object matches the at least one stored data object.

6. The method according to claim 1, wherein storing the divided data object in the storage device comprises: Determining an address in the storage device for storing the divided data object; as well as Based on the addresses, the divided data objects are stored in the storage device as a data stream.

7. The method according to claim 6, further comprising: Based on the address, data flow information for accessing the divided data object is generated by the system.

8. The method according to claim 7, wherein generating the data flow information comprises: The data flow information is generated by using processing resources of the processor, wherein the processing resources share memory resources with dedicated processing resources for partitioning the data objects.

9. The method according to claim 1, further comprising: The system generates data object information of the object to be stored, wherein the data object information of the object to be stored includes a first identifier of the object to be stored and a second identifier of the divided data object.

10. The method of claim 8, wherein the dedicated processing resources include graphics processing unit resources.

11. An electronic device, comprising: at least one processing unit; at least one dedicated processing unit, the at least one dedicated processing unit being distinct from the at least one processing unit; as well as at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the device to perform actions comprising: identifying a size of a sliding window based on an amount of difference between first content of a target data object to be stored and second content of at least one stored data object already stored in a storage device, wherein the target data object is based on the object to be stored, determining a boundary within the target data object based on the sliding window based on a hash function, wherein the target data object is divided into data streams of a fixed size, and switching the target data object from being divided into the data streams of the fixed size to being divided into data streams of a variable size based on the boundary, determining whether the target data object and the at least one stored data object match based on comparing the variable-sized stream of the target data object with a stored stream of the at least one stored data object, wherein, to avoid errors when comparing the variable-sized data stream with the stored data stream, a size range for the variable-sized data stream is selected based on the difference amount; and Based on the target data object being determined to not match the at least one stored data object, the target data object is stored in the storage device.

12. The apparatus according to claim 11, wherein dividing the target data object comprises: Determining a hash value of a portion of the object to be stored within a sliding window of a predetermined size; Based on the hash value, determining the boundary of the target data object; as well as The object is divided by using the boundary to generate the target data object.

13. The apparatus of claim 12, wherein determining the boundary of the target data object comprises: Dividing the hash value modulo a first predetermined parameter value to obtain a modulo division result; as well as Based on the modulo result being determined to match a second predetermined parameter value, a boundary in the boundaries is determined based on a window boundary of the sliding window.

14. The apparatus of claim 13, wherein determining the boundary of the target data object further comprises: Based on the modulo result being determined to not match the second predetermined parameter value, moving the sliding window to include a subsequent portion of the target data object; as well as A boundary among the boundaries is determined based on a window boundary of the moved sliding window.

15. The apparatus of claim 11, wherein the at least one stored data object is associated with at least one stored object that has been stored, and determining whether the target data object and the at least one stored data object match comprises: Acquire corresponding data object information of the at least one stored object, wherein the corresponding data object information of the at least one stored object comprises at least one first identifier of the at least one stored data object; as well as The second identifier of the target data object is compared with each of the at least one first identifier to determine whether the target data object matches the at least one stored data object.

16. The apparatus according to claim 11, wherein storing the target data object in the storage device comprises: Determining an address in the storage device for storing the target data object; as well as Based on the address, the target data object is stored in the storage device as a data stream.

17. The apparatus of claim 16, wherein the actions further comprise: Based on the address, data flow information for accessing the target data object is generated, wherein the address includes an address in the storage device for storing the target data object.

18. The apparatus of claim 11, wherein generating the data flow information comprises: The data flow information is generated by using a general purpose processing resource, wherein the general purpose processing resource shares a memory resource with a dedicated processing resource used to generate the target data object.

19. The apparatus of claim 11, wherein the actions further comprise: Generate data object information of the object to be stored, wherein the data object information of the object to be stored includes an identifier of the object to be stored and an identifier of the target data object to be stored.

20. The device according to claim 19, wherein generating the data object information of the object to be stored comprises: The data object information of the object to be stored is generated by using a general processing resource, wherein the general processing resource shares storage resources with a dedicated processing resource used to generate the target data object.

21. A computer program product tangibly stored on a non-transitory computer readable medium and comprising machine executable instructions, wherein the machine executable instructions, when executed, cause a machine to perform the steps of the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Apparatus and Method For Sliding Window Data Access

    CN104011667A

  • Store merge processing device, store merge processing system, store merge processing method, and storage medium

    US20160217082A1

  • Method and server for searching for data stream dividing point based on server

    US20160350026A1

  • Method and apparatus for block level data de-duplication

    US8200923B1