# US 2022/0291852 A1 · Devices, System and Methods for Optimization in Deduplication

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0291852 A1
- Document ID: US20220291852A1
- Status: Published application
- Kind: A1
- Application number: 17/805,053
- Filed: 2022-06-02
- Published: 2022-09-15
- Earliest claimed: 2019-12-03
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yaron Mor; Assaf Natanzon; Aviv Kuvent; Asaf Yeger
- Web page: https://patentgrep.com/patent/US20220291852A1

## CPC

- G06F 3/0641: {De-duplication techniques}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0611: {in relation to response time}
- G06F 3/0638: {Organizing or formatting or addressing of data}
- G06F 3/0643: {Management of files}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and a global server for deduplicating multiple storage servers are disclosed. The global server maintains information regarding a set of hash values, each hash value being associated with a data chunk of data stored in the global server and/or the storage servers, receive, from one or more of the storage servers, a request to modify the information with respect to one or more hash values, accumulate and sort metadata related to the one or more requests, modifies the information with respect to the one or more hash values, based on the accumulated metadata when the accumulated metadata reaches a determined size.

## Claims

### Claim 1

A global server for deduplicating multiple storage servers, wherein the global server comprising:
a memory; and
a processor coupled to the memory and configured to:
receive, from one or more of the storage servers, a request to modify the information with respect to one or more hash values from a set of hash values, wherein the set of hash values is maintained, and each hash value is associated with a data chunk of data stored in the global server and/or the multiple storage servers;
accumulate and sort metadata related to the one or more requests, wherein the metadata comprises, for each request, a hash value indicated by the request and an indication of the storage server that sent the request; and
in response to the accumulated metadata reaches a determined size, modify the information with respect to the one or more hash values, based on the accumulated metadata.

### Claim 2 (depends on 1)

The global server according to claim 1, wherein the processor is further configured to:
accumulate the metadata in the memory.

### Claim 3 (depends on 2)

The global server according to claim 2, wherein
the global server further comprises a disk storage,
and the processor is further configured to:
dump the accumulated metadata to the disk storage in response to the accumulated metadata reaches the determined size.

### Claim 4 (depends on 3)

The global server according to claim 3, wherein the processor is further configured to:
in response to the accumulated metadata reaches the determined size,
fill the metadata into a first block of a plurality of blocks, wherein each block comprises the same number of chunks, and each chunk is filled with metadata related to one or more requests;
dump the first block to the disk storage; and
in response to a number of blocks dumped to the disk storage exceeds a determined threshold,
modify the information with respect to the one or more hash values, based on the accumulated metadata in the plurality of blocks.

### Claim 5 (depends on 3)

The global server according to claim 3, wherein
the information comprises a hash metadata table including the set of hash values, the hash metadata table being stored in the disk storage.

### Claim 6 (depends on 5)

The global server according to claim 5, the processor is further configured to:
divide the hash metadata table into N parts, N being a positive integer no less than 2, wherein each part of the hash metadata table is associated with a different range of the hash values;
upload a first part of the hash metadata table to the memory, wherein the first part of the hash metadata table is associated with a first range of hash values; and
modify the first part of the hash metadata table based on the accumulated metadata in the plurality of blocks.

### Claim 7 (depends on 6)

The global server according to claim 6, wherein the processor is further configured to:
upload a first chunk, of each block dumped to the disk storage, to the memory;
iterate over the hash values included in the metadata in all uploaded first chunks;
merge the hash values that fall into the first range of hash values; and
modify the first part of the hash metadata table stored in the memory, based on the metadata related to the merged hash values that fall into the first range of hash values.

### Claim 8 (depends on 5)

The global server according to the claim 5, wherein:
the hash metadata table comprises information about each hash value in the set of hash values and information regarding one or more storage servers being registered for that hash value.

### Claim 9 (depends on 8)

The global server according to claim 8, wherein the processor is further configured to:
in response to a metadata, which is related to a first hash value falling into the first range of hash values, comprises a request to add the first hash value:
in response to the first hash value is not included in the first part of the hash metadata table, add the first hash value into the first part of the hash metadata table, create a first water mark associated with the first hash value, and register the storage server that sent the request regarding the first hash value, wherein the first water mark indicating whether a data chunk having the first hash value is highly duplicated among the storage servers;
in response to the first hash value is included in the first part of the hash metadata table, increase a value of the first water mark associated with the first hash value, and register the storage server that sent the request regarding the first hash value; and/or
in response to a metadata, which is related to a second hash value falling into the first range of hash values, comprises a request to delete the second hash value:
decrease a value of a second water mark associated with the second hash value, and unregister the storage server that sent the request regarding the second hash value, wherein the second water mark indicating whether a data chunk having the second hash value is highly duplicated among the storage servers; and
in response to the value of the second water mark is equal to 0, delete the second hash value from the first part of the hash metadata table.

### Claim 10 (depends on 7)

The global server according to the claim 7, wherein the processor is further configured to:
after merging the hash values included in the metadata in a first chunk of a respective block, which fall into the first range of hash values,
upload a second chunk, of that block, to the memory;
iterate over the hash values included in the metadata in the uploaded second chunk;
merge the hash values that fall into the first range of hash values; and
modify the first part of the hash metadata table stored in the memory, based on the metadata related to the merged hash values that fall into the first range of hash values.

### Claim 11 (depends on 7)

The global server according to the claim 7, wherein the processor is further configured to:
in response to a hash value that does not fall into the first range of hash values is found in a chunk of a block,
stop iterating over the hash values included in the metadata in that chunk.

### Claim 12 (depends on 10)

The global server according to claim 10, wherein the processor is further configured to:
after iterating over the hash values included in the metadata in all uploaded chunks of each block dumped to the disk storage, which fall into the first range of hash values,
persist the modified first part of the hash metadata table to the disk storage;
upload a second part of the hash metadata table to the memory, wherein the second part of the hash metadata table is associated with a second range of hash values; and
modify the second part of the hash metadata table based on the accumulated metadata in the plurality of blocks.

### Claim 13

A system for deduplicating multiple storage servers, comprising a global server and multiple storage servers being configured to send a request to modify information with respect to one or more hash values; wherein the global server is configured to:
receive, from one or more of the multiple storage servers, a request to modify the information with respect to one or more hash values from a set of hash values, wherein the set of hash values is maintained, and each hash value is associated with a data chunk of data stored in the global server and/or the multiple storage servers;
accumulate and sort metadata related to the one or more requests, wherein the metadata comprises, for each request, a hash value indicated by the request and an indication of the storage server that sent the request; and
in response to the accumulated metadata reaches a determined size, modify the information with respect to the one or more hash values, based on the accumulated metadata.

### Claim 14 (depends on 13)

The system according to claim 13, wherein the global server is further configured to:
accumulate the metadata in the memory.

### Claim 15 (depends on 14)

The system according to claim 14, wherein the global server further comprises a disk storage, and the global server is further configured to:
dump the accumulated metadata to the disk storage in response to the accumulated metadata reaches the determined size.

### Claim 16 (depends on 15)

The system according to claim 15, wherein the global server is further configured to:
in response to the accumulated metadata reaches the determined size,
fill the metadata into a first block of a plurality of blocks, wherein each block comprises the same number of chunks, and each chunk is filled with metadata related to one or more requests;
dump the first block to the disk storage; and
in response to a number of blocks dumped to the disk storage exceeds a determined threshold,
modify the information with respect to the one or more hash values, based on the accumulated metadata in the plurality of blocks.

### Claim 17

A method for deduplicating multiple storage servers, wherein the method is performed by a global server, and the method comprising:
receiving, from one or more of the storage servers, a request to modify the information with respect to one or more hash values from a set of hash values, wherein the set of hash values is maintained, and each hash value is associated with a data chunk of data stored in the global server and/or the storage servers;
accumulating and sorting metadata related to the one or more requests, wherein the metadata comprises, for each request, a hash value indicated by the request and an indication of the storage server that sent the request; and
in response to the accumulated metadata reaches a determined size, modifying the information with respect to the one or more hash values, based on the accumulated metadata.

### Claim 18 (depends on 17)

The method according to claim 17, wherein further comprising:
accumulating, by the global server, the metadata in the memory.

### Claim 19 (depends on 18)

The method according to claim 18, wherein the global server further comprises a disk storage, the method further comprising:
dumping the accumulated metadata (102) to the disk storage (104) in response to the accumulated metadata reaches the determined size.

### Claim 20 (depends on 19)

The method according to claim 19, wherein the method further comprising:
in response to the accumulated metadata reaches the determined size,
filling the metadata into a first block of a plurality of blocks, wherein each block comprises the same number of chunks, and each chunk is filled with metadata related to one or more requests;
dumping the first block to the disk storage; and
in response to a number of blocks dumped to the disk storage exceeds a determined threshold,
modifying the information with respect to the one or more hash values, based on the accumulated metadata in the plurality of blocks.
