Transmitting or storing subsegments is disclosed. A data stream or a data block is received and broken into a plurality of segments. For at least one segment, the segment is broken into a plurality of subsegments. A previously stored or transmitted segment similar to the at least one segment is identified. A fingerprint is computed for at least one subsegment. And, using the fingerprint for the at least one subsegment, determining whether the at least one subsegment is identical to a subsegment of the previously stored or transmitted segment without directly comparing the content of the at least one subsegment with the content of the subsegment of the previously stored or transmitted segment.
|
36. A method for identifying duplicate subsegments comprising:
receiving a data stream or a data block;
breaking the data stream or the data block by a processor into a plurality of segments;
for at least one segment:
breaking by the processor each of the at least one segment into a plurality of subsegments;
calculating a summary feature for each of the at least one segment, including:
selecting a plurality of parts for each of the at least one segment;
for each of the parts, computing a value by applying a set of one or more functions; and
selecting a subset of the values to represent the summary feature for each of the at least one segment;
identifying a previously stored or transmitted segment having an identical summary feature to each of the at least one segment;
in response to the identification:
reading one or more fingerprints of a plurality of subsegments of the identified previously stored or transmitted segment that has been identified as having an identical summary feature to the at least one segment; and
determining whether a subsegment of the at least one segment is identical to a subsegment of the identified previously stored or transmitted segment using the one or more fingerprints.
53. A computer program product for identifying duplicate subsegments, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
receiving a data stream or a data block;
breaking the data stream or the data block into a plurality of segments;
for at least one segment:
breaking each of the at least one segment into a plurality of subsegments;
calculating a summary feature for each of the at least one segment, including:
selecting a plurality of parts for each of the at least one segment;
for each of the parts, computing a value by applying a set of one or more functions; and
selecting a subset of the values to represent the summary feature for each of the at least one segment;
identifying a previously stored or transmitted segment having an identical summary feature to each of the at least one segment;
in response to the identification:
reading one or more fingerprints of a plurality of subsegments of the identified previously stored or transmitted segment that has been identified as having an identical summary feature to the at least one segment; and
determining whether a subsegment of the at least one segment is identical to a subsegment of the identified previously stored or transmitted segment using the one or more fingerprints.
52. A system for identifying duplicate subsegments comprising:
a processor; and
a memory coupled with the processor, wherein the memory is configured to provide the processor with instructions which when executed cause the processor to:
receive a data stream or a data block;
break the data stream or the data block into a plurality of segments;
for at least one segment:
break each of the at least one segment into a plurality of subsegments;
calculate a summary feature for each of the at least one segment,
includes:
select a plurality of parts for each of the at least one segment;
for each of the parts, compute a value by applying a set of one or more functions; and
select a subset of the value to represent the summary feature for each of the at least one segment;
identify a previously stored or transmitted segment having an identical summary feature to each of the at least one segment;
in response to the identification:
read one or more fingerprints of a plurality of subsegments of the identified previously stored or transmitted segment that has been identified as having an identical summary feature to the at least one segment; and
determine whether a subsegment of the at least one segment is identical to a subsegment of the identified previously stored or transmitted segment using the one or more fingerprints.
1. A method for transmitting or storing subsegments comprising:
receiving a data stream or a data block;
breaking the data stream or the data block by a processor into a plurality of segments;
for at least one segment:
breaking by the processor each of the at least one segment into a plurality of subsegments;
calculating a summary feature for each of the at least one segment, including:
selecting a plurality of parts for each of the at least one segment;
for each of the parts, computing a value by applying a set of one or more functions; and
selecting a subset of the values to represent the summary feature for each of the at least one segment;
identifying by the processor a previously stored or transmitted segment having an identical summary feature to each of the at least one segment;
in response to the identification:
computing by the processor a fingerprint for each of the plurality of subsegments of the at least one segment;
using the fingerprint for each of the plurality of subsegments of the at least one segment, determining by the processor whether the particular subsegment is identical to a subsegment of the previously stored or transmitted segment that has been identified as having an identical summary feature to the at least one segment; and
in the event that the particular subsegment of the at least one segment is not identical to a subsegment of the previously stored or transmitted segment, storing the particular subsegment or transmitting the particular subsegment, and in the event that the particular subsegment of the at least one segment is identical to a subsegment of the previously stored or transmitted segment, bypassing storing or transmitting the particular subsegment.
34. A system for transmitting or storing subsegments comprising:
a processor; and
a memory coupled with the processor, wherein the memory is configured to provide the processor with instructions which when executed cause the processor to:
receive a data stream or a data block;
break the data stream or the data block into a plurality of segments;
for at least one segment:
break each of the at least one segment into a plurality of subsegments;
calculate a summary feature for each of the at least one segment, includes:
select a plurality of parts for each of the at least one segment;
for each of the parts, compute a value by applying a set of one or more functions; and
select a subset of the value to represent the summary feature for each of the at least one segment;
identifying a previously stored or transmitted segment having an identical summary feature to each of the at least one segment;
in response to the identification:
compute a fingerprint for each of the plurality of subsegments of the at least one segment;
use the fingerprint for each of the plurality of subsegments of the at least one segment, determine whether the particular subsegment is identical to a subsegment of the previously stored or transmitted segment that has been identified as having an identical summary feature to the at least one segment; and
in the event that the particular subsegment of the at least one segment is not identical to a subsegment of the previously stored or transmitted segment, store the particular subsegment or transmit the particular subsegment, and in the event that the particular subsegment of the at least one segment is identical to a subsegment of the previously stored or transmitted segment, bypass storing or transmitting the particular subsegment.
35. A computer program product for transmitting or storing subsegments, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
receiving a data stream or a data block;
breaking the data stream or the data block into a plurality of segments;
for at least one segment:
breaking each of the at least one segment into a plurality of subsegments;
calculating a summary feature for each of the at least one segment, including:
selecting a plurality of parts for each of the at least one segment;
for each of the parts, computing a value by applying a set of one or more functions; and
selecting a subset of the values to represent the summary feature for each of the at least one segment;
identifying a previously stored or transmitted segment having an identical summary feature to each of the at least one segment;
in response to the identification:
computing a fingerprint for each of the plurality of subsegments of the at least one segment;
using the fingerprint for each of the plurality of subsegments of the at least one segment, determining whether the particular subsegment is identical to a subsegment of the previously stored or transmitted segment that has been identified as having an identical summary feature to the at least one segment; and
in the event that the particular subsegment of the at least one segment is not identical to a subsegment of the previously stored or transmitted segment, storing the particular subsegment or transmitting the particular subsegment, and in the event that the particular subsegment of the at least one segment is identical to a subsegment of the previously stored or transmitted segment, bypassing storing or transmitting the particular subsegment.
2. The method as in
3. The method as in
4. The method as in
5. The method as in
6. The method as in
7. The method as in
8. The method as in
9. The method as in
10. The method as in
11. The method as in
13. The method as in
14. The method as in
15. The method as in
16. The method as in
17. The method as in
18. The method as in
19. The method as in
20. The method as in
21. The method as in
22. The method as in
23. The method as in
24. The method as in
25. The method as in
26. The method as in
27. The method as in
28. The method as in
29. The method as in
30. The method as in
31. The method as in
32. The method as in
33. The method as in
37. The method as in
38. The method as in
39. The method as in
40. The method as in
41. The method as in
42. The method as in
43. The method as in
44. The method as in
45. The method as in
46. The method as in
47. The method as in
48. The method as in
49. The method as in
50. The method as in
51. The method as in
|
This application is a continuation of co-pending U.S. patent application Ser. No. 11/804,578, entitled SUBSEGMENTING FOR EFFICIENT STORAGE, RESEMBLANCE DETERMINATION, AND TRANSMISSION filed May 18, 2007 which is incorporated herein by reference for all purposes, which claims priority to U.S. Provisional Patent Application No. 60/925,514 entitled SUBSEGMENTING FOR EFFICIENT STORAGE, RESEMBLANCE DETERMINATION, AND TRANSMISSION filed Apr. 19, 2007 which is incorporated herein by reference for all purposes.
This application claims priority to U.S. Provisional Patent Application No. 60/923,066 entitled CLUSTER STORAGE USING SUBSEGMENTING filed Apr. 11, 2007 which is incorporated herein by reference for all purposes.
This application claims priority to U.S. Provisional Patent Application No. 60/922,996 entitled CLUSTER STORAGE USING DELTA COMPRESSION filed Apr. 11, 2007 which is incorporated herein by reference for all purposes.
One approach to efficiently store data is to prevent the redundant copying of data that are the same as something previously stored (e.g., data that is to be stored on a backup drive that has stayed the same between backups). This efficient storage is achieved by dividing the data streams from data sources into segments and storing the segments or a reference to a similar segment and a delta on a storage device. During subsequent storage operations, the data streams are again segmented and the data stream segments are looked up in an index to determine whether a similar data segment was already stored previously. If a similar segment is found, the data segment is not stored again, instead a reference to the similar segment and a difference between the stored segment and the data stream segment are stored; Otherwise, the new data segment and a new index identifier are stored. However, in order to calculate the difference between the similar stored segment and the new segment requires reading back the similar stored segment. This can cause performance issues with regard to the storage device and traffic to and from the storage device. It would be beneficial if performance could be maintained or improved without sacrificing storage efficiency. Similarly, when sending similar segments over a network to a remote machine, computing the delta between the new segment and a similar segment stored remotely can require sending the full segment over the network which is expensive in terms of network bandwidth. It would be beneficial if performance could be maintained or improved without sacrificing transmission efficiency.
Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.
The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. A component such as a processor or a memory described as being configured to perform a task includes both a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. In general, the order of the steps of disclosed processes may be altered within the scope of the invention.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
Storing or transmitting subsegments is disclosed. A data stream or data block is received and broken into segments. Each segment is broken into a plurality of subsegments. A fingerprint of a subsegment is used to determine if a subsegment has been previously stored or transmitted. A fingerprint of a subsegment is a number computed from the content of the subsegment that helps to identify the segment. For example, a hash of the data such as a Secure Hash Algorithm (SHA), Message Digest Algorithm 5 (MD5), RIPEMD-160 (RACE Integrity Primitives Evaluation Message Digest 160-bit version), a Rabin hash, or any other appropriate hash of the data. In some embodiments, the fingerprint may have some collisions, where two dissimilar segments have the same fingerprint, as long as the collisions are infrequent. This is because a check sum of the segment can be used to detect a collision type error.
Using fingerprints enables determining matches to previously stored subsegments without reading or transferring the subsegment associated with the fingerprint. Because the fingerprint is smaller in size than its associated subsegment, the use of the fingerprint for determining matches improves the performance of storage system data access as well as the transfer efficiency to a remote storage system. Subsegmenting also enables using larger segments without sacrificing compression because identical subsegments can be referenced during storage of a segment; an entire large segment does not need to be identical to a previously stored segment, instead only a previously stored subsegment needs to be identical to a previously stored subsegment. Larger segments mean that, for a given amount of data, fewer segments need to be stored and managed which in turn increases system scalability. In some embodiments, a fingerprint (e.g., of a subsegment) is part of a file system data structure that associates a subsegment with an offset within a file.
In various embodiments, breaking into a segment or a subsegment is based on a portion of the content of the segment or subsegment, not based on the content, based on byte counts, based on hashes of bytes in the segment or subsegment, based on the boundaries of files included in the data stream, or any other appropriate manner for breaking into a segment or subsegment. In various embodiments, breaking into segments or subsegments includes creating from a data block or stream of segments or subsegments that overlap each other, that do not overlap each other, that have gaps between each other, or that include cases where they overlap each other and cases where they are not overlapping each other. The data block or stream, however, can be reconstructed from the segments or subsegments regardless of their overlapping or non-overlapping nature because information regarding the overlap or non-overlap is tracked so that reconstruction of the data block or stream can take place.
In some embodiments, the search for previously stored subsegments is performed over the subsegments associated with a similar previously stored segment. In various embodiments, a content based or non-content based tag is used to identify a previously stored segment similar to the in-coming new segment associated with the subsegment being processed. In various embodiments, a tag comprises a sketch, a fingerprint or hash of all or some of the bytes of the segment (e.g. of the first N bytes), some metadata included in the stream and associated with the segment such as a file name, a file size, a file create date and time, a file modify date and time, a file inode number, a hash of such metadata, or any other measure useful in identifying likely similar segments. In various embodiments, a tag comprises a tag based on the content of a segment or not based on the content of a segment. In some embodiments, a tag not based on the content includes: (when not included in a stream) a file name, a file size, a file create date and time, a file modify date and time, a file inode number, a hash of such metadata, or any other measure useful in identifying likely similar segments. In some embodiments, tags associated with a segment are stored (e.g., in an index) to be used to identify segments similar to an in-coming segment.
In some embodiments, a reference to and/or a fingerprint associated with the already stored identical subsegment is stored instead of the subsegment content. In some embodiments, the reference and/or the fingerprint associated with the subsegment is transmitted instead of the subsegment content to a system that already stores the subsegment.
In some embodiments, the references to and/or fingerprints associated with the subsegments of the segment are stored in close proximity to subsegments for efficient access together. In some embodiments, the references to and/or fingerprints associated with the subsegments of the segment are stored separately from the subsegments. In some embodiments, the fingerprints for all the subsegments of a segment are stored together for efficient access together (e.g., access in one read operation from a storage device or one transfer across a network or data bus). In some embodiments, the fingerprints for some or all of the subsegments are stored together as part of a file system data structure which associates subsegments with particular offsets within a file.
Local restorer system 100 also communicates with a plurality of client systems with storage, represented in
In various embodiments, storage device 106 and/or 104 comprise a single storage device such as a hard disk, a tape drive, a semiconductor memory, a plurality of storage devices such as a redundant array system (e.g., a redundant array of independent disks (RAID)), a system for storage such as a library system or network attached storage system, or any other appropriate storage device or system.
In various embodiments, storage device 156 and/or 154 comprise a single storage device such as a hard disk, a tape drive, a semiconductor memory, a plurality of storage devices such as a redundant array system (e.g., a redundant array of independent disks (RAID)), a system for storage such as a library system or network attached storage system, or any other appropriate storage device or system. In various embodiments, remote storage system 152 and/or client systems (represented by 160 and 162) include one or more internal and/or external storage devices.
In some embodiments, the segments and/or subsegments are created using an anchoring function. In various embodiments, the anchoring function includes computing a hash of a sliding window of bytes, determining if the computed hash meets one or more predetermined criteria, and/or establishing a boundary in an algorithmic manner in or around the sliding window of bytes. In various embodiments, the anchoring function is based at least in part on at least a portion of content of the data stream or data block, uses fixed periodic boundaries, locates an anchor within a fixed periodic boundary using a hash function, uses two anchors and locating a boundary between the two anchors, uses file boundaries, directory boundaries, or any other appropriate anchoring function.
In some embodiments, the segments and/or subsegments could be overlapping. For example, subsegments of equal size could be created starting at each byte offset within the segment.
In various embodiments, the fingerprints are read by reading stored fingerprints from a storage device, or any other appropriate manner of reading a fingerprint. Fingerprints associated with a given segment are substantially smaller than the segment itself, so reading or transferring only fingerprints reduces substantially the reading access times from storage devices and the transferred number of bytes from the storage devices.
In some embodiments, storing or transmitting fingerprints enables fingerprints to be used in place of a segment or a subsegment thereby saving storage space, transmission bandwidth, and/or compute time.
In some embodiments, fingerprints (e.g., the fingerprints associated with subsegments of a segment) for two or more subsegments of a similar previously stored segment are stored together and can therefore be easily acquired or retrieved together as a group (i.e., in one access from a storage device). In various embodiments, the fingerprints of a similar previously stored segment are stored in close proximity to or separately from the subsegments and/or references of the segment.
In some embodiments, fingerprints for two or more subsegments of a plurality of previously stored segments are stored together so that they can be easily acquired or retrieved together as a group (i.e., in one access from a storage device).
In some embodiments, a similar previously stored segment is identified using resemblance. In some embodiments, resemblance is determined by comparing a summary feature set of a first segment with a summary feature set of a second segment. In some embodiments, a summary feature set is determined by selecting a plurality of either fixed length or variable length parts or shingles of a first segment; for each shingle, computing a plurality of values by applying a set of functions to each shingle; and from all the values computed for all the shingles, selecting a first subset of values. In some embodiments, the first subset of values is used in determining resemblance between the first segment and a second segment.
In various embodiments, similar segments are located based on the name of a file or directory included in the data stream or data block or based on the name of a file or directory not included in the data stream or data block (e.g., associated with the file as metadata).
In the event that the process of
In some embodiments, the subsegment processing is with regards to transmitting a subsegment or replicating a subsegment. In these cases, the comparisons are with previously transmitted or replicated subsegments and after indicating that the subsegment is identical to a previously transmitted or replicated subsegment, transmitting or replicating by using a reference instead of the subsegment content.
If the selected subsegment is identical to a subsegment of a previously stored likely similar segment, then in 462 it is indicated that the selected subsegment is identical, and in 464 a reference is stored. In 466, it is determined if there are more subsegments. If not, then the process ends. If there are more subsegments, then in 468 a next subsegment of next N bytes after previous subsegment is selected, and control passes to 452.
If the selected subsegment is not identical to a subsegment of a previously stored likely similar segment, then in 456 the byte is stored or buffered for later storage and/or, if appropriate, the selected subsegment and associated fingerprint are stored. For example, the sliding window of subsegments has not found a matching subsegment after sliding the starting byte over N bytes past a previously saved subsegment or previously found matching subsegment. In 458, it is determined if there are more subsegments. If not, the process ends. If there are more subsegments, then the next subsegment of N bytes starting one byte after previous subsegment is selected, and control passes to 452.
In the event that the process of
In various embodiments, the tags are read by finding them in an in-memory data structure, by reading stored tags from a storage device, by receiving tags from a replica system, by receiving tags from a remote system, or any other appropriate manner of reading a tag. Tags associated with a given segment are substantially smaller than the segment itself, so reading or transferring only tags reduces substantially the reading access times from storage devices and the transferred number of bytes from the storage devices.
In some embodiments, tags are calculated on the fly from a segment, when available, to save storage space or for convenience. In some embodiments, storing or transmitting tags enables tags to be used in place of a segment thereby saving storage space, transmission bandwidth, and/or compute time.
In some embodiments, tags for two or more similar previously stored segments are stored together and can therefore be easily acquired or retrieved together as a group (i.e., in one access from a storage device). In various embodiments, the tags of similar previously stored segments are stored in close proximity to or separately from the content of the segments and/or references of the segments.
In some embodiments, tags for a plurality of previously stored segments are stored together so that they can be easily acquired or retrieved together as a group (i.e., in one access from a storage device).
In some embodiments, the process enables the system to be more efficient about the number of bytes transmitted between a client and a remote system by sending a representation such as a fingerprint instead of a full subsegment.
In some embodiments, the replica system as mentioned in the processes of
In various embodiments, different combination of sending/receiving tags and/or fingerprints to identify duplicate subsegments are possible because comparisons and or calculations can be made either on the originating system or the remote or replica system. Sending/receiving fingerprints or tags, which are much smaller than the content of a segment or subsegment, is much more efficient with regards to traffic over the network or bus between the originating system and the remote or replica system.
In some embodiments, fingerprints (e.g., the fingerprints associated with subsegments of a segment) for two or more or all subsegments of a likely similar segment are stored together and can therefore be easily acquired or retrieved together as a group (i.e., in one access from a storage device). In various embodiments, the fingerprints of a likely similar segment are stored in close proximity to or separately from the subsegments and/or references and/or tags of the segment.
In some embodiments, fingerprints for two or more or all subsegments of a plurality or all of previously stored segments are stored together so that they can be easily acquired or retrieved together as a group (i.e., in one access from a storage device).
In some embodiments, tags are stored and retrieved using a similar process to fingerprints.
In some embodiments, the subsegment processing is with regards to transmitting a subsegment or replicating a subsegment. In these cases, the comparisons are with previously transmitted or replicated subsegments and after indicating that the subsegment is identical to a previously transmitted or replicated subsegment, transmitting or replicating by using a reference instead of the subsegment content.
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
Patterson, R. Hugo, Zhu, Ming Benjamin
Patent | Priority | Assignee | Title |
11874821, | Dec 22 2021 | Ebay Inc. | Block aggregation for shared streams |
Patent | Priority | Assignee | Title |
6272612, | Sep 04 1997 | Bull S.A. | Process for allocating memory in a multiprocessor data processing system |
6470329, | Jul 11 2000 | Oracle America, Inc | One-way hash functions for distributed data synchronization |
6928526, | Dec 20 2002 | EMC Corporation | Efficient data storage system |
7457800, | Oct 06 2004 | Red Hat, Inc | Storage system for randomly named blocks of data |
7523098, | Sep 15 2004 | International Business Machines Corporation | Systems and methods for efficient data searching, storage and reduction |
8275755, | Sep 15 2004 | International Business Machines Corporation | Systems and methods for efficient data searching, storage and reduction |
8275756, | Sep 15 2004 | International Business Machines Corporation | Systems and methods for efficient data searching, storage and reduction |
8275782, | Sep 15 2004 | International Business Machines Corporation | Systems and methods for efficient data searching, storage and reduction |
8484427, | Jun 28 2006 | Acronis International GmbH | System and method for efficient backup using hashes |
8768895, | Apr 11 2007 | EMC IP HOLDING COMPANY LLC | Subsegmenting for efficient storage, resemblance determination, and transmission |
8943024, | Jan 17 2003 | LDISCOVERY, LLC; LDISC HOLDINGS, LLC; KLDiscovery Ontrack, LLC | System and method for data de-duplication |
9378211, | Sep 15 2004 | International Business Machines Corporation | Systems and methods for efficient data searching, storage and reduction |
9430486, | Sep 15 2004 | International Business Machines Corporation | Systems and methods for efficient data searching, storage and reduction |
20030005306, | |||
20050004954, | |||
20050177632, | |||
20060155735, | |||
20080256326, | |||
WO3092166, |
Date | Maintenance Fee Events |
May 20 2021 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Date | Maintenance Schedule |
Dec 12 2020 | 4 years fee payment window open |
Jun 12 2021 | 6 months grace period start (w surcharge) |
Dec 12 2021 | patent expiry (for year 4) |
Dec 12 2023 | 2 years to revive unintentionally abandoned end. (for year 4) |
Dec 12 2024 | 8 years fee payment window open |
Jun 12 2025 | 6 months grace period start (w surcharge) |
Dec 12 2025 | patent expiry (for year 8) |
Dec 12 2027 | 2 years to revive unintentionally abandoned end. (for year 8) |
Dec 12 2028 | 12 years fee payment window open |
Jun 12 2029 | 6 months grace period start (w surcharge) |
Dec 12 2029 | patent expiry (for year 12) |
Dec 12 2031 | 2 years to revive unintentionally abandoned end. (for year 12) |