# US 2021/0286781 A1 · Segmented index for data deduplication

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

- Number: US 2021/0286781 A1
- Document ID: US20210286781A1
- Status: Published application
- Kind: A1
- Application number: 17/038,814
- Filed: 2020-09-30
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Nickolay Dalmatov
- Web page: https://patentgrep.com/patent/US20210286781A1

## CPC

- G06F 16/1752: {based on file chunks}
- G06F 16/215: Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A deduplication index is generated having multiple entries, each entry storing a digest of a data block that was previously stored in non-volatile data storage together with a pointer to the location in non-volatile storage at which the data block was previously stored. The entries of the disclosed deduplication index are divided into multiple deduplication index segments. A resident subset of the deduplication index segments is stored in memory of the data storage system. A non-resident subset of the deduplication index segments is stored in non-volatile data storage of the data storage system. Data deduplication is performed for each subsequently received data block for which a digest is generated that matches any one of the digests in the entries of the deduplication index segments that are contained in the resident subset of the deduplication index segments.

## Claims

### Claim 1

A method comprising:
generating a deduplication index having multiple entries, each entry storing a digest of a data block that was previously stored in non-volatile storage and a pointer to a location in non-volatile storage at which the data block was previously stored, wherein the entries of the deduplication index are divided into a plurality of deduplication index segments;
storing a resident subset of the deduplication index segments in memory;
storing a non-resident subset of the deduplication index segments in non-volatile data storage; and
performing data deduplication for each subsequently received data block for which a digest is generated that matches any one of the digests stored in the entries of the deduplication index segments that are contained in the resident subset of the deduplication index segments.

### Claim 2 (depends on 1)

The method of claim 1, wherein each deduplication index segment is made up of entries containing digests generated from data blocks received and stored in the non-volatile data storage during a corresponding one of multiple preceding time periods, together with pointers to the locations in non-volatile data storage at which those data blocks were stored.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
storing digests generated from subsequently received data blocks that do not match any of the digests contained in the entries of the resident subset of the deduplication index segments into entries of an open deduplication index segment also stored in the memory of the data storage system.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
performing data deduplication for each subsequently received data block for which a digest is generated that matches any one of the digests in the entries of the open deduplication index.

### Claim 5 (depends on 4)

The method of claim 4, wherein performing data deduplication for each subsequently received data block having a digest matching any one of the digests stored in the entries in the deduplication index segments contained in the resident subset of the deduplication index segments or in the open deduplication index includes storing, in the non-volatile data storage of the data storage system, a pointer to the location in the non-volatile data storage at which a previously received copy of the subsequently received data block was stored.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
detecting that the open deduplication index segment has reached a predetermined maximum deduplication index segment size; and
in response to detecting that the open deduplication index segment has reached the predetermined maximum deduplication index segment size:
making the open deduplication index segment one of the deduplication index segments in the resident subset of the deduplication index segments, and
allocating a new open deduplication index segment within the memory of the data storage system.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
maintaining usage ratios for the deduplication index segments, such that each deduplication index segment has a usage ratio indicating how often digests in the deduplication index segment match digests of data blocks received by the data storage system; and
in response to the usage ratios for the deduplication index segments, selecting as the resident subset of the deduplication index segments one or more deduplication index segments having relatively higher usage ratios than the other deduplication index segments.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
detecting that a deduplication index segment in the non-resident subset of the deduplication index segments has a higher usage ratio than a usage ratio of one of the deduplication index segments in the resident subset of the deduplication index segments; and
in response to detecting that that the deduplication index segment in the non-resident subset of the deduplication index segments has a higher usage ratio than the usage ratio of the one of the deduplication index segments in the resident subset of the deduplication index segments:
moving the deduplication index segment in the non-resident subset of the deduplication index segments having the higher usage ratio to the resident subset of the deduplication index segments, and
moving the deduplication index segment in the resident subset of the deduplication index segments to the non-resident subset of the deduplication index segments.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
in response to identifying a digest that is contained in both i) an entry in a deduplication index segment in the non-resident subset of the deduplication index segments, and ii) an entry contained in a deduplication index segment in the resident subset of the deduplication index segments, updating a pointer stored in the entry contained in the deduplication index segment contained in the non-resident subset of the deduplication index segments to match a pointer in the entry contained in the deduplication index contained in the resident subset of the deduplication index segments.

### Claim 10 (depends on 8)

The method of claim 8, further comprising:
in response to identifying a digest that is contained in both i) an entry in a deduplication index segment in the non-resident subset of the deduplication index segments, and ii) an entry contained in the open deduplication index segment, removing the entry contained in the open deduplication index segment.

### Claim 11 (depends on 8)

The method of claim 8, further comprising:
in response to detecting deletion of at least one data block that was previously stored in the non-volatile data storage, removing at least one entry storing at least one pointer to the deleted data block from at least one of the deduplication index segments.

### Claim 12

A data storage system comprising:
at least one storage processor including processing circuitry and a memory;
a plurality of data storage drives communicably coupled to the storage processor; and
wherein the memory has program code stored thereon, wherein the program code, when executed by the processing circuitry, causes the processing circuitry to:
generate a deduplication index having multiple entries, each entry storing a digest of a data block that was previously stored in non-volatile storage and a pointer to a location in non-volatile storage at which the data block was previously stored, wherein the entries of the deduplication index are divided into a plurality of deduplication index segments,
store a resident subset of the deduplication index segments in memory,
store a non-resident subset of the deduplication index segments in non-volatile data storage, and
perform data deduplication for each subsequently received data block for which a digest is generated that matches any one of the digests stored in the entries of the deduplication index segments that are contained in the resident subset of the deduplication index segments.

### Claim 13 (depends on 12)

The data storage system of claim 12, further comprising:
wherein each deduplication index segment is made up of entries containing digests generated from data blocks received and stored in the non-volatile data storage during a corresponding one of multiple preceding time periods, together with pointers to the locations in non-volatile data storage at which those data blocks were stored.

### Claim 14 (depends on 13)

The data storage system of claim 13, wherein the program code, when executed by the processing circuitry, further causes the processing circuitry to:
store digests generated from subsequently received data blocks that do not match any of the digests contained in the entries of the resident subset of the deduplication index segments into entries of an open deduplication index segment also stored in the memory of the data storage system.

### Claim 15 (depends on 14)

The data storage system of claim 14, wherein the program code, when executed by the processing circuitry, further causes the processing circuitry to:
perform data deduplication for each subsequently received data block for which a digest is generated that matches any one of the digests in the entries of the open deduplication index.

### Claim 16 (depends on 15)

The data storage system of claim 15, wherein the program code, when executed by the processing circuitry, causes the processing circuitry to perform data deduplication for each subsequently received data block having a digest matching any one of the digests stored in the entries in the deduplication index segments contained in the resident subset of the deduplication index segments or in the open deduplication index at least in part by causing the processing circuitry to store, in the non-volatile data storage of the data storage system, a pointer to the location in the non-volatile data storage at which a previously received copy of the subsequently received data block was stored.

### Claim 17 (depends on 16)

The data storage system of claim 16, wherein the program code, when executed by the processing circuitry, further causes the processing circuitry to:
detect that the open deduplication index segment has reached a predetermined maximum deduplication index segment size; and
in response to detecting that the open deduplication index segment has reached the predetermined maximum deduplication index segment size:
make the open deduplication index segment one of the deduplication index segments in the resident subset of the deduplication index segments, and
allocate a new open deduplication index segment within the memory of the data storage system.

### Claim 18 (depends on 17)

The data storage system of claim 17, wherein the program code, when executed by the processing circuitry, further causes the processing circuitry to:
maintain usage ratios for the deduplication index segments, such that each deduplication index segment has a usage ratio indicating how often digests in the deduplication index segment match digests of data blocks received by the data storage system; and
in response to the usage ratios for the deduplication index segments, select as the resident subset of the deduplication index segments one or more deduplication index segments having relatively higher usage ratios than the other deduplication index segments.

### Claim 19 (depends on 18)

The data storage system of claim 18, wherein the program code, when executed by the processing circuitry, further causes the processing circuitry to:
detect that a deduplication index segment in the non-resident subset of the deduplication index segments has a higher usage ratio than a usage ratio of one of the deduplication index segments in the resident subset of the deduplication index segments; and
in response to detecting that that the deduplication index segment in the non-resident subset of the deduplication index segments has a higher usage ratio than the usage ratio of the one of the deduplication index segments in the resident subset of the deduplication index segments:
move the deduplication index segment in the non-resident subset of the deduplication index segments having the higher usage ratio to the resident subset of the deduplication index segments, and
move the deduplication index segment in the resident subset of the deduplication index segments to the non-resident subset of the deduplication index segments.

### Claim 20

A computer program product including a non-transitory computer readable medium having instructions stored thereon, wherein the instructions, when executed on processing circuitry, cause the processing circuitry to perform the steps of:
generating a deduplication index having multiple entries, each entry storing a digest of a data block that was previously stored in non-volatile storage and a pointer to a location in non-volatile storage at which the data block was previously stored, wherein the entries of the deduplication index are divided into a plurality of deduplication index segments;
storing a resident subset of the deduplication index segments in memory;
storing a non-resident subset of the deduplication index segments in non-volatile data storage; and
performing data deduplication for each subsequently received data block for which a digest is generated that matches any one of the digests stored in the entries of the deduplication index segments that are contained in the resident subset of the deduplication index segments.
