# US 2017/0255568 A1 · Enhancing data caching performance

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

- Number: US 2017/0255568 A1
- Document ID: US20170255568A1
- Status: Published application
- Kind: A1
- Application number: 15/599,709
- Filed: 2017-05-19
- Published: 2017-09-07
- Earliest claimed: 2012-05-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Joseph S. HYDE, II; Subhojit ROY
- Web page: https://patentgrep.com/patent/US20170255568A1

## CPC

- G06F 12/122: of the least frequently used [LFU] type, e.g. with individual count value
- G06F 12/123: with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

For a cache in which a plurality of frequently accessed data segments are temporarily stored, reference count information of the plurality of data segments, in conjunction with least recently used (LRU) information, is used to determine a length of time to retain the plurality of data segments in the cache according to a predetermined weight, where notwithstanding the LRU information, those of the plurality of data segments having a higher reference counts are retained longer than those having lower reference counts.

## Claims

### Claim 1

A method for improving caching performance in a computing environment by a processor, comprising:
in a cache in which a plurality of data segments that are frequently accessed and are temporarily stored, and in conjunction with the cache using least recently used (LRU) information:
obtaining and examining reference count information concurrent with a deduplication operation for those of the plurality of data segments retained in the cache, wherein the reference count information is a number of chunks of virtual storage that map onto a single chunk of physical storage,
using the reference count information of the plurality of data segments to add to the cache the plurality of data segments and using the reference count information, the LRU information, statistical information, and a data storage policy to determine a length of time to retain each one of the plurality of data segments in the cache according to a predetermined weight correlated to the reference count information, assigned to each one of the plurality of data segments, wherein notwithstanding yet considering the LRU information, those of the plurality of data segments having a higher reference counts are retained longer in the cache than those having lower reference counts,
determining if the reference count information of the plurality of data segments added to the cache has been updated and a predetermined time interval has expired, wherein if the reference count information has not been updated and the predetermined time interval has not expired:
re-determining if the reference count information of the plurality of data segments added to the cache has been updated and the predetermined time interval has expired following a second predetermined time interval.

### Claim 2 (depends on 1)

The method of claim 1, further including obtaining the reference count information from a data deduplication engine.

### Claim 3 (depends on 1)

The method of claim 1, further including, if the reference count information has not been updated and the predetermined time interval has not expired, re-determining a length of time following an expiration of the predetermined time interval, wherein the predetermined weight decreases according to the passage of the predetermined time interval.

### Claim 4 (depends on 1)

The method of claim 1, further including adding to or removing from the cache portions of the plurality of data segments in the cache based on the reference count information.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the length of time to retain the plurality of data segments in cache includes implementing at least one policy corresponding to each of: the length of time to retain the plurality of data segments in cache, at least one of the plurality of data segments, and the predetermined weight.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining the length of time to retain the plurality of data segments in cache includes performing a deduplication operation for those of the plurality of data segments retained in the cache concurrent with the determining.

### Claim 7 (depends on 1)

The method of claim 1, further including re-determining the length of time to retain the plurality of data segments in cache based on an update to the reference count information, wherein the predetermined weight decreases according to a decrease in the reference count, and increases according to an increase in the reference count.

### Claim 8

A system for improving caching performance in a computing environment, comprising:
a processor device executing instructions stored in a memory, wherein the processor device:
in a cache in which a plurality of data segments that are frequently accessed and are temporarily stored, and in conjunction with the cache using least recently used (LRU) information:
obtains and examines reference count information concurrent with a deduplication operation for those of the plurality of data segments retained in the cache, wherein the reference count information is a number of chunks of virtual storage that map onto a single chunk of physical storage,
uses the reference count information of the plurality of data segments to add to the cache the plurality of data segments and using the reference count information, the LRU information, statistical information, and a data storage policy to determine a length of time to retain each one of the plurality of data segments in the cache according to a predetermined weight correlated to the reference count information, assigned to each one of the plurality of data segments, wherein notwithstanding yet considering the LRU information, those of the plurality of data segments having a higher reference counts are retained longer in the cache than those having lower reference counts,
determines if the reference count information of the plurality of data segments added to the cache has been updated and a predetermined time interval has expired, wherein if the reference count information has not been updated and the predetermined time interval has not expired:
re-determining if the reference count information of the plurality of data segments added to the cache has been updated and the predetermined time interval has expired following a second predetermined time interval.

### Claim 9 (depends on 8)

The system of claim 8, wherein the processor device obtains the reference count information from a data deduplication engine.

### Claim 10 (depends on 8)

The system of claim 8, wherein the processor device, if the reference count information has not been updated and the predetermined time interval has not expired, re-determines a length of time following an expiration of the predetermined time interval, wherein the predetermined weight decreases according to the passage of the predetermined time interval.

### Claim 11 (depends on 8)

The system of claim 8, wherein the processor device adds to or removes from the cache portions of the plurality of data segments in the cache based on the reference count information.

### Claim 12 (depends on 8)

The system of claim 8, wherein determining the length of time to retain the plurality of data segments in cache includes implementing at least one policy corresponding to each of: the length of time to retain the plurality of data segments in cache, at least one of the plurality of data segments, and the predetermined weight.

### Claim 13 (depends on 8)

The system of claim 8, wherein determining the length of time to retain the plurality of data segments in cache includes performing a deduplication operation for those of the plurality of data segments retained in the cache concurrent with the determining.

### Claim 14 (depends on 8)

The system of claim 8, wherein the processor device re-determines the length of time to retain the plurality of data segments in cache based on an update to the reference count information, wherein the predetermined weight decreases according to a decrease in the reference count, and increases according to an increase in the reference count.

### Claim 15

A computer program product for improving caching performance in a computing environment by a processor, the computer program product comprising a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
an executable portion that, in a cache in which a plurality of data segments that are frequently accessed and are temporarily stored, and in conjunction with the cache using least recently used (LRU) information:
obtains and examines reference count information concurrent with a deduplication operation for those of the plurality of data segments retained in the cache, wherein the reference count information is a number of chunks of virtual storage that map onto a single chunk of physical storage,
uses the reference count information of the plurality of data segments to add to the cache the plurality of data segments and using the reference count information, the LRU information, statistical information, and a data storage policy to determine a length of time to retain each one of the plurality of data segments in the cache according to a predetermined weight correlated to the reference count information, assigned to each one of the plurality of data segments, wherein notwithstanding yet considering the LRU information, those of the plurality of data segments having a higher reference counts are retained longer in the cache than those having lower reference counts,
determines if the reference count information of the plurality of data segments added to the cache has been updated and a predetermined time interval has expired, wherein if the reference count information has not been updated and the predetermined time interval has not expired:
re-determining if the reference count information of the plurality of data segments added to the cache has been updated and the predetermined time interval has expired following a second predetermined time interval.

### Claim 16 (depends on 15)

The computer program product of claim 15, further including an executable portion that obtains the reference count information from a data deduplication engine.

### Claim 17 (depends on 15)

The computer program product of claim 15, further including an executable portion that, if the reference count information has not been updated and the predetermined time interval has not expired, re-determines a length of time following an expiration of the predetermined time interval, wherein the predetermined weight decreases according to the passage of the predetermined time interval.

### Claim 18 (depends on 15)

The computer program product of claim 15, further including an executable portion that adds to or removes from the cache portions of the plurality of data segments in the cache based on the reference count information.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein determining the length of time to retain the plurality of data segments in cache includes implementing at least one policy corresponding to each of: the length of time to retain the plurality of data segments in cache, at least one of the plurality of data segments, and the predetermined weight.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein determining the length of time to retain the plurality of data segments in cache includes performing a deduplication operation for those of the plurality of data segments retained in the cache concurrent with the determining.

### Claim 21 (depends on 15)

The computer program product of claim 15, further including an executable portion that re-determines the length of time to retain the plurality of data segments in cache based on an update to the reference count information, wherein the predetermined weight decreases according to a decrease in the reference count, and increases according to an increase in the reference count.
