Log grouping for metadata housekeeping operations
By sorting log groups and managing countdown counters in the storage system, the housekeeping process is optimized, the problems of resource waste and low performance in the existing technology are solved, and the processing efficiency of the storage system is improved.
Patent Information
- Application Number
- CN202210397340.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-27
- Filing Date
- 2022-04-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-15
AI Technical Summary
When existing storage systems deal with deduplication, there are problems of resource waste and low performance in the housekeeping process. Especially when frequent writing and loading of indexes consume too much system processing time and bandwidth.
Reduce the number of load and write instances by sorting log groups associated with a set of indexes and loading them into storage according to the sorted order, writing to persistent storage only when the index has completed updating, and using a countdown counter to track index update progress , ensuring that log groups are maintained in memory until all reference count changes are completed before being written.
It effectively reduces the number of interactions between log groups between the memory and the storage device, improves the performance of the deduplication storage system, and reduces system processing time and bandwidth consumption.
Smart Images

Figure CN116561108B_ABST
Abstract
Description
Background Art
[0001] Data reduction techniques may be applied to reduce the amount of data stored in a storage system. Example data reduction techniques include data deduplication. Data deduplication identifies duplicate data units and seeks to reduce or eliminate the number of instances of the duplicate data units stored in a storage system. BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Some embodiments are described with respect to the following figures.
[0003] Figure 1 is a schematic diagram of an example storage system according to some implementations.
[0004] Figure 2 is an illustration of an example data structure according to some implementations.
[0005] Figure 3 is an illustration of an example data structure according to some implementations.
[0006] Figure 4 is an illustration of an example process according to some implementations.
[0007] FIG. 5A to FIG. 5B is an illustration of an example data structure according to some implementations.
[0008] Figure 6 is a diagram of an example machine-readable medium having instructions stored thereon, according to some implementations.
[0009] Figure 7 is a schematic diagram of an example computing device in accordance with some implementations.
[0010] Figure 8 is an illustration of an example process according to some implementations.
[0011] Throughout the drawings, the same reference numerals refer to similar, but not necessarily identical, elements. The drawings are not necessarily to scale, and the dimensions of some parts may be exaggerated to more clearly illustrate the examples shown. In addition, the drawings provide examples and / or implementations consistent with the description; however, the description is not limited to the examples and / or implementations provided in the drawings. DETAILED DESCRIPTION
[0012] In the present disclosure, the use of the terms "a", "an" or "the" is intended to include the plural forms as well, unless the context clearly indicates otherwise. Likewise, when used in the present disclosure, the terms "includes / including / comprises / comprising" or "have / having" specify the presence of stated elements, but do not exclude the presence or addition of other elements.
[0013] In some examples, the storage system can deduplicate data to reduce the amount of space required to store the data. The storage system can perform a deduplication process that includes breaking up a data stream into discrete data units or "chunks." Further, the storage system can determine identifiers or "fingerprints" of incoming data units and can determine which incoming data units are duplicates of previously stored data units. In the event that a data unit is a duplicate, the storage system can store a reference to the previous data unit instead of storing a duplicate incoming data unit.
[0014] As used herein, "fingerprint" refers to a value obtained by applying a function to the contents of a data unit (where "content" may include all or a subset of the contents of a data unit). Examples of functions that may be applied include hash functions that produce a hash value based on an incoming data unit. Examples of hash functions include cryptographic hash functions, such as a Secure Hash Algorithm 2 (SHA-2) hash function (e.g., SHA-224, SHA-256, SHA-384, etc.). In other examples, other types of hash functions or other types of fingerprint functions may be employed.
[0015] A "storage system" may include a storage device or an array of storage devices. A storage system may also include (multiple) storage controllers that manage access to (multiple) storage devices. A "data unit" may refer to any data portion that can be individually identified in a storage system. In some cases, a data unit may refer to a block, a collection of blocks, or any other data portion. In some examples, a storage system may store data units in a persistent storage device. A persistent storage device may be implemented using one or more (multiple) persistent (e.g., non-volatile) storage devices (such as (multiple) disk-based storage devices (e.g., (multiple) hard disk drives (HDDs)), (multiple) solid-state devices (SSDs) (such as (multiple) flash storage devices), etc., or a combination thereof).
[0016] A "controller" may refer to a hardware processing circuit, which may include any one or some combination of a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a programmable gate array, a digital signal processor, or other hardware processing circuits. Alternatively, a "controller" may refer to a combination of a hardware processing circuit and machine-readable instructions (software and / or firmware) that may be executed on the hardware processing circuit.
[0017] In some examples, a deduplication storage system may use metadata for processing one or more inbound data streams (e.g., multiple concurrent inbound data streams). For example, such metadata may include a data recipe (also referred to herein as a "manifest") that specifies the order in which specific data units are received (e.g., in a data stream). Subsequently, in response to a read request, the deduplication system may use a set of manifests (also referred to herein as "item metadata") to determine the order in which the data units are received, so that the original data stream can be recreated. Accordingly, the set of manifests may be a representation of the original data stream. The manifest may include a series of records, each record representing a specific set of data units. The records in the manifest may include one or more fields (also referred to herein as "pointer information") identifying indexes that include storage information of the data units. For example, the index may include one or more fields that specify location information (e.g., container, offset, etc.) of the stored data units, compression and / or encryption characteristics of the stored data units, etc. Further, the index may include a reference count that indicates the number of manifests that reference each data unit.
[0018] In some examples, the deduplication storage system may perform housekeeping procedures to maintain the accuracy of the included metadata. For example, when a data unit is deleted from a given list (e.g., due to a change to the data stream or project represented by the list), the reference count of the data unit may be decremented by one (i.e., indicating that the list that references the data unit is reduced by one). In some examples, such housekeeping operations may involve loading the index into the memory to decrement the reference count included in the index. Further, after decrementing the reference count, the index may be written to the persistent storage device (e.g., during a memory flush). In some examples, the entire index may have to be written to the persistent storage device as a whole unit to maintain encryption and / or compression of the index, maintain compatibility with the storage system, etc. However, in some examples, when the index is loaded into the memory, the reference count change may only affect a relatively small portion of the index (e.g., one record in ten thousand records in the index). Therefore, in such an example, writing the entire index to the persistent storage device will consume much more system processing time and bandwidth than the system processing time and bandwidth required to write only the changed portion to the persistent storage device. Accordingly, in some examples, changes to reference counts may be stored in a log associated with an index rather than in the index itself. Because the log is limited to recording changes to the index (rather than all of the index's data), writing the log to persistent storage consumes relatively less processing time and bandwidth than writing the entire index to persistent storage.
[0019] In some examples, a log grouping may be formed from a plurality of logs, wherein each log in the log grouping is associated with a corresponding index that stores metadata associated with a single object (e.g., a file, a table, etc.) stored in a data deduplication system. Thus, a log grouping may include only logs associated with a single storage object. In some examples, any metadata changes made to data units of a single storage object are more likely to occur at times close to each other (i.e., close in time). Accordingly, the total number of write operations to the persistent storage device may be reduced by writing an entire log grouping (e.g., one or more logs written close in time to each other) to a persistent storage device rather than writing each log one by one to the persistent storage device.
[0020] In some examples, the housekeeping process may involve batch processing of manifests, wherein each batch includes multiple manifests that collectively represent a continuous range of user data provided to the system. Such batch processing can reduce the number of load and write operations performed for the same index. In some examples, batch processing may include: loading all manifests for a batch into a memory, identifying a set of indexes affected by changes to the manifest, loading the identified indexes into a memory, loading associated log packets (i.e., log packets including logs associated with the identified indexes) into a memory, updating logs, and writing log packets to a storage device. However, in some examples, the processing of a single batch may involve multiple load and write operations for each log packet (i.e., reading from a storage device to a memory, and writing from a memory to a storage device). For example, when processing a set of indexes associated with a particular log packet, processing may be performed in the order of updating the log packets at different points in time. Therefore, the log packet may be removed from the memory (i.e., to provide memory space for (multiple) other log packets), and then reloaded into the memory again for further updating. Thus, in such an example, during batch processing, multiple load and write operations for the same log group may consume more system processing time and bandwidth than the system processing time and bandwidth required to load the log group into memory (and write the log group to storage) only once.
[0021] According to some embodiments of the present disclosure, a deduplication storage system may perform a housekeeping operation, which includes sorting a set of indexes according to log groups associated with the indexes, and then loading the indexes into a memory according to the sorting order of the indexes. During the processing of the indexes associated with each log group, the log group may be maintained (or "fixed" in this article) in the memory (the log group is the "fixed" log group in this article). The fixed log group may store changes to the reference counts included in the associated indexes. In some embodiments, a countdown counter may be initialized with the number of associated indexes, the associated indexes having changes to their reference counts. When each index is completed, the countdown counter may be decremented by one. Therefore, when the countdown counter is equal to zero, the log group has been updated to include all reference count changes of the associated indexes, and in response, the log group is removed from the memory and written to the storage device. In this way, the disclosed technology can reduce the number of instances of loading log groups into the memory (and writing log groups to the storage device), and thereby can improve the performance of the deduplication storage system.
[0022] Figure 1 - Sample storage system
[0023] Figure 1An example of a storage system 100 including a storage controller 110, a memory 115, and a persistent storage device 140 according to some embodiments is shown. As shown, the persistent storage device 140 may include any number of lists 150, indexes 160, and data containers 170. The persistent storage device 140 may include one or more non-transitory storage media, such as a hard disk drive (HDD), a solid state drive (SSD), an optical disk, etc., or a combination thereof. The memory 115 may be implemented with a semiconductor memory such as a random access memory (RAM). In some examples, the storage controller 110 may be implemented via hardware (e.g., electronic circuits) or a combination of hardware and programming (e.g., including at least one processor and instructions executable by the at least one processor and stored on at least one machine-readable storage medium).
[0024] In some implementations, storage system 100 may perform deduplication on stored data. For example, storage controller 110 may divide an input data stream into data units, and may store at least one copy of each data unit in data container 170 (e.g., by appending the data unit to the end of container 170). In some examples, each data container 170 may be divided into multiple parts (also referred to herein as "entities").
[0025] In one or more embodiments, the storage controller 110 may generate a fingerprint for each data unit. For example, the fingerprint may include a complete or partial hash value based on the data unit. In order to determine whether the incoming data unit is a replica of a stored data unit, the storage controller 110 may compare the fingerprint generated for the incoming data unit with the fingerprint of the stored data unit. If the comparison produces a match, the storage controller 110 may determine that the storage system 100 has stored a replica of the incoming data unit.
[0026] like Figure 1 As shown, the persistent storage device 140 can store a list 150, an index 160, a data container 170, and a log group 120. In some embodiments, the storage controller 110 can generate the list 150 to record the order in which the data units are received. Further, the list 150 may include a pointer or other information indicating the index 160 associated with each data unit. In some embodiments, the associated index 160 may indicate the storage location of the data unit. For example, the associated index 160 may include information that specifies that the data unit is stored in an entity at a specific offset and the entity is stored in the data container 170 at a specific offset. Further, the index 160 may include a reference count indicating the number of lists 150 that reference each data unit.
[0027] In some embodiments, the storage controller 110 may receive a read request to access the stored data, and in response may access the manifest 150 to determine the sequence of data units that make up the original data. The storage controller 110 may then use the pointer data included in the manifest 150 to identify the index 160 associated with the data unit. Further, the storage controller 110 may use the information included in the identified index 160 (as well as the information included in the manifest 150) to determine the storage location of the data unit (e.g., data container 170, entity, offset, etc.), and may then read the data unit from the determined location.
[0028] In some implementations, a log 130 may be associated with each index 160. Each log 130 may include information indicating changes to data stored in the index 160 associated with the log 130. For example, when the copy of the index 160 present in the storage 115 is modified to reflect a change to metadata, the change may also be recorded as an entry in the associated log 130. In some implementations, multiple logs 130 may be grouped into log groups 120 that are associated with a single file or object stored in the deduplication system. For example, multiple logs may correspond to an index that stores metadata associated with a single file.
[0029] In some embodiments, the storage controller 110 may perform housekeeping operations on a batch of manifests 150 (e.g., in response to a command or request, based on a periodic schedule, etc.). The housekeeping operations may involve updating reference counts (e.g., included in the indexes 160) to reflect the removal of (multiple) data units from the manifests 150 (e.g., due to changes to the data stream or project represented by the manifests 150). In some embodiments, the storage controller 110 may identify a set of indexes 160 referenced by the batch of manifests 150 for the housekeeping operations, and may generate a work map 180 indicating the reference count changes in each index 160 referenced by the batch of manifests 150. Further, the storage controller 110 may use a stored lookup table 186 to identify the log packets 120 associated with those indexes 160, and may sort the indexes 160 according to the log packets 120 associated with the indexes 160 (e.g., according to identifiers of the log packets 120).
[0030] In some embodiments, the storage controller 110 may load the log group 120 into the memory 115 and set the countdown counter 182 (“CD counter”) to the number of indexes 160 associated with the log group 120. The storage controller 110 may then process the indexes 160 according to the sorted order, which includes: for each index 160, updating the log group 120 according to the work map 180 to include the reference count changes of the index 160. For each index 160 that has been completed, the storage controller 110 may decrement the countdown counter 182 by one. When the countdown counter 182 reaches zero (i.e., the log group 120 has been updated to include all reference count changes of its associated index 160), the storage controller 110 writes the log group 120 to the persistent storage device 140 and removes the log group 120 from the memory 115. In this manner, the storage controller 110 can reduce the number of times that individual logs 130 (and log groups 120) are loaded into the memory 115 and written to the persistent storage device 140 during the housekeeping process. The disclosed housekeeping techniques will be described below with reference to Figures 2 to 8 Further discussion.
[0031] Figure 2 - Example data structure
[0032] Reference now Figure 2 , shows a diagram of an example data structure 200 used in deduplication according to some embodiments. As shown, data structure 200 may include item metadata 202, inventory records 210, container indexes 220, and containers 250. In some embodiments, item metadata 202 may include multiple inventory records 210, and lookup tables 205. In some examples, inventory records 210, container indexes 220, containers 250, and lookup tables 205 may generally correspond to inventory 150, indexes 160, data containers 170, and lookup tables 186 (e.g., Figure 1 In some examples, data structure 200 may be stored by storage controller 110 (eg, Figure 1 as shown) to generate and / or manage.
[0033] like Figure 2As shown, in some examples, the manifest record 210 may include various fields, such as offset, length, container index, and unit address or fingerprint. In some embodiments, each container index 220 may include any number of data unit records 230 and entity records 240. Each data unit record 230 may include various fields, such as fingerprint (e.g., hash of the data unit), unit address, entity identifier, unit offset (i.e., offset of the data unit within the entity), reference count value, unit length, etc. or a combination thereof. In some examples, the reference count value may indicate the number of manifest records 210 that reference the data unit record 230. Further, each entity record 240 may include various fields, such as entity identifier, entity offset (i.e., offset of the entity within the container), storage length (i.e., length of the data unit within the entity), decompressed length, checksum value, and compression / encryption information (e.g., compression type, encryption type, etc.). In some embodiments, each container 250 may include any number of entities 260, and each entity 260 may include any number of stored data units.
[0034] In one or more embodiments, the data structure 200 can be used to obtain stored deduplicated data. For example, a read request can specify the offset and length of the data in a given file. These request parameters can be matched with the offset and length fields of a specific inventory record 210. The container index and unit address of the specific inventory record 210 can then be matched with the specific data unit record 230 included in the container index 220. Further, the entity identifier of the specific data unit record 230 can be matched with the entity identifier of the specific entity record 240. In addition, one or more other fields of the specific entity record 240 (e.g., entity offset, storage length, checksum, etc.) can be used to identify the container 250 and the entity 260, and then the data unit can be read from the identified container 250 and the entity 260.
[0035] In some embodiments, the lookup table 205 can be a storage structure that identifies an index and its associated log grouping. For example, the lookup table 205 can include multiple entries, each entry specifying a particular index and also specifying a particular log grouping that includes a log for storing metadata changes for the particular index. In some embodiments, each entry can be added to the lookup table 205 when the log grouping is initially assigned to the index (e.g., when the index is created). Figure 5A An example of the lookup table 205 is discussed. Although for simplicity Figure 2, only one of each is shown, but the data structure 200 may include multiple instances of item metadata 202, each instance including or pointing to one or more manifest records 210. In this example, the data structure 200 may include multiple manifest records 210. The manifest record 210 may reference multiple container indexes 220, each container index corresponding to one of the multiple containers 250. Each container index 220 may include one or more data unit records 230 and one or more entity records 240.
[0036] Figure 3 - Example data structure
[0037] Reference now Figure 3 , shows a diagram of a memory 115 including a log group 310 and a plurality of indexes 330. As shown, the log group 310 includes a plurality of logs 320. In some examples, the log group 310, the log 320, and the index 330 may generally correspond to the log group 120, the log 130, and the index 160, respectively (e.g., Figure 1 An example implementation scheme is shown.
[0038] In some implementations, each log 320 may be associated with a corresponding index 330 and may record changes to metadata stored in the corresponding index 330. Further, for each log group 310, all corresponding indexes 330 may be associated with a single storage object (e.g., user backups, documents, database tables, data files, etc.). For example, all corresponding indexes 330 may include a list of metadata stored in a deduplication system (e.g., Figure 1 In some embodiments, the association between index 330 and log group 310 can be recorded in a stored lookup table (e.g., Figure 1 In the entry of the stored lookup table 186) shown in .
[0039] In some embodiments, each log 320 may include or be associated with a version number 325. Further, each index 330 may include or be associated with a version number 335. In some embodiments, version number 325 may be compared to version number 335 to determine whether log 320 or an associated index 330 reflects the latest version of the metadata. For example, if version number 325 is greater than version number 335, it may be determined that the change data included in log 320 reflects a newer metadata state than the metadata stored in index 330. If so, index 330 may be updated to include the changes recorded in log 320. However, if version number 325 is less than version number 335, it may be determined that the change data included in log 320 reflects an older metadata state than the metadata stored in index 330. In this case, log 320 may be cleared without updating index 330. In some embodiments, log 320 or an associated index 330 may be cleared in response to loading log 320 or an associated index 330 from a persistent storage device into memory (e.g., from persistent storage device 140 to memory 115, such as Figure 1 As shown) to perform a comparison between version number 325 and version number 335.
[0040] In one or more embodiments, the number of logs 320 included in the log grouping 310 may be specified in a stored parameter (e.g., a user setting, a configuration variable, etc.). In some examples, the parameter may be adjusted or regulated to modify the performance characteristics of input / output (I / O) operations in the storage system. For example, the parameter may be increased to attempt to obtain a relatively lower frequency of relatively larger size write operations. In another example, the parameter may be decreased to attempt to obtain a relatively higher frequency of relatively smaller size write operations.
[0041] Figure 4 - Example metadata housekeeping process
[0042] Reference now Figure 4 , showing a process 400 of example metadata housekeeping according to some embodiments. Process 400 may be performed by storage controller 110 executing instructions. Process 400 may be implemented in hardware or a combination of hardware and programming (e.g., machine-readable instructions executable by (multiple) processors). The machine-readable instructions may be stored in a non-transitory computer-readable medium such as an optical storage device, a semiconductor storage device, or a magnetic storage device. The machine-readable instructions may be executed by a single processor, multiple processors, a single processing engine, multiple processing engines, etc. For ease of illustration, reference is made below to showing an example according to some embodiments. Figures 1 to 3 4 to describe the details of process 400. However, other implementations are possible.
[0043] Block 410 may include loading a batch of manifests into memory during housekeeping operations. Block 415 may include identifying indexes referenced in the batch of manifests and loading those indexes into memory. For example, referring to Figure 1 , the storage controller 110 may receive a command or request (e.g., from an internal process, a periodic timer, a client, etc.) to perform a housekeeping process on a batch of manifests 150 (e.g., to decrement a reference count for data units that are no longer included in the manifests 150). In response to the command or request, the storage controller 110 may identify a set of indexes 160 referenced by the batch of manifests 150, and may load the identified indexes 160 into the memory 115.
[0044] Reference again Figure 4 , block 420 may include generating a working map in memory to record reference count changes in each index. Block 425 may include unloading the batch of manifests from memory. For example, referring to Figure 1 , the storage controller 110 can use the batch of manifests 150 to determine the reference count changes for each index 160 (e.g., for each data unit referenced by the index 160), and can store this information in the working map 180. After the changes associated with each manifest 150 are included in the working map 180, the storage controller 110 can remove the manifest 150 from the memory 115.
[0045] Reference again Figure 4 , block 430 may include using a stored lookup table to identify log groups associated with an index. Block 435 may include sorting the index into a sorted order according to the associated log groups. Block 440 may include, for each log group, determining a count of the index associated with the log group. For example, referring to Figure 1 , the storage controller 110 can use the stored lookup table 186 to identify the log groups 120 associated with the indexes 160, and can sort the indexes 160 according to the log groups 120 associated with the indexes 160 (e.g., according to the identifiers of the log groups 120). The storage controller 110 can also determine, for each log group 120, the number of associated indexes 160 that are included in the working map (i.e., have reference counts that are modified by the housekeeping process).
[0046] Reference again Figure 4, at block 450, a loop (defined by blocks 450, 460, 465, 470, 475, and 480) may be entered to process each index in the sorted order (determined at block 435). Block 460 may include loading the log packet into memory if the current index is the initial (i.e., first) index to be processed for a given log packet, and setting a countdown counter to the number of indices (determined at block 440). For example, referring to Figure 1 , the storage controller 110 may determine that a new index 160 is being processed and that this new index 160 is the first index 160 to be processed in sorted order for a particular log group 120. Accordingly, the storage controller 110 may load the log group 120 into the memory 115 and may set the countdown counter 182 (“CD counter”) equal to the count of the index 160 associated with the log group 120. In some implementations, the storage controller 110 may maintain or “pin” the log group 120 in the memory 115 until all reference count changes have been included in the log group 120.
[0047] Reference again Figure 4 , block 465 may include updating the log group to store the reference count changes from the working map. Block 470 may include decrementing the countdown counter when the change to the index is complete. Block 475 may include writing the current log group to storage and removing the current log group from memory when the countdown counter reaches zero. For example, referring to Figure 1 , the storage controller 110 may update the log group 120 pinned in the memory 115 to include the reference count changes for the current index 160, as indicated by the working map 180. Once all changes to the current index 160 are complete (i.e., stored in the log group 120), the storage controller 110 may decrement the countdown counter 182 by one. If the countdown counter 182 reaches zero (i.e., the log group 120 has been updated to include all reference count changes to the associated index 160), the storage controller 110 may write the log group 120 to the persistent storage 140, and the log group 120 may be removed from the memory 115.
[0048] Reference again Figure 4 , decision block 480 may include determining whether all indexes have been processed. If so, process 400 may be completed. Otherwise, if all indexes have not been processed, process 400 may return to block 450 (i.e., begin processing another index). For example, referring to Figure 1, the storage controller 110 can continue to process the indexes 160 according to the sorted order until all indexes 160 are processed. In this way, the storage controller 110 can perform a housekeeping process with a reduced number of instances of loading the log packets 120 into the memory 115 and a reduced number of instances of writing the log packets 160 to the persistent storage device 140.
[0049] FIG. 5A to FIG. 5B - Example data structure
[0050] Reference now Figure 5A , an example implementation of a lookup table 186 is shown. As shown, the lookup table 186 may include multiple entries or rows. Each entry may correspond to a particular container index. Further, each entry may identify a log grouping assigned to a particular container index. In some implementations, each entry may be added to the lookup table 186 when the log grouping is initially assigned to the index (e.g., when the index is created). Further, in some implementations, the lookup table 186 may be persistently stored in the project metadata (e.g., in the persistent storage device 140 shown in the figure).
[0051] Reference now Figure 5B , shows an example implementation of a work map 180. As shown, the work map 180 may include a plurality of entries or rows, each entry corresponding to a particular reference count included in a particular container index (i.e., for a particular address or location). Further, each entry may specify an amount by which each reference count is to be changed. In some implementations, each entry may be added to the work map 180 during a housekeeping process. For example, referring to Figure 1 , storage controller 110 may use manifest 150 loaded into memory to determine the reference count changes for each index 160 (e.g., for each data unit referenced by index 160), and may store this information in a corresponding entry of working map 180. In some implementations, working map 180 may be stored only in memory 115 and may be deleted after housekeeping procedures are completed.
[0052] Figure 6 - Example machine-readable medium
[0053] Figure 6 A machine-readable medium 600 storing instructions 610-630 according to some embodiments is shown. The instructions 610-630 may be executed by a single processor, multiple processors, a single processing engine, multiple processing engines, etc. The machine-readable medium 600 may be a non-transitory storage medium, such as an optical storage medium, a semiconductor storage medium, or a magnetic storage medium.
[0054] Instructions 610 may be executed to detect a housekeeping operation to perform an update on data of a set of container indexes of stored deduplicated data. Instructions 620 may be executed to identify, in response to detecting the housekeeping operation, a plurality of container indexes associated with a particular log grouping in the set of container indexes, the particular log grouping including a plurality of logs to respectively store updates to data of the plurality of container indexes. Instructions 630 may be executed to maintain the particular log grouping loaded into the memory until all updates to the plurality of container indexes by the housekeeping operation have been stored in corresponding logs of the particular log grouping.
[0055] For example, refer to Figure 1 , the storage controller 110 may receive a command or request to perform a housekeeping process for a batch of manifests 150. In response, the storage controller 110 may identify a set of indexes 160 referenced by the batch of manifests 150. Further, the storage controller 110 may identify log groups 120 associated with the indexes 160, and may sort the indexes 160 according to the log groups 120 associated with the indexes 160. In addition, the storage controller 110 may load and maintain the log groups 120 in the memory 115 until all reference count changes have been included in the log groups 120.
[0056] Figure 7 - Sample computing device
[0057] Figure 7 1 shows a schematic diagram of an example computing device 700. In some examples, computing device 700 may generally correspond to storage system 100 (eg, Figure 1 As shown, computing device 700 may include hardware processor 702, memory 704, and machine-readable storage device 705 including instructions 710-730. Machine-readable storage device 705 may be a non-transitory medium. Instructions 710-730 may be executed by hardware processor 702 or by a processing engine included in hardware processor 702.
[0058] Instructions 710 may be executed to detect a housekeeping operation to perform an update on data of a set of container indexes of stored deduplicated data. Instructions 720 may be executed to identify, in response to detecting the housekeeping operation, a plurality of container indexes associated with a particular log grouping in the set of container indexes, the particular log grouping including a plurality of logs to respectively store updates to data of the plurality of container indexes. Instructions 730 may be executed to maintain the particular log grouping loaded into the memory until all updates to the plurality of container indexes by the housekeeping operation have been stored in corresponding logs of the particular log grouping.
[0059] Figure 8 - Example process
[0060] Reference now Figure 8 , shows an example process 800 according to some embodiments. In some examples, the storage controller 110 ( Figure 1 800 can be implemented in hardware or a combination of hardware and programming (e.g., machine-readable instructions that can be executed by (multiple) processors). The machine-readable instructions can be stored in a non-transitory computer-readable medium such as an optical storage device, a semiconductor storage device, or a magnetic storage device. The machine-readable instructions can be executed by a single processor, multiple processors, a single processing engine, multiple processing engines, etc. For ease of explanation, reference may be made to an example according to some embodiments. Figures 1 to 3 8 is used to describe the details of process 800. However, other implementations are possible.
[0061] Block 810 may include detecting, by a storage controller of a deduplication storage system, a housekeeping operation to perform updates to data of a set of container indexes of stored deduplication data. Block 820 may include, in response to detecting the housekeeping operation, the storage controller identifying, in the set of container indexes, a plurality of container indexes associated with a particular log grouping, the particular log grouping including a plurality of logs to respectively store updates to the data of the plurality of container indexes. Block 830 may include maintaining, by the storage controller, the particular log grouping loaded into a memory until all updates to the plurality of container indexes by the housekeeping operation have been stored in corresponding logs of the particular log grouping. After block 830, process 800 may be complete.
[0062] According to the embodiments described herein, a deduplication storage system may perform a housekeeping operation including sorting a set of indexes according to log groups associated with the indexes and then loading the indexes into a memory according to the sorting order of the indexes. During processing of the indexes associated with each log group, the log group may be maintained in a memory. A fixed log group may store changes to reference counts included in the associated indexes. In some embodiments, a countdown counter may be initialized with the number of associated indexes having changes to their reference counts. When each index is completed, the countdown counter may be decremented. Therefore, when the countdown counter is equal to zero, the log group has been updated to include all reference count changes of the associated indexes. Accordingly, the log group is removed from the memory and written to a storage device. In this way, the disclosed technology may reduce the number of instances of loading log groups into a memory and the number of instances of writing log groups to a storage device, and thereby may improve the performance of the deduplication storage system.
[0063] Note that although Figures 1 to 8Various examples are shown, but the embodiments are not limited in this regard. Figure 1 , it is contemplated that the storage system 100 may include additional devices and / or components, fewer components, different components, different arrangements, etc. In another example, it is contemplated that the functionality of the storage controller 110 described above may be included in any other engine or software of the storage system 100. Other combinations and / or variations are also possible.
[0064] Data and instructions are stored in corresponding storage devices implemented as one or more computer-readable or machine-readable storage media. Storage media include various forms of non-transitory memory, including: semiconductor memory devices, such as dynamic random access memory or static random access memory (DRAM or SRAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), and flash memory; magnetic disks, such as hard disks, floppy disks, and removable disks; other magnetic media, including magnetic tape; optical media, such as compact disks (CDs) or digital video disks (DVDs); or other types of storage devices.
[0065] Note that the instructions discussed above may be provided on one computer-readable or machine-readable storage medium, or alternatively, may be provided on multiple computer-readable or machine-readable storage media distributed in a large system with potentially multiple nodes. Such one or more computer-readable or machine-readable storage media are considered to be part of an article (or product). An article or product may refer to a single component or multiple components of any manufacture. One or more storage media may be located in a machine running machine-readable instructions, or at a remote site, from which machine-readable instructions may be downloaded over a network for execution.
[0066] In the foregoing description, many details are set forth to enable an understanding of the subject matter disclosed herein. However, embodiments may be practiced without some of these details. Other embodiments may include modifications and variations of the details discussed above. The appended claims are intended to cover such modifications and variations.
Claims
1. A storage system, comprising: processor; Memory; as well as a machine-readable storage device storing instructions executable by the processor to: detecting a housekeeping operation to perform a set of housekeeping updates on a set of container indexes, each container index including storage metadata for deduplicated data units; In response to detecting the housekeeping operation, identifying, from the set of container indexes, a subset of container indexes associated with a particular log grouping, the particular log grouping comprising a plurality of logs to store updates to storage metadata included in the subset of container indexes, wherein each log of the particular log grouping specifically stores updates to storage metadata included in a different container index of the subset of container indexes; as well as The particular log grouping is maintained loaded in the memory during the housekeeping operation until all subsets of the housekeeping updates have been recorded in a corresponding log of the particular log grouping.
2. The storage system according to claim 1, wherein: The housekeeping operation updates reference counts included in the set of container indexes based on a batch of manifests, and wherein the set of container indexes are referenced by the batch of manifests.
3. The storage system of claim 1 , comprising instructions executable by the processor to: loading the set of container indexes into the memory; determining a plurality of reference count changes associated with the set of container indexes; and A working map is generated based on the plurality of reference count changes.
4. The storage system of claim 1 , comprising instructions executable by the processor to: identifying, using a stored lookup table, a plurality of log packets associated with the set of container indexes; and The set of container indexes are sorted into a sorted order according to log groups associated with the set of container indexes.
5. The storage system of claim 4, comprising instructions executable by the processor to: For each log grouping of the plurality of log groups, a count of a container index associated with the log grouping is determined.
6. The storage system of claim 5, comprising instructions executable by the processor to: A specific container index is selected according to the sorted order, wherein The specific container index is associated with the specific log grouping; and In response to determining that the specific container index is an initial container index to be processed for the specific log group: loading the specific log group into the memory; and A countdown counter is set equal to the count of the container index associated with the particular log packet.
7. The storage system of claim 6, comprising instructions executable by the processor to: updating the particular log grouping to store a reference count change associated with the particular container index; and In response to determining that the particular log packet includes all reference count changes associated with the particular container index, the countdown counter is decremented.
8. The storage system of claim 7, comprising instructions executable by the processor to: In response to determining that the countdown counter has reached zero: writing the particular log group to a persistent storage device; and The particular log group is removed from the memory.
9. A method comprising: detecting, by a storage controller of a deduplication storage system, a housekeeping operation to perform a set of housekeeping updates on a set of container indexes, each container index including storage metadata for a deduplicated data unit; In response to detecting the housekeeping operation, the storage controller identifies, from the set of container indexes, a subset of container indexes associated with a particular log grouping, the particular log grouping comprising a plurality of logs to store updates to storage metadata included in the subset of container indexes, wherein each log of the particular log grouping specifically stores updates to storage metadata included in a different container index of the subset of container indexes; as well as The particular log grouping is maintained loaded in memory by the storage controller during the housekeeping operation until all subsets of the housekeeping updates have been recorded in a corresponding log of the particular log grouping.
10. The method of claim 9, wherein: The housekeeping operation updates reference counts included in the set of container indexes based on a batch of manifests, and wherein the set of container indexes are referenced by the batch of manifests.
11. The method of claim 9, further comprising: loading the set of container indexes into the memory; determining a plurality of reference count changes associated with the set of container indexes; as well as A working map is generated based on the plurality of reference count changes.
12. The method of claim 9, further comprising: identifying, using a stored lookup table, a plurality of log packets associated with the set of container indexes; as well as The set of container indexes are sorted into a sorted order according to log groups associated with the set of container indexes.
13. The method of claim 12, further comprising: For each log grouping of the plurality of log groups, determining a count of a container index associated with the log grouping; selecting a specific container index according to the sorted order, wherein the specific container index is associated with the specific log grouping; and Determining whether the specific container index is an initial container index to be processed for the specific log group; as well as In response to determining that the specific container index is the initial container index to be processed for the specific log group: loading the specific log group into the memory; and A countdown counter is set equal to the count of the container index associated with the particular log packet.
14. The method of claim 13, further comprising: updating the particular log grouping to include a reference count change associated with the particular container index; as well as In response to determining that the particular log packet includes all reference count changes associated with the particular container index, the countdown counter is decremented.
15. The method of claim 14, further comprising: determining whether the countdown counter has reached zero; as well as In response to determining that the countdown counter has reached zero: Writing the specific log group to a persistent storage device; as well as The particular log group is removed from the memory.
16. A non-transitory machine-readable medium storing instructions that, when executed, cause a processor to: detecting a housekeeping operation to perform a set of housekeeping updates on a set of container indexes, each container index including storage metadata for deduplicated data units; In response to detecting the housekeeping operation, identifying a subset of container indexes associated with a particular log grouping from the set of container indexes, the particular log grouping including a plurality of logs to store updates to storage metadata included in the subset of container indexes, wherein Each log of the particular log grouping specifically stores updates to storage metadata included in a different container index of the subset of container indexes; as well as The particular log grouping is maintained loaded in memory during the housekeeping operation until all subsets of the housekeeping updates have been recorded in a corresponding log of the particular log grouping.
17. The non-transitory machine-readable medium of claim 16, wherein: The housekeeping operation updates reference counts included in the set of container indexes based on a batch of manifests, and wherein the set of container indexes are referenced by the batch of manifests.
18. The non-transitory machine-readable medium of claim 16, comprising instructions that when executed cause the processor to: loading the set of container indexes into the memory; determining a plurality of reference count changes associated with the set of container indexes; generating a working map based on the plurality of reference count changes; identifying, using a stored lookup table, a plurality of log packets associated with the set of container indexes; as well as The set of container indexes are sorted into a sorted order according to log groups associated with the set of container indexes.
19. The non-transitory machine-readable medium of claim 18, comprising instructions that when executed cause the processor to: For each log grouping of the plurality of log groups, determining a count of a container index associated with the log grouping; A specific container index is selected according to the sorted order, wherein The specific container index is associated with the specific log grouping; and In response to determining that the specific container index is an initial container index to be processed for the specific log group: loading the specific log group into the memory; and A countdown counter is set equal to the count of the container index associated with the particular log packet.
20. The non-transitory machine-readable medium of claim 19, comprising instructions that when executed cause the processor to: updating the particular log grouping to store a reference count change associated with the particular container index; In response to determining that the particular log packet includes all reference count changes associated with the particular container index, decrementing the countdown counter; and In response to determining that the countdown counter has reached zero: writing the particular log group to a persistent storage device; and The particular log group is removed from the memory.
