# US 9,355,112 B1 · Optimizing compression based on data activity

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

- Number: US 9,355,112 B1
- Document ID: US9355112B1
- Status: Granted
- Kind: B1
- Application number: 13/731,279
- Filed: 2012-12-31
- Granted: 2016-05-31
- Earliest claimed: 2012-12-31
- Assignees: EMC Corporation
- Applicants: EMC Corporation
- Inventors: Philippe Armangau; Xiangping Chen; Dennis T. Duprey; Karl M. Owen
- Web page: https://patentgrep.com/patent/US9355112B1

## CPC

- G06F 16/1744: {using compression, e.g. sparse files}
- G06F 16/122: {using management policies (point-in-time backing up or restoration of persistent data G06F11/1446; file migration policies for HSM systems G06F16/185)}
- G06F 16/1774: {Locking methods, e.g. locking methods for file systems allowing shared and concurrent access to files}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method is used in managing data compression in storage systems. A request to compress particular data stored within a memory space is received. An activity level for the particular data is determined. Compression is enabled for data determined to have an activity level below a predetermined threshold and compression is disabled for data determined to have an activity level above the predetermined threshold.

## Claims

### Claim 1

A method for managing data compression in storage systems, the method comprising:
receiving a request to compress particular data stored within a memory space;
determining an activity level for the particular data, wherein determining the activity level includes processing a historical log of locks imposed on the memory space to ascertain the number of times the particular data stored within the memory space was accessed during a recent time period, wherein the historical log of locks imposed on the memory space identifies ranges of extents which were locked during IO operations performed on the memory space, wherein processing the historical log of locks imposed on the memory space includes updating a set of counters based on the ranges of extents which were locked during the IO operations and which are identified by the historical log of locks;
determining if compressing the particular data will increase or decrease system performance;
if compressing the particular data will increase system performance, enabling compression of the particular data determined to have an activity level below a predetermined activity level threshold; and
if compressing the particular data will decrease system performance, disabling compression of the particular data determined to have an activity level above the predetermined activity level threshold.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
after performing the compression operation, creating a compression timestamp record to indicate when the particular data stored within the memory space was last compressed.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
wherein receiving a request to compress particular data stored within a memory space includes receiving a request from a user to compress particular data;
determining that compressing the particular data will reduce system performance; and
providing an indicator to the user representative of the determination.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining that compressing data other than the particular data will improve system performance; and
providing an indicator to the user representative of the determination.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining an activity level for the particular data includes determining at least three different threshold activity levels.

### Claim 6 (depends on 1)

The method of claim 1, further including configuring a second set of particular data and enabling compression of the second set of particular data determined to have an activity level below the predetermined threshold.

### Claim 7

A system for managing data compression in storage systems, the system comprising:
a host interface;
memory which provides a memory space; and
processing circuitry coupled to the host interface and the memory, the processing circuitry being constructed and arranged to:
receive a request to compress particular data stored within a memory space;
determine an activity level for the particular data, wherein determine the activity level includes processing a historical log of locks imposed on the memory space to ascertain the number of times the particular data stored within the memory space was accessed during a recent time period, wherein the historical log of locks imposed on the memory space identifies ranges of extents which were locked during IO operations performed on the memory space, wherein processing the historical log of locks imposed on the memory space includes updating a set of counters based on the ranges of extents which were locked during the IO operations and which are identified by the historical log of locks;
determine if compressing the particular data will increase or decrease system performance;
if compressing the particular data will increase system performance, enable compression of the particular data determined to have an activity level below a predetermined activity level threshold; and
if compressing the particular data will decrease system performance, disable compression of the particular data determined to have an activity level above the predetermined activity level threshold.

### Claim 8 (depends on 7)

The system of claim 7, further comprising:
after performing the compression operation, creating a compression timestamp record to indicate when the particular data stored within the memory space was last compressed.

### Claim 9 (depends on 7)

The system of claim 7, further comprising:
wherein receiving a request to compress particular data stored within a memory space includes receiving a request from a user to compress particular data;
determining that compressing the particular data will reduce system performance; and
providing an indicator to the user representative of the determination.

### Claim 10 (depends on 7)

The system of claim 7, wherein the processing circuitry is further configured to:
determine that compressing data other than the particular data will improve system performance; and
provide an indicator to the user representative of the determination.

### Claim 11 (depends on 7)

The system of claim 7, wherein the processing circuitry is further configured to determine an activity level for the particular data includes determining at least three different threshold activity levels.

### Claim 12 (depends on 7)

The system of claim 7, wherein the processing circuitry is further configured to configure a second set of particular data and enabling compression of the second set of particular data determined to have an activity level above the predetermined threshold.

### Claim 13

A computer program product having a non-transitory computer readable medium storing a set of instructions which, when carried out by computerized circuitry, directs the computerized circuitry to manage data fragmentation by performing a method comprising:
receiving a request to compress particular data stored within a memory space;
determining an activity level for the particular data, wherein determining the activity level includes processing a historical log of locks imposed on the memory space to ascertain the number of times the particular data stored within the memory space was accessed during a recent time period, wherein the historical log of locks imposed on the memory space identifies ranges of extents which were locked during IO operations performed on the memory space, wherein processing the historical log of locks imposed on the memory space includes updating a set of counters based on the ranges of extents which were locked during the IO operations and which are identified by the historical log of locks;
determining if compressing the particular data will increase or decrease system performance;
if compressing the particular data will increase system performance, enabling compression of the particular data determined to have an activity level below a predetermined activity level threshold; and
if compressing the particular data will decrease system performance, disabling compression of the particular data determined to have an activity level above the predetermined activity level threshold.
