# US 2023/0054017 A1 · Distributed Generic Cacheability Analysis

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

- Number: US 2023/0054017 A1
- Document ID: US20230054017A1
- Status: Published application
- Kind: A1
- Application number: 17/407,594
- Filed: 2021-08-20
- Published: 2023-02-23
- Earliest claimed: 2021-08-20
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Nazif Cihan Tas
- Web page: https://patentgrep.com/patent/US20230054017A1

## CPC

- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 16/90335: {Query processing}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 11/3409: {for performance assessment}
- G06F 12/0895: of parts of caches, e.g. directory or tag array
- G06F 11/3447: {Performance evaluation by modeling}
- G06F 2201/88: Monitoring involving counting
- G06F 2201/885: Monitoring specific for caches
- G06F 2212/1021: Hit rate improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A technology for estimating one or more cache hit rates. An implementation includes receiving a request-response pair, calculating a fingerprint for the request-response pair, storing the fingerprint, and determining whether the fingerprint is a member of a bloom filter.

## Claims

### Claim 1

A method for estimating one or more cache hit rates, comprising:
receiving a request-response pair;
incrementing a cached item count;
calculating a fingerprint for the request-response pair;
determining whether the fingerprint is a member of a bloom filter, and when the fingerprint is a member of the bloom filter incrementing a local hit count;
repeating the steps of receiving, incrementing, calculating, and determining for a cacheability analysis period; and
estimating a local cache hit rate based on the item count and the local hit count.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the step of determining comprises whether the fingerprint is a member of a current bloom filter or an other bloom filter, and wherein the method further comprises
when the fingerprint is not a member of the current bloom filter and is a member of the other bloom filter, making the fingerprint a member of the current bloom filter.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
when the fingerprint is not a member of the fingerprint is not a member of the current bloom filter and not a member of the other bloom filter, determining whether there is space for the fingerprint in current bloom filter,
when there is space for the fingerprint in current bloom filter, making the fingerprint a member of the current bloom filter, and
when there is not space for the fingerprint in current bloom filter, clearing the other bloom filter, moving the contents of the current bloom filter into the other bloom filter, and making the fingerprint a member of the current bloom filter.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the step of calculating a fingerprint for the request-response pair comprises performing a hash operation on data that uniquely identifies the request-response pair.

### Claim 5 (depends on 4)

The method according to claim 4, where in the fingerprint is a binary hash code that uniquely identifies the fingerprint.

### Claim 6

A method for estimating one or more cache hit rates, comprising:
receiving a request-response pair;
incrementing an item count;
calculating a fingerprint for the request-response pair and storing the fingerprint in a first storage;
determining whether the fingerprint is a member of a current bloom filter,
when the fingerprint is a member of the current bloom filter, incrementing a local hit count, and
when the fingerprint is not a member of the current bloom filter, determining whether the fingerprint is a member of an other bloom filter, when the fingerprint is a member of the other bloom filter, adding the fingerprint to the current bloom filter, and adding the fingerprint to a second storage, and when the fingerprint is not a member of the other bloom filter determining whether the current bloom filter has space for the fingerprint,
when the current bloom filter has space for the fingerprint adding the fingerprint into the current bloom filter, and
when the current bloom filter does not have space for the fingerprint, clearing the other bloom filter and then moving the contents of the current bloom filter to the other bloom filter;
repeating the steps of receiving, incrementing, calculating, and determining for a cacheability analysis period;
estimating a cache hit rate based on at least the item count.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the step of estimating a cache hit rate comprises estimating a local cache hit rate based on the item count and the local hit count.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the step of estimating a cache hit rate comprises estimating a distributed cache hit rate based on the item count, the contents of the first storage, and the contents of the second storage.

### Claim 9 (depends on 8)

The method according to claim 8, wherein
the distributed cache hit rate corresponds to a distributed cache serving i tasks, where i is an integer greater than or equal to two,
the item count equals a number of request-response pairs received at a first task,
the contents of the first storage are fingerprints corresponding to the request-response pairs received at the first task, and
the contents of the second storage are approximately the fingerprints corresponding to the local cache hits for the first task.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the step of estimating a distributed cache hit rate comprises:
calculating a number of fingerprints in the first storage and including the number of fingerprints in the first storage in a first sum, which indicates the number of request-response pairs received for the i tasks,
calculating a number of fingerprints in the second storage and including the number of fingerprints in the second storage in a second sum, which indicates the number fingerprints corresponding to local hits for the i tasks,
including the contents of the first storage in an aggregate of first storage contents for the i tasks,
including the contents of the second storage in an aggregate of second storage contents for the i tasks,
performing a hyperloglog operation on the aggregate of first storage contents to generate an estimated cardinality for the aggregate of first storage contents,
performing hyperloglog operation on the aggregate of second storage contents to generate an estimated cardinality for the aggregate of second storage contents,
subtracting the estimated cardinality for the aggregate of second storage contents from the second sum to generate a local hits adjustment,
subtracting the local hits adjustment and the estimated cardinality for the aggregate of first storage contents from the first sum to generate a distributed hit count for the i tasks, and
estimating the distributed cache hit rate based on a sum of item counts for the i tasks and the distributed hit count.

### Claim 11 (depends on 6)

The method according to claim 6, wherein the step of calculating a fingerprint for the request-response pair comprises performing a hash operation on data that uniquely identifies the request-response pair.

### Claim 12 (depends on 11)

The method according to claim 11, where in the fingerprint is a binary hash code that uniquely identifies the fingerprint.

### Claim at position 13

13-15. (canceled)
