# US 10,956,370 B2 · Techniques for improving storage space efficiency with variable compression size unit

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

- Number: US 10,956,370 B2
- Document ID: US10956370B2
- Status: Granted
- Kind: B2
- Application number: 16/564,466
- Filed: 2019-09-09
- Published: 2020-04-30
- Granted: 2021-03-23
- Earliest claimed: 2018-10-29
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Ivan Bassov; Sorin Faibish; Istvan Gonczi
- Web page: https://patentgrep.com/patent/US10956370B2

## CPC

- G06F 16/1744: {using compression, e.g. sparse files}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/0641: {De-duplication techniques}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 16/1752: {based on file chunks}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for data processing a data set may comprise: performing first processing that forms a first compression unit, wherein the first compression unit includes a data chunks including a first data chunk having a first entropy value less than an entropy threshold, the first processing including: receiving a second data chunk; determining, in accordance with criteria, whether to add the second data chunk to the first compression unit; and responsive to determining to add the second data chunk to the first compression unit, adding the second data chunk to the first compression unit; and compressing the first compression unit as a single compressible unit. The second chunk may be added if its entropy value is less than the entropy threshold and if entropy values of the first and second chunks are similar. The second chunk may be added if the resulting compression unit provides sufficient storage/compression benefit.

## Claims

### Claim 1

A method of processing data for compression comprising:
receiving a first uncompressed data chunk and a compression unit of one or more uncompressed data chunks, wherein a combination of the first uncompressed data chunk and the one or more uncompressed data chunks of the compression unit has a first entropy value, and wherein the compression unit of the one or more uncompressed data chunks has a second entropy value;
determining, using the first entropy value and the second entropy value, whether a first expected compression benefit obtained when compressing the combination of the first uncompressed data chunk and the one or more uncompressed data chunks of the compression unit is greater than a second expected compression benefit obtained when compressing the one or more uncompressed data chunks of the compression unit without the first uncompressed data chunk; and
responsive to determining the first expected compression benefit is greater than the second expected compression benefit, adding the first uncompressed data chunk to the compression unit.

### Claim 2 (depends on 1)

The method of claim 1, wherein said determining, using the first entropy value and the second entropy value, whether the first expected compression benefit is greater than the second expected compression benefit includes:
determining whether the first entropy value, that is associated with the combination of the first uncompressed data chunk and the one or more existing uncompressed data chunks of the compression unit, is smaller than the second entropy value, that is associated with the one or more existing data chunks of the compression unit without the first uncompressed data chunk; and
responsive to determining the first entropy value is smaller than the second entropy value, adding the first uncompressed data chunk to the compression unit.

### Claim 3 (depends on 1)

The method of claim 1, wherein said determining whether the first expected compression benefit obtained is greater than the second expected compression benefit includes:
determining whether a first compression ratio, that is associated with the combination of the first uncompressed data chunk and the one or more existing uncompressed data chunks of the compression unit, is larger than a second compression ratio, that is associated with the one or more existing data chunks of the compression unit without the first uncompressed data chunk; and
responsive to determining the first compression ratio is larger than the second compression ratio, adding the first uncompressed data chunk to the compression unit.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first compression ratio is a first estimated compression ratio determined using the first entropy value and wherein the second compression ratio is a second estimated compression ratio determined using the second entropy value.

### Claim 5 (depends on 4)

The method of claim 4, wherein a first estimated compressed size is determined using the first entropy value, and the first estimated compressed size is used in determining the first estimated compression ratio.

### Claim 6 (depends on 5)

The method of claim 5, wherein a second estimated compressed size is determined using the second entropy value, and the second estimated compressed size is used in determining the second estimated compression ratio.

### Claim 7 (depends on 1)

The method of claim 1, wherein responsive to determining the first expected compression benefit is not greater than the second expected compression benefit, not adding the first uncompressed data chunk to the compression unit and performing other processing comprising:
forming second compression unit including the first uncompressed data chunk; and
compressing the compression unit as a single compressible unit.

### Claim 8 (depends on 1)

The method of claim 1, wherein the method is performed as part of inline processing of an I/O path.

### Claim 9 (depends on 1)

The method of claim 1, wherein the method is performed offline and not part of inline processing of an I/O path.

### Claim 10

A system comprising:
one or more processors; and
a memory comprising code stored therein that, when executed by at least a first of the one or more processors, performs a method of processing data for compression comprising:
receiving a first uncompressed data chunk and a compression unit of one or more uncompressed data chunks, wherein a combination of the first uncompressed data chunk and the one or more uncompressed data chunks of the compression unit has a first entropy value, and wherein the compression unit of the one or more uncompressed data chunks has a second entropy value;
determining, using the first entropy value and the second entropy value, whether a first expected compression benefit obtained when compressing the combination of the first uncompressed data chunk and the one or more uncompressed data chunks of the compression unit is greater than a second expected compression benefit obtained when compressing the one or more uncompressed data chunks of the compression unit without the first uncompressed data chunk; and
responsive to determining the first expected compression benefit is greater than the second expected compression benefit, adding the first uncompressed data chunk to the compression unit.

### Claim 11

A non-transitory computer readable medium comprising code stored thereon that, when executed, performs a method of processing data for compression comprising:
receiving a first uncompressed data chunk and a compression unit of one or more uncompressed data chunks, wherein a combination of the first uncompressed data chunk and the one or more uncompressed data chunks of the compression unit has a first entropy value, and wherein the compression unit of the one or more uncompressed data chunks has a second entropy value;
determining, using the first entropy value and the second entropy value, whether a first expected compression benefit obtained when compressing the combination of the first uncompressed data chunk and the one or more uncompressed data chunks of the compression unit is greater than a second expected compression benefit obtained when compressing the one or more uncompressed data chunks of the compression unit without the first uncompressed data chunk; and
responsive to determining the first expected compression benefit is greater than the second expected compression benefit, adding the first uncompressed data chunk to the compression unit.

### Claim 12 (depends on 11)

The non-transitory computer readable medium of claim 11, wherein said determining, using the first entropy value and the second entropy value, whether the first expected compression benefit is greater than the second expected compression benefit includes:
determining whether the first entropy value, that is associated with the combination of the first uncompressed data chunk and the one or more existing uncompressed data chunks of the compression unit, is smaller than the second entropy value, that is associated with the one or more existing data chunks of the compression unit without the first uncompressed data chunk; and
responsive to determining the first entropy value is smaller than the second entropy value, adding the first uncompressed data chunk to the compression unit.

### Claim 13 (depends on 11)

The non-transitory computer readable medium of claim 11, wherein said determining whether the first expected compression benefit obtained is greater than the second expected compression benefit includes:
determining whether a first compression ratio, that is associated with the combination of the first uncompressed data chunk and the one or more existing uncompressed data chunks of the compression unit, is larger than a second compression ratio, that is associated with the one or more existing data chunks of the compression unit without the first uncompressed data chunk; and
responsive to determining the first compression ratio is larger than the second compression ratio, adding the first uncompressed data chunk to the compression unit.

### Claim 14 (depends on 13)

The non-transitory computer readable medium of claim 13, wherein the first compression ratio is a first estimated compression ratio determined using the first entropy value and wherein the second compression ratio is a second estimated compression ratio determined using the second entropy value.

### Claim 15 (depends on 14)

The non-transitory computer readable medium of claim 14, wherein a first estimated compressed size is determined using the first entropy value, and the first estimated compressed size is used in determining the first estimated compression ratio.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein a second estimated compressed size is determined using the second entropy value, and the second estimated compressed size is used in determining the second estimated compression ratio.

### Claim 17 (depends on 11)

The non-transitory computer readable medium of claim 11, wherein responsive to determining the first expected compression benefit is not greater than the second expected compression benefit, not adding the first uncompressed data chunk to the compression unit and performing other processing comprising:
forming second compression unit including the first uncompressed data chunk; and
compressing the compression unit as a single compressible unit.

### Claim 18 (depends on 11)

The non-transitory computer readable medium of claim 11, wherein the method is performed as part of inline processing of an I/O path.

### Claim 19 (depends on 11)

The non-transitory computer readable medium of claim 11, wherein the method is performed offline and not part of inline processing of an I/O path.
