# US 2021/0286726 A1 · Techniques for determining and using caching scores for cached data

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

- Number: US 2021/0286726 A1
- Document ID: US20210286726A1
- Status: Published application
- Kind: A1
- Application number: 16/818,139
- Filed: 2020-03-13
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Anton Kucherov; David Meiri
- Web page: https://patentgrep.com/patent/US20210286726A1

## CPC

- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- G06F 12/0871: Allocation or management of cache space
- G06F 12/0873: Mapping of cache memory to specific storage devices or parts thereof
- G06F 2212/262: configured as RAID
- G06F 2212/604: Details relating to cache allocation
- G06F 2212/608: Details relating to cache mapping
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for cache management may include: receiving pages of data having page scores, wherein each of the pages of data is associated with a corresponding one of the page scores, wherein the corresponding page score associated with a page of data is determined in accordance with one or more criteria including one or more of a deduplication score, a compression score, and a neighbor score that uses a popularity metric based on deduplication related criteria of neighboring pages of data; and storing the page of data in a cache in accordance with the plurality of page scores. The cache may include buckets of pages where each bucket is associated with a different page size and all pages in the bucket are the different page size. The one or more criteria may also include an access score. The page scores may be based on multiple criteria that is weighted.

## Claims

### Claim 1

A method of performing cache management comprising:
receiving a plurality of pages of data having a plurality of page scores, wherein each of the plurality of pages of data is associated with a corresponding one of the plurality of page scores, wherein the corresponding one of the plurality of page scores associated with said each page of data is determined in accordance with one or more criteria including one or more of a deduplication score, a compression score, and a neighbor score that uses a popularity metric based on deduplication related criteria of neighboring pages of data; and
storing the plurality of pages of data in a cache in accordance with the plurality of page scores.

### Claim 2 (depends on 1)

The method of claim 1, wherein the each of the plurality of page scores associated with one of the plurality of pages of data is determined in accordance with the one or more criteria, and wherein the one or more criteria includes the deduplication score for said one page of data stored in the cache.

### Claim 3 (depends on 2)

The method of claim 2, wherein the deduplication score for said one page of data stored in the cache is determined in accordance with a deduplication reference count indicating a number of times said one page of data is referenced by a logical address.

### Claim 4 (depends on 1)

The method of claim 1, wherein the each of the plurality of page scores associated with one of the plurality of pages of data is determined in accordance with the one or more criteria, and wherein the one or more criteria includes the compression score for said one page of data stored in the cache.

### Claim 5 (depends on 4)

The method of claim 4, wherein said one page of data is stored in the cache in a compressed form, and wherein the compression score for said one page of data stored in the cache is determined in accordance with an amount of cache consumed to store the compressed form of said one page of data.

### Claim 6 (depends on 5)

The method of claim 5, wherein the cache includes a plurality of buckets of cache pages, wherein each of the plurality of buckets is associated with a different one of a plurality of cache page sizes, and wherein cache pages included in a same one of the plurality of buckets are a same size that is equal to the different one of a plurality of cache page sizes associated with the same one of the plurality of buckets.

### Claim 7 (depends on 6)

The method of claim 6, wherein each of the plurality of pages of data is stored in the cache in a compressed form and wherein the compressed form of said each page of data has an associated compressed size, and wherein the compressed form is stored in a cache page selected from one of the plurality of buckets having an associated cache size that is a smallest of the plurality of cache page sizes capable of storing the compressed form.

### Claim 8 (depends on 1)

The method of claim 1, wherein the each of the plurality of page scores associated with one of the plurality of pages of data is determined in accordance with the one or more criteria, and wherein the one or more criteria includes the neighbor score for said one page of data stored in the cache wherein the neighbor score uses a popularity metric based on deduplication related criteria of neighboring pages of data.

### Claim 9 (depends on 8)

The method of claim 8, wherein the neighbor score for said one page of data stored in the cache is determined based on one or more neighboring pages of data with respect to said one page of data, and wherein each of the one or more neighboring pages of data and said one page of data are located in a logical address space, and wherein each of the one or more neighboring pages are located in logical addresses adjacent to other logical addresses mapped to said one page of data.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
determining that a first of the one or more neighboring pages of said one page of data is stored in the cache; and
determining whether the first neighboring page is popular in accordance with the popularity metric, wherein the popularity metric determines that the first neighboring page is popular in accordance the deduplication related criteria of the first neighboring page.

### Claim 11 (depends on 10)

The method of claim 10, wherein the deduplication related criteria of the first neighboring page indicates that the first neighboring page is popular if it has an associated deduplication reference count above a specified threshold.

### Claim 12 (depends on 10)

The method of claim 10, wherein the popularity metric determines that the first neighboring page is popular of the first neighboring page stored in the cache has a last access time that is within a specified window of time

### Claim 13 (depends on 1)

The method of claim 1, wherein the each of the plurality of page scores associated with one of the plurality of pages of data is determined in accordance with the one or more criteria, and wherein the one or more criteria further includes an access score determined in accordance with when the one page of data was last accessed.

### Claim 14 (depends on 1)

The method of claim 1, wherein each of the plurality of page scores associated with one of the plurality of pages of data is determined in accordance with the one or more criteria, and wherein the one or more criteria further includes an access score determined in accordance with a frequency of accesses of the one page of data that occurred within a specified window of time.

### Claim 15 (depends on 1)

The method of claim 1, wherein the one or more criteria include the neighbor score, the deduplication score, the compression score, and an access score.

### Claim 16 (depends on 15)

The method of claim 15, wherein each of the plurality of page scores associated with one of the plurality of pages of data stored in the cache is determined using a function that takes a plurality of inputs for the one page of data, wherein the plurality of inputs includes the neighbor score, the deduplication score, the compression score, and the access score.

### Claim 17 (depends on 16)

The method of claim 16, wherein the function computes said each page score for the one page of data stored in the cache as a weighted sum of a plurality of terms in which each of the plurality of terms includes one of the plurality of inputs and a weight corresponding to said one input.

### Claim 18 (depends on 1)

The method of claim 1, wherein the cache is a read cache that includes only read data for read I/O operations.

### Claim 19

A system comprising:
one or more processors; and
a memory comprising code stored therein that, when executed, performs a method of cache management comprising:
receiving a plurality of pages of data having a plurality of page scores, wherein each of the plurality of pages of data is associated with a corresponding one of the plurality of page scores, wherein the corresponding one of the plurality of page scores associated with said each page of data is determined in accordance with one or more criteria including one or more of a deduplication score, a compression score, and a neighbor score that uses a popularity metric based on deduplication related criteria of neighboring pages of data; and
storing the plurality of pages of data in a cache in accordance with the plurality of page scores.

### Claim 20

A computer readable medium comprising code stored thereon that, when executed, performs a method of cache management comprising:
receiving a plurality of pages of data having a plurality of page scores, wherein each of the plurality of pages of data is associated with a corresponding one of the plurality of page scores, wherein the corresponding one of the plurality of page scores associated with said each page of data is determined in accordance with one or more criteria including one or more of a deduplication score, a compression score, and a neighbor score that uses a popularity metric based on deduplication related criteria of neighboring pages of data; and
storing the plurality of pages of data in a cache in accordance with the plurality of page scores.
