Embodiments described herein relate to storage systems, and more particularly, to techniques for using unmapped and unknown states in a storage system.
Various applications executing on a computer system may store and access data stored on one or more storage devices of a storage system. As the data is modified over time, the storage system needs to keep track of the changes, update mappings, and free up storage locations corresponding to deleted data so that these storage locations can be used for new data. However, tracking changes can be challenging as the complexity of mappings increases for the various datasets in use for a plurality of users. In addition, replicating a dataset from one storage system to another storage system can be challenging as the dataset changes over time and the metadata and/or mappings of the dataset are in a state of flux. Therefore, efficient techniques for maintaining and replicating datasets in a storage system are desired.
Various embodiments of systems and methods for utilizing unmapped and unknown states in a storage system are contemplated.
In one embodiment, a storage system may include one or more storage subsystems, with each storage subsystem including a storage controller and one or more storage devices. In one embodiment, the storage controller may utilize volumes and mediums to track stored client data. In various embodiments, each volume may be mapped to a single anchor medium, and the anchor medium for a given volume may be mapped to any number of levels of underlying mediums in a medium hierarchy for the given volume. A medium may be defined as a logical grouping of data. In various embodiments, a medium below an anchor medium may generally correspond to a previously taken snapshot of the volume. When a snapshot is taken of a volume, the existing anchor medium which is made stable as a result of the snapshot may be referred to as a parent medium and a new anchor medium which is created for the volume may be referred to as a child medium.
In one embodiment, a common parent medium may have multiple different child(ren) mediums on separate storage subsystems. For example, a first subsystem may include a first child medium of a first parent medium, and a second subsystem may include a second child medium of the first parent medium. The contents of the first parent medium may be different on the first subsystem and second subsystem if the first and second child mediums have different visibility into the first parent medium. The different visibility into the parent medium may be caused by different patterns of overwrites to the first child and second child mediums. For example, a first portion of the first parent medium may have been freed up on the first subsystem while a second portion of the first parent medium may have been freed up on the second subsystem, wherein the first portion is different from the second portion. The portions of the first parent medium which have been freed up on the first and second subsystems may be marked as unmapped so that the corresponding storage locations can be freed up during garbage collection. The unmapped state indicates that the contents of these portions have been forgotten by the host subsystem.
If the first parent medium is replicated from the first storage subsystem to a third storage subsystem, the first portion of the first parent medium may be converted from the unmapped state to an unknown state. Then at a later point in time, if the first parent medium is replicated from the second subsystem to the third storage subsystem, and if the second subsystem still has the first portion of the first parent medium, the second subsystem may overwrite the first portion of the first parent medium on the third storage subsystem. The different copies of the parent medium which are stored on different subsystems may have the same global content ID so that the third subsystem is able to consolidate the parent medium's contents from the first and second subsystems.
These and other embodiments will become apparent upon consideration of the following description and accompanying drawings.
While the methods and mechanisms described herein are susceptible to various modifications and alternative forms, specific embodiments are shown by way of example in the drawings and are herein described in detail. It should be understood, however, that drawings and detailed description thereto are not intended to limit the methods and mechanisms to the particular form disclosed, but on the contrary, are intended to cover all modifications, equivalents and alternatives apparent to those skilled in the art once the disclosure is fully appreciated.
In the following description, numerous specific details are set forth to provide a thorough understanding of the methods and mechanisms presented herein. However, one having ordinary skill in the art should recognize that the various embodiments may be practiced without these specific details. In some instances, well-known structures, components, signals, computer program instructions, and techniques have not been shown in detail to avoid obscuring the approaches described herein. It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements.
This specification includes references to “one embodiment”. The appearance of the phrase “in one embodiment” in different contexts does not necessarily refer to the same embodiment. Particular features, structures, or characteristics may be combined in any suitable manner consistent with this disclosure. Furthermore, as used throughout this application, the word “may” is used in a permissive sense (i.e., meaning having the potential to), rather than the mandatory sense (i.e., meaning must). Similarly, the words “include”, “including”, and “includes” mean including, but not limited to.
Terminology. The following paragraphs provide definitions and/or context for terms found in this disclosure (including the appended claims):
“Comprising.” This term is open-ended. As used in the appended claims, this term does not foreclose additional structure or steps. Consider a claim that recites: “A system comprising a storage controller . . . .” Such a claim does not foreclose the system from including additional components (e.g., a network, a server, a display device).
“Configured To.” Various units, circuits, or other components may be described or claimed as “configured to” perform a task or tasks. In such contexts, “configured to” is used to connote structure by indicating that the units/circuits/components include structure (e.g., circuitry) that performs the task or tasks during operation. As such, the unit/circuit/component can be said to be configured to perform the task even when the specified unit/circuit/component is not currently operational (e.g., is not on). The units/circuits/components used with the “configured to” language include hardware—for example, circuits, memory storing program instructions executable to implement the operation, etc. Reciting that a unit/circuit/component is “configured to” perform one or more tasks is expressly intended not to invoke 35 U.S.C. § 112, paragraph (f), for that unit/circuit/component. Additionally, “configured to” can include generic structure (e.g., generic circuitry) that is manipulated by software and/or firmware (e.g., an FPGA or a general-purpose processor executing software) to operate in a manner that is capable of performing the task(s) at issue. “Configured to” may also include adapting a manufacturing process (e.g., a semiconductor fabrication facility) to fabricate devices (e.g., integrated circuits) that are adapted to implement or perform one or more tasks.
“Based On.” As used herein, this term is used to describe one or more factors that affect a determination. This term does not foreclose additional factors that may affect a determination. That is, a determination may be solely based on those factors or based, at least in part, on those factors. Consider the phrase “determine A based on B.” While B may be a factor that affects the determination of A, such a phrase does not foreclose the determination of A from also being based on C. In other instances, A may be determined based solely on B.
Referring now to
As shown, storage device group 130 includes storage devices 135A-N, which are representative of any number and type of storage devices (e.g., solid-state drives (SSDs)). Storage controller 110 may be coupled directly to client computer system 125, and storage controller 110 may be coupled remotely over network 120 to client computer system 115. Clients 115 and 125 are representative of any number of clients which may utilize storage controller 110 for storing and accessing data in system 100. It is noted that some systems may include only a single client, connected directly or remotely to storage controller 110. It is also noted that original storage array 105 may include more than one storage controller in some embodiments.
Storage controller 110 may include software and/or hardware configured to provide access to storage devices 135A-N. Although storage controller 110 is shown as being separate from storage device groups 130 and 140, in some embodiments, storage controller 110 may be located within one or each of storage device groups 130 and 140. Storage controller 110 may include or be coupled to a base operating system (OS), a volume manager, and additional control logic for implementing the various techniques disclosed herein.
Storage controller 110 may include and/or execute on any number of processors and may include and/or execute on a single host computing device or be spread across multiple host computing devices, depending on the embodiment. In some embodiments, storage controller 110 may generally include or execute on one or more file servers and/or block servers. Storage controller 110 may use any of various techniques for replicating data across devices 135A-N to prevent loss of data due to the failure of a device or the failure of storage locations within a device. Storage controller 110 may also utilize any of various deduplication techniques for reducing the amount of data stored in devices 135A-N by deduplicating common data segments.
Storage controller 110 may be configured to create and manage mediums in system 100. Accordingly, a set of mediums may be recorded and maintained by storage controller 110. The term “medium” as is used herein is defined as a logical grouping of data. A medium may have a corresponding identifier with which to identify the logical grouping of data. Each medium may also include or be associated with mappings of logical block numbers to content location, deduplication entries, and other information. In one embodiment, medium identifiers may be used by the storage controller but medium identifiers may not be user-visible. A user (or client) may send a data request accompanied by a volume ID to specify which data is targeted by the request, and the storage controller may map the volume ID to a medium ID and then use the medium ID when processing the request.
A medium may be virtual such that it is identified by a unique ID, and all blocks stored to a volume while the corresponding medium is open for writing may be recorded as <medium, block number>. Each medium logically comprises all of the blocks in the medium. However, only the blocks that were written to the medium from the time the medium was created to the time the medium was closed are recorded and mappings to these blocks may also be maintained with the medium.
The term “medium” is not to be confused with the terms “storage medium” or “computer readable storage medium”. A storage medium is defined as an actual physical device (e.g., SSD, HDD) that is utilized to store data. A computer readable storage medium (or non-transitory computer readable storage medium) is defined as a physical storage medium configured to store program instructions which are executable by a processor or other hardware device. Various types of program instructions that implement the methods and/or mechanisms described herein may be conveyed or stored on a computer readable medium. Numerous types of media which are configured to store program instructions are available and include hard disks, floppy disks, CD-ROM, DVD, flash memory, Programmable ROMs (PROM), random access memory (RAM), and various other forms of volatile or non-volatile storage.
In various embodiments, multiple mapping tables may be maintained by storage controller 110. These mapping tables may include a medium mapping table, a volume-to-medium mapping table, an address translation table, a deduplication table, an overlay table, and/or other tables. In some embodiments, the information stored in two or more of these tables may be combined into a single table. The medium mapping table may be utilized to record and maintain the mappings between mediums and underlying mediums and the volume-to-medium mapping table may be utilized to record and maintain the mappings between volumes and anchor mediums. In one embodiment, a volume may be mapped to an anchor medium which is in a read-write state. The anchor medium may then be mapped to any number of underlying mediums (or portions of mediums) in the medium mapping table. A sector or other portion of a medium may be referred to as “underlying” a volume if the sector or portion of the medium is included within the volume. In other words, a given sector of a medium may “underlie” a volume if the anchor medium of the volume maps to the given sector.
The address translation table may include a plurality of entries, with each entry holding a virtual-to-physical mapping for a corresponding data component. This mapping table may be used to map logical read/write requests from each of the client computer systems 115 and 125 to physical locations in storage devices 135A-N. A “physical” pointer value may be read from the mappings associated with a given medium or snapshot during a lookup operation corresponding to a received read/write request. This physical pointer value may then be used to locate a physical location within the storage devices 135A-N. It is noted that the physical pointer value may be used to access another mapping table within a given storage device of the storage devices 135A-N. Consequently, one or more levels of indirection may exist between the physical pointer value and a target storage location.
In various embodiments, the address translation table may be accessed using a key comprising a medium or snapshot ID, a logical or virtual address, a sector number, and so forth. A received read/write storage access request may identify a particular volume, sector, and length. The volume ID may be mapped to a medium or snapshot ID using the volume to medium mapping table. A sector may be a logical block of data stored in a medium, with a sector being the smallest size of an atomic I/O request to the storage system. In one embodiment, a sector may have a fixed size (e.g., 512 bytes) and the mapping tables may deal with ranges of sectors. For example, the address translation table may map a medium in sector-size units. The areas being mapped may be managed as ranges of sectors, with each range consisting of one or more consecutive sectors. In one embodiment, a range may be identified by <medium, start sector, length>, and this tuple may be recorded in the address translation table and medium mapping table. In one embodiment, the key value for accessing the address translation table may be the combination of the medium ID and the received sector number. A key is an entity in a mapping table that distinguishes one row of data from another row. In other embodiments, other types of address translation tables may be utilized.
In one embodiment, the address translation table may map mediums and block offsets to physical pointer values. Depending on the embodiment, a physical pointer value may be a physical address or a logical address which the storage device maps to a physical location within the device. In one embodiment, an index may be utilized to access the address translation table. The index may identify locations of mappings within the address translation table. The index may be queried with a key value generated from a medium ID and sector number, and the index may be searched for one or more entries which match, or otherwise correspond to, the key value. Information from a matching entry may then be used to locate and retrieve a mapping which identifies a storage location which is the target of a received read or write request. In one embodiment, a hit in the index provides a corresponding virtual page ID identifying a page within the storage devices of the storage system, with the page storing both the key value and a corresponding physical pointer value. The page may then be searched with the key value to find the physical pointer value.
The deduplication table may include information used to deduplicate data at a fine-grained level. The information stored in the deduplication table may include mappings between one or more calculated hash values for a given data component and a physical pointer to a physical location in one of the storage devices 135A-N holding the given data component. In addition, a length of the given data component and status information for a corresponding entry may be stored in the deduplication table. It is noted that in some embodiments, one or more levels of indirection may exist between the physical pointer value and the corresponding physical storage location. Accordingly, in these embodiments, the physical pointer may be used to access another mapping table within a given storage device of the storage devices 135A-N.
Networks 120 and 150 may utilize a variety of techniques including wireless connection, direct local area network (LAN) connections, wide area network (WAN) connections such as the Internet, a router, storage area network, Ethernet, and others. Networks 120 and 150 may further include remote direct memory access (RDMA) hardware and/or software, transmission control protocol/internet protocol (TCP/IP) hardware and/or software, router, repeaters, switches, grids, and/or others. Protocols such as Fibre Channel, Fibre Channel over Ethernet (FCoE), iSCSI, and so forth may be used in networks 120 and 150. The networks 120 and 150 may interface with a set of communications protocols used for the Internet such as the Transmission Control Protocol (TCP) and the Internet Protocol (IP), or TCP/IP.
Client computer systems 115 and 125 are representative of any number of stationary or mobile computers such as desktop personal computers (PCs), servers, server farms, workstations, laptops, handheld computers, servers, personal digital assistants (PDAs), smart phones, and so forth. Generally speaking, client computer systems 115 and 125 include one or more processors comprising one or more processor cores. Each processor core includes circuitry for executing instructions according to a predefined general-purpose instruction set. For example, the x86 instruction set architecture may be selected. Alternatively, the ARM®, Alpha®, PowerPC®, SPARC®, or any other general-purpose instruction set architecture may be selected. The processor cores may access cache memory subsystems for data and computer program instructions. The cache subsystems may be coupled to a memory hierarchy comprising random access memory (RAM) and a storage device.
It is noted that in alternative embodiments, the number and type of storage arrays, client computers, storage controllers, networks, storage device groups, and data storage devices is not limited to those shown in
Turning now to
It is noted that the medium hierarchy of a volume refers to all of the mediums which are referenced by the volume and which underlie the volume. The anchor medium of a given volume is at the top of the medium hierarchy, while the oldest medium referenced by the given volume is at the bottom of the medium hierarchy. There may be any number of levels in the medium hierarchy between the anchor medium and the oldest medium, depending on the number of snapshots which have been taken of the corresponding volume and on other factors such as medium consolidation or other volume-level operations, such as copy offload and clone.
It may be assumed for the purposes of this discussion that volume 200A and volume 210A are both children of the same medium 225. It may also be assumed for the purposes of this discussion that medium 225 was previously replicated from array 105A to array 170A, with the replica shown as medium 225A on array 170A to differentiate from the original medium 225 on array 105A. In other words, medium 225 references the same data as medium 225A, although the mappings from anchor medium 230A to medium 225 are different from the mappings from anchor medium 235A to medium 225A, as indicated by the arrows shown in
As shown, volume 200A has an anchor medium 230A which maps to medium 225 for sectors 0 and 1. In other words, a lookup of any blocks in these sectors of volume 200A will be mapped through medium 225. These mappings of anchor medium 230A indicate that sectors 0 and 1 of volume 200A have not been modified since a snapshot was taken of medium 225. A snapshot may be defined as the state of a logical collection of data (e.g., volume, medium, etc.) at a given point in time. Since sectors 2 and 3 of anchor medium 230A do not map to medium 225, this indicates that sectors 2 and 3 of volume 200A have been overwritten with new data since the snapshot was taken of medium 225. Therefore, sectors 2 and 3 may be mapped directly from anchor medium 230A. It is noted that the size of sectors 0-3 may vary depending on the embodiment. It is also noted that in other embodiments, volumes and mediums may have other numbers of sectors besides four.
The arrows from sectors 2 and 3 of anchor medium 235A to medium 225A indicate that these sectors of volume 210A are mapped through medium 225A. Since there are no arrows from sectors 0 and 1 of anchor medium 235 to medium 225A, this indicates that these sectors of volume 210A have been overwritten since a previous snapshot of medium 225A was taken and that a lookup of any blocks of sectors 0-1 may be mapped through anchor medium 235A.
Referring now to
For the purposes of this discussion, it will be assumed that the storage controller has determined that no other volumes or mediums reference sectors 2 and 3 of medium 225B prior to updating the status of these sectors to unmapped. The unmapped status of sectors 2 and 3 of medium 225B indicates that these sectors previously existed but that their contents have been forgotten and/or deleted. In other words, a range of sectors may be recorded as unmapped if it is unreachable from any other mediums. In one embodiment, unmapped ranges may be prevented from being overwritten.
When sectors 2 and 3 of medium 225B are put into the unmapped state, this allows garbage collection operations to free the storage locations associated with those sectors so that these storage locations can be reused. Garbage collection may be defined as a process in which storage locations are freed and made available for reuse by the system. The unmapped sectors 2 and 3 of medium 225B are shown as sectors with diagonal lines in
It is noted that although address translation table 300 is shown as having a separate entry for each sector of mediums 225 and 230, in other embodiments, each entry of address translation table 300 may correspond to a variable range size which is an integral number of sectors. It should be understood that the entries of address translation table 300 and medium mapping table 305 show only pertinent attributes to avoid cluttering the figure. In other embodiments, address translation table 300 and medium mapping table 305 may be organized in a different manner and/or may include other information. It is noted that any suitable data structure may be used to store the mapping table information of medium mapping table 305 in order to provide for efficient searches (e.g., b-trees, binary trees, hash tables, etc.). All such data structures are contemplated.
In one embodiment, attributes from a matching entry of address translation table 300 may be used to locate and retrieve a mapping in a corresponding translation table (not shown). In one embodiment, a hit in address translation table 300 provides a corresponding level ID and page ID identifying a level and page within the translation table storing both the key value and a corresponding physical pointer value. The page identified by the corresponding page ID may be searched with the key value so as to retrieve the corresponding pointer. The pointer may be used to identify or locate data stored in the storage devices of the storage system. It is noted that in various embodiments, the storage system may include storage devices (e.g., SSDs) which have internal mapping mechanisms. In such embodiments, the pointer in a translation table entry may not be an actual physical address per se. Rather, the pointer may be a logical address which the storage device maps to a physical location within the device.
Determining where to record the unmapped status of sectors 2 and 3 of medium 225B may be based on a variety of factors, including the size of the unmapped sectors, the locations of the endpoints of the unmapped sectors, the size of the medium mapping table, the ratio of the size of the address translation table in relation to the size of the medium mapping table, and/or one or more other factors. In one embodiment, the storage controller may be configured to minimize the size of medium mapping table 305, and therefore the preference may be to store entries for unmapped portions of mediums in address translation table 300. In another embodiment, the storage controller may be configured to store the entries indicating “unmapped” in medium mapping table 305. In a further embodiment, both techniques may be used in the same system, with the storage controller dynamically choosing which approach to use for a given mapping.
Turning now to
A storage controller of source storage array 170B may detect that sectors 0 and 1 of anchor medium 235B do not map to sectors 0 and 1 of medium 225C. The storage controller may detect this when sectors 0 and 1 of anchor medium 235B are overwritten. Alternatively, the storage controller may detect that sectors 0 and 1 of anchor medium 235B do not map to sectors 0 and 1 medium 225C while performing read optimization operations.
In addition to detecting that sectors 0 and 1 of anchor medium 235B no longer map to sectors 0 and 1 of medium 225C, the storage controller may also determine if any other mediums map to sectors 0 and 1 of medium 225C. In response to detecting that sectors 0 and 1 of medium 225C are unreachable from any other mediums, the storage controller may put sectors 0 and 1 of medium 225C in the unmapped state. The storage controller may record that sectors 0 and 1 of medium 225C are unmapped as shown in the first two entries of address translation table 400. By marking sectors 0 and 1 of medium 225C as unmapped, garbage collection operations may then reclaim the storage locations corresponding to those sectors.
In one embodiment, the storage controller may maintain a single entry for medium 225C in medium mapping table 405 which indicates that the entire medium is in the mapped state. However, a lookup of address translation tables 400 for sectors 0 and 1 of medium 225C will result in a hit to the entries in the unmapped state. By recording the unmapped status of sectors 0 and 1 in the address translation table 400 rather than in medium mapping table 405, the fragmentation of medium mapping table 405 is reduced. However, it is noted that in another embodiment, the storage controller could record the unmapped status of sectors 0 and 1 of medium 225 in medium mapping table 405 rather than in address translation table 400.
Referring now to
When replicating volume 200B to replica storage array 160B, the unmapped sectors 2-3 of medium 225B may be translated into unknown sectors 2-3 of medium 225D of replicated volume 200C. The unknown status of sectors 2-3 of medium 225D indicates that replica storage array 160B knows that these sectors 2-3 of medium 225D previously existed but that replica storage array 160B does not have the content of these sectors. Also, the unknown status indicates that the contents of these sectors may be filled in at a later point in time if the contents become available through another source.
Turning now to
In one embodiment, the unknown state of sectors 2 and 3 of medium 225 may be recorded in address translation table 600. This is shown in the middle two entries of address translation table 600. However, in another embodiment, the unknown state of sectors 2 and 3 of medium 225 could also be recorded in medium mapping table 605, although this is not shown in
It should be understood that address translation table 600 and medium mapping table 605 are examples of tables that may be utilized in one embodiment. In other embodiments, tables 600 and 605 may be organized differently and/or may include other information. It is noted that medium 225D may have a local medium ID which is specific to replica storage array 160B. However, this local medium ID may be mapped (via a separate table) to a global medium ID which identifies medium 225D as being the same as medium 225B of original storage array 105B. Alternatively, the medium IDs recorded in tables 800 and 805 may be global content IDs that uniquely the mediums across multiple arrays.
Turning now to
When volume 210B is replicated from source storage array 170C to replica storage array 160C, the previously unknown sectors 2-3 of medium 225D (of
Turning now to
After volume 210B is replicated from source storage array 170C to replica storage array 160C (as shown in
Referring now to
In one embodiment, once a dataset (e.g., volume, medium, virtual machine) has been selected for replication, an unknown tuple for the entire dataset may be sent from storage array 905 to storage array 910. Alternatively, storage array 910 may create a new unknown tuple locally on storage array 910 for the entire dataset. At a later point in time, the actual content of the dataset may be replicated to storage array 910, and new tuples (with a state of mapped) may be created for the dataset's contents.
As shown in address translation table 925, an unknown tuple is used to represent the entire medium 915 prior to sending any of the actual contents of medium 915 to storage array 910. Medium 915 may then be exposed to user operations prior to replicating the data of medium 915 to storage array 910. As described herein, a tuple may include one or more data fields including a pointer used to identify or locate stored data components. A tuple may also include a status indicator, and in one embodiment, the status indicator may be set to one of the following values: mapped, unmapped, or unknown. In some embodiments, an entry in an address translation table may be referred to as a tuple.
Once one or more unknown tuples are sent to or are created on storage array 910 for the dataset being replicated, the corresponding content may be exposed to the user. Accordingly, the dataset being replicated may be exposed to the user prior to the actual data being replicated from storage array 905 to storage array 910. If a read operation targets one of the unknown tuples, then storage array 910 may retrieve the corresponding data from storage array 905 to process the user request. Then, when the data for a given unknown tuple is stored on storage array 910, the state of the tuple may be changed to mapped.
In this way, storage array 910 can expose data to users while the data is still being copied over from storage array 905. For example, in one embodiment, an organization or company may have a failure of an existing storage array, and storage array 910 may be used to bring back data during the recovery process. Storage array 910 may first create or receive the unknown tuples prior to retrieving the actual data from one or more other storage arrays. For example, in one embodiment, storage array 905 may first transfer an unknown tuple for the entire medium 915, and then contents of medium 915 may start getting filled in after that. When operations that target missing data are detected, the operations will hit the unknown tuples, and then storage array 910 can go through the network (not shown) and get the data from other sources (e.g., storage array 905). In this way, the unknown tuple(s) may serve as a form of indirection for storage array 910 prior to the retrieval of all of the corresponding data.
Turning now to
A request to replicate a first medium from a first storage system to a second storage system may be detected (block 1005). It is noted that the first and second storage systems may be storage arrays in one embodiment. In response to selecting the first medium for replication, a first portion of the first medium may be selected for replication (block 1010). The size of the first portion may vary according to the embodiment. Then, the storage controller on the first storage system may determine if the selected portion is in a first state (conditional block 1015). In one embodiment, the first state may be the unmapped state.
If the selected portion of the first medium is in the first state (conditional block 1015, “yes” leg), then the first storage system may notify the second storage system and a storage controller of the second storage system may translate the status of the selected portion from the first state to a second state (block 1020). In one embodiment, the second state may be the unknown state. While the selected portion of the first medium may be recorded as unknown, this portion may be filled in at a later point in time if a third storage system has the contents of the selected portion of the first medium and sends the selected portion of the first medium to the second storage system.
Next, the storage controller may determine where to record that the selected portion of the first medium is in the second state (block 1025). In one embodiment, the storage controller may have the option of recording that the selected portion of the first medium is in the second state in either a first table or a second table. In one embodiment, the first table may be an address translation table and the second table may be a medium mapping table. The storage controller may select the first or second table based on any of various factors, including the size of the selected portion, the location of the endpoints of the selected portion, the size of the first table, the size of the second table, the size of the first table in relation to the second table, and/or other factors.
For example, in one embodiment, the storage controller may compare the size of the selected portion to a first programmable threshold. If the size of the selected portion is less than the first programmable threshold, then the storage controller may select the first table. Otherwise, if the size of the selected portion is greater than the first programmable threshold, then the storage controller may select the second table. Alternatively, in another embodiment, the storage controller may determine where to record that the selected portion of the first medium is in the second state based on locations of endpoints of the selected portion. In this embodiment, the storage controller may select the first table responsive to determining the endpoints of the selected portion are not on sector boundaries. Otherwise, if the endpoints are on sector boundaries, then the storage controller may select the second table.
In a further embodiment, the storage controller may determine where to record that the selected portion of the first medium is in the second state based on the size of the second table. For example, if the size of the second table is greater than a second programmable threshold, then the storage controller may select the first table. Otherwise, if the size of the second table is less than the second programmable threshold, then the storage controller may select the second table. In a still further embodiment, the storage controller may determine which table to select based on a comparison between the relative sizes of the first table and the second table. For example, the storage controller may attempt to keep the ratio of the size of the first table compared to the second table at or below a third programmable threshold (e.g., 100, 1000). Accordingly, if the size of the first table divided by the size of the second table is greater than the third programmable threshold, the storage controller may select the second table. Otherwise, if the size of the first table divided by the size of the second table is less than the third programmable threshold, the storage controller may select the first table. It is noted that any two or more of the above-described techniques may be combined into a single scheme for deciding where to record that the selected portion of the first medium is in the second state.
After selecting a table in block 1025, the storage controller may record that that the selected portion of the first medium is in the second state in the selected table (block 1030). It is noted that while the storage controller records that the selected portion of the first medium is in the second state on the second storage system, the selected portion of the first medium may remain in the first state on the first storage system. After block 1030, the storage controller on the first storage system may determine if there are any other portions of the first medium that have not yet been processed as part of the replication process (conditional block 1040).
If the selected portion of the first medium is not in the first state (conditional block 1015, “no” leg), then the selected portion may be replicated from the first storage system to the second storage system (block 1035). Next, the storage controller on the first storage system may determine if there are any other portions of the first medium that have not yet been processed as part of the replication process (conditional block 1040). If there any other portions of the first medium that have not yet been processed as part of the replication process (conditional block 1040, “yes” leg), then method 1000 may return to block 1010 to select the next portion of the first medium for replication. If all portions of the first medium have already been replicated (conditional block 1040, “no” leg), then method 1000 may end.
Referring now to
A storage controller may perform one or more write operations to a first portion of a first medium (block 1105). It may be assumed for the purposes of this discussion that prior to performing the write operation(s) to the first portion of the first medium, the first portion of the first medium was mapped to a second portion of a second medium. In other words, the second portion of the second medium was underlying the first portion of the first medium.
Responsive to performing the write operation(s) to the first portion of the first medium, the storage controller may record that the second portion of the second medium no longer underlies the first portion of the first medium (block 1110). Next, the storage controller may determine if any other portions of any other mediums are mapped to the second portion of the second medium (conditional block 1115). In other words, the storage controller may determine if the second portion of the second medium underlies any other mediums.
If the storage controller detects that one or more portions of other mediums are mapped to the second portion of the second medium (conditional block 1115, “yes” leg), then the second portion of the second medium may remain in the mapped state (block 1120). However, if the storage controller detects that no other portions of any other mediums are mapped to the second portion of the second medium (conditional block 1115, “no” leg), then the storage controller may change the state of the second portion of the second medium to the unmapped state (block 1125). Once the second portion of the second medium is recorded as being unmapped, the data of the second portion of the second medium may be discarded and the corresponding storage locations may be freed and reused (block 1130). After blocks 1120 and 1130, method 1100 may end.
It is noted that the above-described embodiments may comprise software. In such an embodiment, the program instructions that implement the methods and/or mechanisms may be conveyed or stored on a non-transitory computer readable medium. Numerous types of media which are configured to store program instructions are available and include hard disks, floppy disks, CD-ROM, DVD, flash memory, Programmable ROMs (PROM), random access memory (RAM), and various other forms of volatile or non-volatile storage.
In various embodiments, one or more portions of the methods and mechanisms described herein may form part of a cloud-computing environment. In such embodiments, resources may be provided over the Internet as services according to one or more various models. Such models may include Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). In IaaS, computer infrastructure is delivered as a service. In such a case, the computing equipment is generally owned and operated by the service provider. In the PaaS model, software tools and underlying equipment used by developers to develop software solutions may be provided as a service and hosted by the service provider. SaaS typically includes a service provider licensing software as a service on demand. The service provider may host the software, or may deploy the software to a customer for a given period of time. Numerous combinations of the above models are possible and are contemplated.
Although the embodiments above have been described in considerable detail, numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.
This application is a continuation application of and claims priority from U.S. patent application Ser. No. 16/161,747, filed Oct. 16, 2018, which is a continuation application of and claims priority from U.S. patent application Ser. No. 15/339,524, filed on Oct. 31, 2016, now U.S. Pat. No. 10,114,574, issued Oct. 30, 2018, which is a continuation of and claims priority from U.S. patent application Ser. No. 14/508,683, filed on Oct. 7, 2014, now U.S. Pat. No. 9,489,132, issued Nov. 8, 2016.
Number | Name | Date | Kind |
---|---|---|---|
5208813 | Stallmo | May 1993 | A |
5403639 | Belsan et al. | Apr 1995 | A |
5940838 | Schmuck et al. | Aug 1999 | A |
6263350 | Wollrath et al. | Jul 2001 | B1 |
6412045 | DeKoning et al. | Jun 2002 | B1 |
6718448 | Ofer | Apr 2004 | B1 |
6757769 | Ofer | Jun 2004 | B1 |
6799283 | Tamai et al. | Sep 2004 | B1 |
6834298 | Singer et al. | Dec 2004 | B1 |
6850938 | Sadjadi | Feb 2005 | B1 |
6915434 | Kuroda et al. | Jul 2005 | B1 |
6973549 | Testardi | Dec 2005 | B1 |
7028216 | Aizawa et al. | Apr 2006 | B2 |
7028218 | Schwarm et al. | Apr 2006 | B2 |
7039827 | Meyer et al. | May 2006 | B2 |
7216164 | Whitmore et al. | May 2007 | B1 |
7543121 | Maki | Jun 2009 | B2 |
7783682 | Patterson | Aug 2010 | B1 |
7873619 | Faibish et al. | Jan 2011 | B1 |
7913300 | Flank et al. | Mar 2011 | B1 |
7933936 | Aggarwal et al. | Apr 2011 | B2 |
7979613 | Zohar et al. | Jul 2011 | B2 |
8086652 | Bisson et al. | Dec 2011 | B1 |
8117464 | Kogelnik | Feb 2012 | B1 |
8190565 | Prahlad et al. | May 2012 | B2 |
8200887 | Bennett | Jun 2012 | B2 |
8205065 | Matze | Jun 2012 | B2 |
8352540 | Anglin et al. | Jan 2013 | B2 |
8527544 | Colgrove et al. | Sep 2013 | B1 |
8560747 | Tan et al. | Oct 2013 | B1 |
8621241 | Stephenson | Dec 2013 | B1 |
8700875 | Barron et al. | Apr 2014 | B1 |
8751463 | Chamness | Jun 2014 | B1 |
8806160 | Colgrove et al. | Aug 2014 | B2 |
8874850 | Goodson et al. | Oct 2014 | B1 |
8959305 | LeCrone et al. | Feb 2015 | B1 |
9081713 | Bennett | Jul 2015 | B1 |
9189334 | Bennett | Nov 2015 | B2 |
9311182 | Bennett | Apr 2016 | B2 |
9423967 | Colgrove et al. | Aug 2016 | B2 |
9436396 | Colgrove et al. | Sep 2016 | B2 |
9436720 | Colgrove et al. | Sep 2016 | B2 |
9454476 | Colgrove et al. | Sep 2016 | B2 |
9454477 | Colgrove et al. | Sep 2016 | B2 |
9489132 | Golden | Nov 2016 | B2 |
9513820 | Shalev | Dec 2016 | B1 |
9516016 | Colgrove et al. | Dec 2016 | B2 |
9552248 | Miller et al. | Jan 2017 | B2 |
9632870 | Bennett | Apr 2017 | B2 |
20020038436 | Suzuki | Mar 2002 | A1 |
20020087544 | Selkirk et al. | Jul 2002 | A1 |
20020178335 | Selkirk et al. | Nov 2002 | A1 |
20030140209 | Testardi | Jul 2003 | A1 |
20040049572 | Yamamoto et al. | Mar 2004 | A1 |
20050066095 | Mullick et al. | Mar 2005 | A1 |
20050216535 | Saika et al. | Sep 2005 | A1 |
20050223154 | Uemura | Oct 2005 | A1 |
20060074940 | Craft et al. | Apr 2006 | A1 |
20060136365 | Kedem et al. | Jun 2006 | A1 |
20060155946 | Ji | Jul 2006 | A1 |
20070067585 | Ueda et al. | Mar 2007 | A1 |
20070162954 | Pela | Jul 2007 | A1 |
20070171562 | Maejima et al. | Jul 2007 | A1 |
20070174673 | Kawaguchi et al. | Jul 2007 | A1 |
20070220313 | Katsuragi et al. | Sep 2007 | A1 |
20070245090 | King et al. | Oct 2007 | A1 |
20070266179 | Chavan et al. | Nov 2007 | A1 |
20080059699 | Kubo et al. | Mar 2008 | A1 |
20080065852 | Moore et al. | Mar 2008 | A1 |
20080134174 | Sheu et al. | Jun 2008 | A1 |
20080155191 | Anderson et al. | Jun 2008 | A1 |
20080178040 | Kobayashi | Jul 2008 | A1 |
20080209096 | Lin et al. | Aug 2008 | A1 |
20080244205 | Amano et al. | Oct 2008 | A1 |
20080275928 | Shuster | Nov 2008 | A1 |
20080285083 | Aonuma | Nov 2008 | A1 |
20080307270 | Li | Dec 2008 | A1 |
20090006587 | Richter | Jan 2009 | A1 |
20090037662 | Frese et al. | Feb 2009 | A1 |
20090204858 | Kawaba | Aug 2009 | A1 |
20090228648 | Wack | Sep 2009 | A1 |
20090300084 | Whitehouse | Dec 2009 | A1 |
20100057673 | Savov | Mar 2010 | A1 |
20100058026 | Heil et al. | Mar 2010 | A1 |
20100067706 | Anan et al. | Mar 2010 | A1 |
20100077205 | Ekstrom et al. | Mar 2010 | A1 |
20100082879 | McKean et al. | Apr 2010 | A1 |
20100106905 | Kurashige et al. | Apr 2010 | A1 |
20100153620 | McKean et al. | Jun 2010 | A1 |
20100153641 | Jagadish et al. | Jun 2010 | A1 |
20100191897 | Zhang et al. | Jul 2010 | A1 |
20100250802 | Waugh et al. | Sep 2010 | A1 |
20100250882 | Hutchison et al. | Sep 2010 | A1 |
20100281225 | Chen et al. | Nov 2010 | A1 |
20100287327 | Li et al. | Nov 2010 | A1 |
20110072300 | Rousseau | Mar 2011 | A1 |
20110145598 | Smith et al. | Jun 2011 | A1 |
20110161559 | Yurzola et al. | Jun 2011 | A1 |
20110167221 | Pangal et al. | Jul 2011 | A1 |
20110238634 | Kobara | Sep 2011 | A1 |
20120023375 | Dutta et al. | Jan 2012 | A1 |
20120036309 | Dillow et al. | Feb 2012 | A1 |
20120117029 | Gold | May 2012 | A1 |
20120198175 | Atkisson | Aug 2012 | A1 |
20120233434 | Starks | Sep 2012 | A1 |
20120330954 | Sivasubramanian et al. | Dec 2012 | A1 |
20130042052 | Colgrove et al. | Feb 2013 | A1 |
20130046995 | Movshovitz | Feb 2013 | A1 |
20130047029 | Ikeuchi et al. | Feb 2013 | A1 |
20130091102 | Nayak | Apr 2013 | A1 |
20130205110 | Kettner | Aug 2013 | A1 |
20130227236 | Flynn et al. | Aug 2013 | A1 |
20130275391 | Batwara et al. | Oct 2013 | A1 |
20130275656 | Talagala et al. | Oct 2013 | A1 |
20130283058 | Fiske et al. | Oct 2013 | A1 |
20130290648 | Shao et al. | Oct 2013 | A1 |
20130318314 | Markus et al. | Nov 2013 | A1 |
20130339303 | Potter et al. | Dec 2013 | A1 |
20140052946 | Kimmel | Feb 2014 | A1 |
20140068791 | Resch | Mar 2014 | A1 |
20140089730 | Watanabe et al. | Mar 2014 | A1 |
20140101361 | Gschwind | Apr 2014 | A1 |
20140143517 | Jin et al. | May 2014 | A1 |
20140172929 | Sedayao et al. | Jun 2014 | A1 |
20140201150 | Kumarasamy et al. | Jul 2014 | A1 |
20140215129 | Kuzmin et al. | Jul 2014 | A1 |
20140229131 | Cohen et al. | Aug 2014 | A1 |
20140229452 | Serita et al. | Aug 2014 | A1 |
20140281308 | Lango | Sep 2014 | A1 |
20140325115 | Ramsundar et al. | Oct 2014 | A1 |
20150234709 | Koarashi | Aug 2015 | A1 |
20150244775 | Vibhor et al. | Aug 2015 | A1 |
20150278534 | Thiyagarajan et al. | Oct 2015 | A1 |
20160019114 | Han et al. | Jan 2016 | A1 |
20160098191 | Golden et al. | Apr 2016 | A1 |
20160098199 | Golden et al. | Apr 2016 | A1 |
Number | Date | Country |
---|---|---|
103370685 | Oct 2013 | CN |
103370686 | Oct 2013 | CN |
104025010 | Nov 2016 | CN |
3066610 | Sep 2016 | EP |
3082047 | Oct 2016 | EP |
3120235 | Jan 2017 | EP |
2007087036 | Apr 2007 | JP |
2007094472 | Apr 2007 | JP |
2008250667 | Oct 2008 | JP |
2010211681 | Sep 2010 | JP |
1995002349 | Jan 1995 | WO |
1999013403 | Mar 1999 | WO |
2008102347 | Aug 2008 | WO |
2010071655 | Jun 2010 | WO |
Entry |
---|
Microsoft Corporation, “Fundamentals of Garbage Collection”, Retrieved Aug. 30, 2013 via the WayBack Machine, 11 pages. |
Microsoft Corporation, “GCSettings.IsServerGC Property”, Retrieved Oct. 27, 2013 via the WayBack Machine, 3 pages. |
Number | Date | Country | |
---|---|---|---|
Parent | 16161747 | Oct 2018 | US |
Child | 17070036 | US | |
Parent | 15339524 | Oct 2016 | US |
Child | 16161747 | US | |
Parent | 14508683 | Oct 2014 | US |
Child | 15339524 | US |