# US 2026/0064595 A1 · Adaptive Caching Of Memory Request Streams

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

- Number: US 2026/0064595 A1
- Document ID: US20260064595A1
- Status: Published application
- Kind: A1
- Application number: 19/105,957
- Filed: 2022-08-26
- Published: 2026-03-05
- Earliest claimed: 2022-08-26
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Lijun Li; Pavan Thirunagari; Xiaoping Xie; En-Chih Chang
- Web page: https://patentgrep.com/patent/US20260064595A1

## CPC

- G06F 12/084: with a shared cache
- G06F 12/0806: Multiuser, multiprocessor or multiprocessing cache systems
- G06F 12/0842: for multiprocessing or multitasking
- G06F 12/0857: {by multiple requestors}
- G06F 2212/1021: Hit rate improvement
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for allocating cache resources according to stream ids. One of the methods includes caching memory requests for each of the one or more integrated client devices, distinguishing different computing tasks using stream ids of the memory requests, and allocating different partitions of the cache memory to different respective computing tasks.

## Claims

### Claim 1

A system comprising:
a plurality of integrated client devices, each client device configured to generate memory requests, each memory request having a respective pre-assigned stream id that represents a type of computing task to which the memory request belongs; and
a cache configured to cache memory requests to a memory for each of the plurality of integrated client devices,
wherein the cache has multiple partitions, and wherein the cache is configured to allocate different partitions to respective memory requests according to stream ids of the memory requests.

### Claim 2 (depends on 1)

The system of claim 1, wherein memory requests belonging to different types of computing tasks have different stream ids.

### Claim 3 (depends on 1)

The system of claim 1, wherein the cache is configured to allocate no partitions to a particular stream id.

### Claim 4 (depends on 1)

The system of claim 1, wherein the cache is configured to swap a stream id from using a first partition to using a second partition.

### Claim 5 (depends on 1)

The system of claim 1, wherein the cache is configured to allocate multiple different stream ids to use a same partition.

### Claim 6 (depends on 1)

The system of claim 1, further comprising a processing device configured to execute instructions to perform operations comprising:
providing, to the cache, instructions to allocate partitions to stream ids from a candidate pool of stream ids;
computing per-partition cache hit metrics for each partition; and
providing, to the cache, instructions to alter partition allocations for one or more stream ids.

### Claim 7 (depends on 6)

The system of claim 6, wherein computing the per-partition cache hit metrics comprises computing a hit ratio, and wherein the operations further comprise:
determining that the hit ratio for a partition is less than an eviction threshold; and
in response, deallocating one or more stream ids from the partition, and allocating a new stream id, from the candidate pool, to the partition.

### Claim 8 (depends on 7)

The system of claim 7, wherein the operations further comprise:
determining that the hit ratio for the partition is less than a revival threshold; and
in response, removing the deallocated one or more stream ids from the candidate pool.

### Claim 9 (depends on 6)

The system of claim 6, wherein the system is configured to allocate, to the partitions, new stream ids from the candidate pool using a selection algorithm based on any one of:
randomly,
round-robin,
first in first out, or
priority.

### Claim 10 (depends on 7)

The system of claim 7, wherein the eviction threshold for at least some of the partitions is different.

### Claim 11 (depends on 8)

The system of claim 8, wherein the revival threshold for at least some of the partitions is different.

### Claim 12

A method performed by a device comprising:
a plurality of integrated client devices, each client device configured to generate memory requests, each memory request having a respective pre-assigned stream id that represents a type of computing task to which the memory request belongs, and
a cache having multiple partitions,
the method comprising:
caching, by the cache, memory requests to a memory for each of the plurality of integrated client devices; and
allocating, by the cache, different partitions to respective memory requests according to stream ids of the memory requests.

### Claim 13 (depends on 12)

The method of claim 12, wherein memory requests belonging to different types of computing tasks have different stream ids.

### Claim 14 (depends on 12)

The method of claim 12, wherein the cache is configured to allocate no partitions to a particular stream id.

### Claim 15 (depends on 12)

The method of claim 12, further comprising swapping a stream id from using a first partition to using a second partition.

### Claim 16 (depends on 12)

The method of claim 12, further comprising allocating multiple different stream ids to use a same partition.

### Claim 17 (depends on 12)

The method of claim 12, further comprising:
providing, to the cache, instructions to allocate partitions to stream ids from a candidate pool of stream ids;
computing per-partition cache hit metrics for each partition; and
providing, to the cache, instructions to alter partition allocations for one or more stream ids.

### Claim 18 (depends on 17)

The method of claim 17, wherein computing the per-partition cache hit metrics comprises computing a hit ratio, and wherein the operations further comprise:
determining that the hit ratio for a partition is less than an eviction threshold; and
in response, deallocating one or more stream ids from the partition, and allocating a new stream id, from the candidate pool, to the partition.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
determining that the hit ratio for the partition is less than a revival threshold; and
in response, removing the deallocated one or more stream ids from the candidate pool.

### Claim 20 (depends on 17)

The method of claim 17, further comprising allocating, to the partitions, new stream ids from the candidate pool using a selection algorithm based on any one of:
randomly,
round-robin,
first in first out, or
priority.

### Claim 21 (depends on 18)

The method of claim 18, wherein the eviction threshold for at least some of the partitions is different.

### Claim 22 (depends on 19)

The method of claim 19, wherein the revival threshold for at least some of the partitions is different.
