The present invention relates in general to computers, and more particularly to methods, computer systems, and computer program products for processing data in a deduplication system.
Data deduplication refers to the reduction and/or elimination of redundant data. In a data deduplication process, duplicate copies of data are reduced or eliminated, leaving a minimal amount of redundant copies, or a single copy of the data, respectively. Using deduplication processes provides a variety of benefits, such as reduction of required storage capacity and reduced need for network bandwidth. Due to these and other benefits, deduplication has emerged in recent years as a highly important technological field in computing storage systems. Challenges to providing deduplication functionality include aspects such as efficiently finding duplicated data patterns in typically large storage repositories, and storing the data patterns in a deduplicated storage-efficient form.
Methods, computer systems, and computer program products embodiments for processing data in a computing environment are provided. In one exemplary embodiment, by way of example only, the computer environment for data deduplication storage receives a plurality of non-sequential write operations for deduplication storage of the data, which data is stored in a plurality of user file locations. The data is accumulated and updated in the plurality of buffers per a data structure, the data structure serving as a fragment map between the plurality of buffers and the plurality of user file locations. The data is restructured in the plurality of buffers to form a complete sequence of a required sequence size. The data is provided as at least one stream to a stream-based deduplication algorithm for processing and storage. A defragmentation process is performed after each of closing a plurality of user files, an arbitrary time period, and when the plurality of user files are determined to be quiescent, the defragmentation operation rearranging streams in each of the plurality of user files into a single stream.
In order that the advantages of the invention will be readily understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings. Understanding that these drawings depict embodiments of the invention and are not therefore to be considered to be limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:
Throughout the following description and claimed subject matter, the following terminology, pertaining to the illustrated embodiments, is described.
A “pool of buffers” is intended to refer to multiple buffers each capable of holding a single fragment. The “pool of buffers” may also be referred to as a pool of memory buffers, and may be used in connection and contemplation of a memory hierarchy structure.
A “fragment” is intended to refer to the logical division of the user-files to fixed-sized pieces of a predetermined size. One implementation, by example only, the fragments may have any convenient pre-determined size, but should be fixed in advance. One fragment, by example only, may use a fragment size of 64 kB. However, the fragment size may also be non-fixed.
A “user file” is intended to refer to the files that are being written by the backup application.
A “fragment map” is intended to refer to a data structure that serves to map between memory buffers and user-file locations, and vice-versa.
A “disk map” is intended to refer to an on-disk structure, which is similar to the fragment map which maps the user file fragments to compression module streams to allow the data of each user file to reside in more than one compression module stream.
A “control module” or “controller module” is intended to refer to a module configured to decide and manage what to do with each write operation received from the client over the network attached storage system (NAS) or a storage system having a random pattern of write offsets.
A “compression module” is intended to manage, assist, or perform the operations of receiving a stream of data, opening the stream of data, compressing the stream, and storing the data stream to storage. The compression module may operate independently or be configured to assist with other components in the deduplication storage subsystem to perform the receiving, opening, compressing, and storing the data streams to storage.
The present invention provides a solution and enhancement for data deduplication via a network attached system (NAS) or any random-access writing, or storage system having a random pattern of write offsets having a method using multiple memory buffers and a stream-based algorithm. Large data sets have traditionally been stored on magnetic tapes, which offer the lowest cost per stored byte along with excellent reliability and archival lifespans. However, magnetic tapes also have many drawbacks due to the need for extensive manual maintenance (loading and unloading tape cartridges, solving minor mechanical problems, transporting and storing them, etc.). Such drawbacks have prompted the development of tape virtualization products. The tape-virtualization products may use large disk-arrays to store the data, while exposing a tape-like interface to the rest of the backup system. The tape-virtualization system fits into the normal backup system just as a regular tape-library, thus allowing for no-hassle compatibility with existing systems, while keeping the actual data on disk-arrays thus doing away with most of the aforementioned drawbacks of tape systems. But these tape-emulation systems introduce another problem: Disk arrays are much more expensive per byte than tape cartridges.
Such problems may be solved by observing that, in most cases, there is a large amount of data-redundancy in the backup data set. The backup data of today's backup run is, in most cases, very similar to the backup data produced by yesterday's backup run. By identifying the similar data chunks, or data sequences, it is possible to use the same storage-space for both, thus saving much storage-space. This mechanism is called de-duplication, and it turns out that in many cases it can reduce the storage-space required as much as ten-fold, and sometimes even more. The space reduction makes disk-based tape-virtualization an economically viable proposition for replacing traditional magnetic tape, which accounts for the commercial success that de-duplicating tape-virtualization products are seeing in the market. Backup data sets are large and can be measured in Peta-Bytes. Additionally, the backup-stream has typical rates of Giga-Bytes per second. Designing a system that can process data at such rates, and find similar sequences in such a large data set is a technological challenge.
Hash-based algorithms are relatively simple to design and implement, but they suffer from one major problem: the indexes (or “hash-tables”) used to look up identical blocks are very large. Assuming a block size of 8 Kilobytes, the number of entries in the index of a 1 Peta-Byte data set should be 128 GB. Assuming an entry size of a few bytes, the index can occupy approximately a terabyte of storage. Such a large index cannot be kept in memory, and therefore needs to reside on disk, where each lookup is very slow, due to the hard-disk seek-latency. Assuming an incoming data rate of 1 Giga-Bytes per second, 128 Kilo lookups are required, and it is clear that no reasonable disk-based system can accommodate such a seek-rate. Stream based solutions solve this problem by storing much fewer hash-entries per kilobytes. This allows the entire hash-table to reside in memory, where lookups are much faster, allowing for significantly higher performance and significantly larger data sets. All this comes at the expense of added algorithmic complexity relative to hash-based algorithms.
The above description refers to backup data that enters the de-duplication system in the form of a tape data stream. Backup data can also enter the system in other forms, the most notable of which is a network attached system (NAS) but may include any random-access writing method to be applicable. In the NAS configuration, the user's backup-system is configured to act as a NAS client, and write the data in the form of files, via either the NFS or the CIFS protocols. NAS scenarios are simpler for the administrator to configure, but present additional challenges that are not present in tape-virtualization scenarios. Unlike tape streams which are inherently sequential, NAS data-streams tend to exhibit random access patterns. This can originate from the application itself, but even when the application writes data with perfect sequence, the NAS protocol client that is part of most operating systems tends to buffer the data and send it to the server after introducing some randomness into the access pattern. This randomness is not intentional, but a by product of the internal design of the file-system code in operating systems which is mainly designed for block devices, where sequentiality is not of any consideration. The solution of Hash-based de-duplication algorithms can deal with random access patterns in a relatively straightforward way, because the Hash-based de-duplication algorithms “view” the data as a set of blocks, but for stream-based algorithms such application presents a challenge. The present invention proposes a method for allowing stream-based algorithms to handle such workloads, thus opening the door for reaping the performance benefits of stream-based algorithms in NAS scenarios.
The present invention is based on characteristics of stream-based systems: First, although each stream represents a continuous sequence of data-bytes, a number of streams can be aggregated into a “meta-file” or disk map, where each range of sequential bytes is represented as a stream and the meta-file keeps a record of how each stream fits into the image of the original file. Second, since stream-based algorithms store their index using blocks of a specific granularity, the present invention merges different streams into one stream without having to recalculate any hashes, as long as the merge boundaries are always kept aligned with block boundaries. The present invention uses the foregoing characteristics, a pool of buffers or pool of memory buffers, and a memory hierarchy. The memory hierarchy may include, but not limited to, RAM, flash-based devices, magnetic disk, optical storage, a variety of types of memory (including virtual), regular disks, storage disks, and may also include storage media such as a solid state drives (SSD) or other type of devices, methods, or processes typically employed by one of ordinary skill in the art.
In one embodiment, by example only, a computer environment receives a plurality of write operations for deduplication storage of the data. The data is buffered in a plurality of buffers with overflow temporarily stored to a memory hierarchy when the data received for deduplication storage is sequential or non sequential. The data is accumulated and updated in the plurality of buffers per a data structure, the data structure serving as a fragment map between the plurality of buffers and a plurality of user file locations. The data is restructured in the plurality of buffers to form a complete sequence of a required sequence size. The data is provided as at least one stream to a stream-based deduplication algorithm for processing and storage.
Turning now to
The deduplication storage subsystem 106 includes a processor 520 and a memory 540, such as random access memory (RAM). The deduplication storage subsystem 106 may be operatively coupled to several components not illustrated for purposes of convenience, including a display, which presents images such as windows to the user on a graphical user interface, a keyboard, mouse, printer, and the like. Of course, those skilled in the art will recognize that any combination of the above components, or any number of different components, peripherals, and other devices, may be used with the deduplication storage subsystem 106.
In the illustrated embodiment, the deduplication storage subsystem 106 operates under control of an operating system (OS) 560 (e.g. z/OS, OS/2, LINUX, UNIX, WINDOWS, MAC OS) stored in the memory 540, and interfaces with the user to accept inputs and commands and to present results.
The deduplication storage subsystem 106 implements an application program 580 written in a programming language such as COBOL, PL/1, C, C++, JAVA, ADA, BASIC, VISUAL BASIC or any other programming language to be translated into code that is readable by the processor 520. After completion, the application program 580 accesses and may manipulate data stored in the memory 540 of the deduplication storage subsystem 106.
To further implement and execute mechanisms and processes according to the present invention, OS 560, in conjunction with the memory 540, the processor 520, the application program 580, and other computer processing, networking, and storage components, may implement memory buffers 640 in order to receive a new write operation from the client for storing the data, a fragment map 620 to assist in the storage for deduplicated data, a disk map 675 similar to the fragment map 620, a compression module to manage, assist, and perform operations for the opening, compressing, and storing streams of data, and a control module 650 to manage each of the write operations received from a client. The deduplicated documents processed by the deduplication storage subsystem 106 may be stored in the memory 540 in a format consistent with the present invention as depicted in diagrams 2 and 4. As the skilled artisan will appreciate, the mechanisms of the pool of buffers 640, disk map 675, and the fragment map 620 as presently illustrated may be implemented in various forms and architectures. Accordingly, the illustration of the pool of buffers 640, disk map 675, and the fragment map 620 in the present figure is again intended to demonstrate logical relationships between possible computing components in the deduplication storage subsystem 106, and not to imply a specific physical structure or relationship.
In one embodiment, instructions implementing the operating system 560, the application program 580, a deduplication module 660, a compression module 630, and the control module 650, as well as the pool of buffers 640, disk map 675, and fragment map 620 are tangibly embodied in a computer-readable medium, which may include one or more fixed or removable data storage devices, such as a zip drive, disk, hard drive, DVD/CD-ROM, digital tape, SSDs, etc. Further, the operating system 560 and the application program 580 comprise instructions (e.g., in executable portions) which, when read and executed by the deduplication storage subsystem 106, cause the deduplication storage subsystem 106 to perform the steps necessary to implement and/or use the present invention. The application program 580 and/or the operating system 560 instructions may also be tangibly embodied in the memory 540 and/or transmitted through or accessed by network 200 via various components (e.g., router 320,
The deduplication module 660, assists in managing the receiving the plurality of write operations for deduplication storage of the data from a network attached storage (NAS) system. The data is buffered in a plurality of buffers with overflow temporarily stored to a memory hierarchy when the data received for deduplication storage over the NAS system is out of order or non sequential. The data is accumulated and updated in the plurality of buffers per a data structure, the data structure serving as a fragment map between the plurality of buffers and a plurality of user file locations. The data is restructured in the plurality of buffers to form a complete sequence of a required sequence size. The data is provided as at least one stream to a stream-based deduplication algorithm for processing and storage.
Moreover, the deduplication module is implemented to assist with management of a plurality of compression streams and mapping the user-file fragments to compression streams. This allows the data of each user-files to reside in more than one compression stream 404 (
Embodiments of the present invention may include one or more associated software application programs 580 that include, for example, functions for managing a distributed computer system comprising a network of computing devices, such as a storage area network (SAN). Accordingly, the processor 520 may comprise one or more storage management processors (SMP). The application program 580 may operate within a single computer and/or deduplication storage subsystem 106 or as part of a distributed computer system comprising a network of computing devices. The network may encompass one or more computers connected via a local area network and/or Internet connection (which may be public or secure, e.g. through a virtual private network (VPN) connection), or via a fibre channel SAN or other known network types as will be understood by those skilled in the art. (Note that a fibre channel SAN is typically used only for computers to communicate with storage systems, and not with each other.)
Storage 130 (includes all storage components shown in the figure as 130A, 130B, and 130n) may be physically comprised of one or more storage devices, such as storage arrays. A storage array is a logical grouping of individual storage devices, such as a hard disk. In certain embodiments, storage 130 is comprised of a JBOD (Just a Bunch of Disks) array or a RAID (Redundant Array of Independent Disks) array. A collection of physical storage arrays may be further combined to form a rank, which dissociates the physical storage from the logical configuration. The storage space in a rank may be allocated into logical volumes, which define the storage location specified in a write/read request.
As shown in
The Control module (650,
Turning to
The implementation of Control module (650,
In one embodiment, by way of example only, if there is a shortage of memory buffers 640, and there is a large enough sequence of fragments available in memory, the present invention will open a new stream 404 and write the sequence of fragments to the stream 440. By writing the sequence of fragments to the stream 44, the memory buffers 640 are released. The “large enough sequence” mentioned above is defined as a sequence of written fragments that is longer than a pre-determined threshold. In order to increase efficiency, this threshold can be made to depend on the number of memory buffers 640 that are still available. If there are several available memory buffers 640, the fragments may be very large, and the fragments may be made smaller when memory buffers 640 become scarce.
In the event that an overwrite occurs (i.e. the user writes to an area that in the user file 302 for which there already exist “old” data, either on-disk or in memory), a new stream 404 may be opened for the overwrite and the disk-map is simply updated to point to the new data. However, it is possible for the user-files 302 to become fragmented over many streams and there may exist data in compressed-streams 404 that is “old”, i.e. that has been overwritten by new data, which is kept elsewhere, in other compression-streams 404.
In one embodiment, these challenges are solved by including a de-fragmentation process, which runs after each user-file 302 is closed, an arbitrary period of time determined by the user preferences, or when the plurality of user files are determined to be quiescent. The de-fragmentation operation re-arranges the (possibly many) compression-streams 404 of each user-file into a single compression-stream, and discards the overwritten and un-needed portions.
Turning to
Turning to
It should be noted that in one exemplary embodiment, when a write operation is received via a NAS just adjacent to the (logical) end of an existing stream two events may occur: first, the write operation data request may be appended to the end of an existing stream, and second, any subsequent sequence may be appended which the write operation may have completed. The temporary storage area may not be required. If the temporary storage area is not implemented, adapted, or used, the sequences sent to the stream-based algorithm may become smaller and reduced in size.
It should be noted that execution orders of processes, such as operations, procedures, steps and stages in the devices, systems, programs and methods shown in the scope of claims, the description and the drawings, are not clearly specified particularly by use of expressions such as “before” and “prior to.” Therefore, those processes are executable in any order unless an output from a preceding process is used in a process subsequent thereto. Even if any operational flow in the scope of claims, in the description or in the drawings has been described by use of expressions such as “firstly,” and “subsequently,” for the sake of convenience, this does not necessarily mean that the operational flow has to be executed by an order indicated by these expressions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the present invention are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks. The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagram in the above figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
While one or more embodiments of the present invention have been illustrated in detail, one of ordinary skill in the art will appreciate that modifications and adaptations to those embodiments may be made without departing from the scope of the present invention as set forth in the following claims.
This Application is a Continuation of U.S. patent application Ser. No. 13/647,561, filed on Oct. 9, 2012, which is a Continuation of U.S. patent application Ser. No. 12/970,828, now U.S. Pat. No. 8,332,372, filed on Dec. 16, 2010, the contents of each being incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5600826 | Ando | Feb 1997 | A |
5963963 | Schmuck et al. | Oct 1999 | A |
6088767 | Dan et al. | Jul 2000 | A |
6185575 | Orcutt | Feb 2001 | B1 |
6405237 | Khalidi et al. | Jun 2002 | B1 |
6567887 | Harmer | May 2003 | B2 |
6594674 | Kaplan et al. | Jul 2003 | B1 |
6643654 | Patel et al. | Nov 2003 | B1 |
6934942 | Chilimbi | Aug 2005 | B1 |
7043637 | Bolosky et al. | May 2006 | B2 |
7092956 | Ruediger | Aug 2006 | B2 |
7162486 | Patel et al. | Jan 2007 | B2 |
7200604 | Forman et al. | Apr 2007 | B2 |
7308463 | Taulbee et al. | Dec 2007 | B2 |
7360047 | Muto | Apr 2008 | B2 |
7478116 | Sreenivas et al. | Jan 2009 | B2 |
7801127 | Beeson et al. | Sep 2010 | B2 |
7962452 | Anglin | Jun 2011 | B2 |
8055618 | Anglin | Nov 2011 | B2 |
8204868 | Wu | Jun 2012 | B1 |
8234468 | Deshmukh et al. | Jul 2012 | B1 |
8315992 | Gipp et al. | Nov 2012 | B1 |
8332372 | Tzur et al. | Dec 2012 | B2 |
8370315 | Efstathopoulos et al. | Feb 2013 | B1 |
8412848 | Therrien et al. | Apr 2013 | B2 |
8451170 | Foerster et al. | May 2013 | B2 |
8578091 | Thomas et al. | Nov 2013 | B2 |
8660994 | Slater et al. | Feb 2014 | B2 |
8671265 | Wright | Mar 2014 | B2 |
8719234 | Akirav et al. | May 2014 | B2 |
8812738 | Therrien et al. | Aug 2014 | B2 |
8825605 | Nayak | Sep 2014 | B2 |
9256368 | Welnicki et al. | Feb 2016 | B2 |
20040003314 | Witt et al. | Jan 2004 | A1 |
20040187075 | Maxham et al. | Sep 2004 | A1 |
20050066190 | Martin | Mar 2005 | A1 |
20050203864 | Schmidt et al. | Sep 2005 | A1 |
20050246376 | Lu et al. | Nov 2005 | A1 |
20060020646 | Tee et al. | Jan 2006 | A1 |
20060282475 | Suermondt et al. | Dec 2006 | A1 |
20070069023 | Jones et al. | Mar 2007 | A1 |
20080133561 | Dubnicki et al. | Jun 2008 | A1 |
20080294705 | Brauckhoff et al. | Nov 2008 | A1 |
20090019504 | Huang et al. | Jan 2009 | A1 |
20090164535 | Gandhi et al. | Jun 2009 | A1 |
20090171888 | Anglin | Jul 2009 | A1 |
20100070478 | Anglin | Mar 2010 | A1 |
20100077161 | Stoakes et al. | Mar 2010 | A1 |
20100208753 | Brown | Aug 2010 | A1 |
20100332456 | Prahlad et al. | Dec 2010 | A1 |
20110022718 | Evans et al. | Jan 2011 | A1 |
20110055171 | McNutt | Mar 2011 | A1 |
20120016846 | Anglin | Jan 2012 | A1 |
20120017060 | Kapanipathi et al. | Jan 2012 | A1 |
20120036113 | Lillibridge et al. | Feb 2012 | A1 |
20120059863 | Thomson et al. | Mar 2012 | A1 |
20120131025 | Cheung et al. | May 2012 | A1 |
20120158671 | Tzur et al. | Jun 2012 | A1 |
20120324203 | Matoba | Dec 2012 | A1 |
20130339319 | Woodward et al. | Dec 2013 | A1 |
20150074361 | Hughes | Mar 2015 | A1 |
20150205816 | Periyagaram et al. | Jul 2015 | A1 |
20150254268 | Sharma et al. | Sep 2015 | A1 |
Number | Date | Country |
---|---|---|
04211844 | Aug 1992 | JP |
2004287932 | Oct 2004 | JP |
2008077290 | Apr 2008 | JP |
2008282072 | Nov 2008 | JP |
2009091957 | Jul 2009 | WO |
2009144942 | Dec 2009 | WO |
Number | Date | Country | |
---|---|---|---|
20180189001 A1 | Jul 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13647561 | Oct 2012 | US |
Child | 15896202 | US | |
Parent | 12970828 | Dec 2010 | US |
Child | 13647561 | US |