# US 2025/0086114 A1 · Performance-based cache adjustment

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

- Number: US 2025/0086114 A1
- Document ID: US20250086114A1
- Status: Published application
- Kind: A1
- Application number: 18/466,171
- Filed: 2023-09-13
- Published: 2025-03-13
- Earliest claimed: 2023-09-13
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Karunakar Reddy BASIREDDY; George PATSILARAS; Vivekanandan NAVEEN
- Web page: https://patentgrep.com/patent/US20250086114A1

## CPC

- G06F 12/084: with a shared cache
- G06F 12/0871: Allocation or management of cache space
- G06F 2212/502: using adaptive policy
- G06F 2212/601: Reconfiguration of cache memory
- 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

A device includes a system cache accessible to a central processing unit (CPU) sub-system. The system cache includes a CPU portion allocated to the CPU sub-system. The device also includes a cache allocation governor that is configured to obtain a performance metric associated with at least one of the system cache or the CPU sub-system. The cache allocation governor is also configured to, based on the performance metric satisfying a cache adjustment criterion, adjust a size of the CPU portion.

## Claims

### Claim 1

A device comprising:
a system cache accessible to a central processing unit (CPU) sub-system, the system cache including a CPU portion allocated to the CPU sub-system; and
a cache allocation governor configured to:
obtain a performance metric associated with at least one of the system cache or the CPU sub-system; and
based on the performance metric satisfying a cache adjustment criterion, adjust a size of the CPU portion.

### Claim 2 (depends on 1)

The device of claim 1, wherein the cache allocation governor is configured to, based on determining that the performance metric satisfies a cache reduction criterion, decrease the size of the CPU portion, and wherein one or more blocks of the system cache are deallocated responsive to the decrease in the size of the CPU portion.

### Claim 3 (depends on 2)

The device of claim 2, further comprising a cache controller configured to power collapse the one or more deallocated blocks of the system cache.

### Claim 4 (depends on 2)

The device of claim 2, wherein the cache allocation governor is configured to determine that the performance metric satisfies the cache reduction criterion based on detecting that the performance metric satisfies a performance threshold.

### Claim 5 (depends on 1)

The device of claim 1, wherein the cache allocation governor is configured to, based on determining that the performance metric satisfies a cache expansion criterion, increase the size of the CPU portion.

### Claim 6 (depends on 5)

The device of claim 5, wherein the cache allocation governor is configured to increase the size of the CPU portion further based on determining that the size of the CPU portion is less than a CPU portion size threshold, that the system cache has available space, or both.

### Claim 7 (depends on 1)

The device of claim 1, wherein the cache allocation governor is configured to prevent a second increase of the size of the CPU portion without detecting a performance benefit as a result of a first increase of the size of the CPU portion.

### Claim 8 (depends on 1)

The device of claim 1, wherein the cache allocation governor is configured to, based on detecting an insufficient performance benefit as a result of a prior increase of the size of the CPU portion, revert the prior increase of the size of the CPU portion.

### Claim 9 (depends on 1)

The device of claim 1, wherein the cache allocation governor is configured to:
determine a plurality of performance metrics corresponding to a plurality of CPU portion sizes;
based on a comparison of the plurality of performance metrics, select a particular CPU portion size from the plurality of CPU portion sizes; and
adjust the size of the CPU portion based on the particular CPU portion size.

### Claim 10 (depends on 1)

The device of claim 1, wherein the cache allocation governor is configured to, based on detecting that a performance benefit as a result of a prior increase of the size of the CPU portion is less than a performance benefit threshold and to test whether, as a result of at least one of a larger working set size or nonlinear sensitivity to cache size, one or more other CPU portion sizes provide an improved performance benefit:
determine a second performance metric corresponding to a second CPU portion size; and
based on determining that a difference between the performance metric and the second performance metric is greater than a scaled version of the performance benefit threshold, increase the size of the CPU portion.

### Claim 11 (depends on 1)

The device of claim 1, wherein the performance metric includes at least one of a count of misses per thousand instructions (MPKI), a miss rate, cycles per instruction (CPI), a count of branch mispredictions, or a count of active cores.

### Claim 12 (depends on 1)

The device of claim 1, wherein the cache allocation governor is configured to:
obtain a first performance metric from a CPU performance monitoring unit (PMU), the first performance metric indicating a performance of the CPU; and
obtain a second performance metric from a cache PMU, the second performance metric indicating a performance of the system cache,
wherein the performance metric is based on the first performance metric and the second performance metric.

### Claim 13 (depends on 12)

The device of claim 12, wherein the performance of the system cache includes a count of hits, a count of misses, a count of memory accesses, a bus bandwidth, a memory bandwidth, a count of allocated blocks, a count of unallocated blocks, a count of active blocks, or a combination thereof.

### Claim 14 (depends on 12)

The device of claim 12, wherein the performance of the CPU includes a count of instructions.

### Claim 15 (depends on 1)

The device of claim 1, wherein the system cache is further accessible to one or more additional sub-systems.

### Claim 16 (depends on 15)

The device of claim 15, wherein the one or more additional sub-systems include at least one of a graphics processing unit (GPU), a digital signal processor (DSP), an audio processor, a video processor, a modem, a low-power audio sub-system, or a display.

### Claim 17 (depends on 1)

The device of claim 1, wherein the system cache includes a last-level cache (LLC).

### Claim 18

A method comprising:
obtaining, at a device, a performance metric associated with at least one of a system cache or a central processing unit (CPU) sub-system of the device; and
based on determining that the performance metric satisfies a cache adjustment criterion, adjusting a size of a CPU portion in the system cache, wherein the CPU portion is allocated to the CPU sub-system.

### Claim 19 (depends on 18)

The method of claim 18, further comprising deallocating one or more blocks of the system cache responsive to a decrease in the size of the CPU portion, wherein the cache adjustment criterion includes a cache reduction criterion, and wherein adjusting the size of the CPU portion includes decreasing the size of the CPU portion.

### Claim 20 (depends on 19)

The method of claim 19, further comprising power collapsing the one or more deallocated blocks of the system cache.

### Claim 21 (depends on 19)

The method of claim 19, wherein determining that the performance metric satisfies the cache reduction criterion includes detecting that the performance metric satisfies a performance threshold.

### Claim 22 (depends on 18)

The method of claim 18, wherein the cache adjustment criterion includes a cache expansion criterion, and wherein adjusting the size of the CPU portion includes increasing the size of the CPU portion.

### Claim 23 (depends on 22)

The method of claim 22, wherein the size of the CPU portion is increased further based on determining that the size of the CPU portion is less than a CPU portion size threshold, that the system cache has available space, or both.

### Claim 24 (depends on 18)

The method of claim 18, further comprising preventing a second increase of the size of the CPU portion without detecting a performance benefit as a result of a first increase of the size of the CPU portion.

### Claim 25 (depends on 18)

The method of claim 18, further comprising, based on detecting an insufficient performance benefit as a result of a prior increase of the size of the CPU portion, reverting the prior increase of the size of the CPU portion.

### Claim 26 (depends on 18)

The method of claim 18, further comprising:
determining a plurality of performance metrics corresponding to a plurality of CPU portion sizes;
based on a comparison of the plurality of performance metrics, selecting a particular CPU portion size from the plurality of CPU portion sizes; and
adjusting the size of the CPU portion based on the particular CPU portion size.

### Claim 27 (depends on 18)

The method of claim 18, further comprising, based on detecting that a performance benefit as a result of a prior increase of the size of the CPU portion is less than a performance benefit threshold and to test whether, as a result of at least one of a larger working set size or nonlinear sensitivity to cache size, one or more other CPU portion sizes provide an improved performance benefit:
determining a second performance metric corresponding to a second CPU portion size; and
based on determining that a difference between the performance metric and the second performance metric is greater than a scaled version of the performance benefit threshold, increasing the size of the CPU portion.

### Claim 28 (depends on 18)

The method of claim 18, wherein the performance metric includes at least one of a count of misses per thousand instructions (MPKI), a miss rate, cycles per instruction (CPI), a count of branch mispredictions, or a count of active cores.

### Claim 29

A non-transitory computer-readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to:
obtain a performance metric associated with at least one of a system cache or a central processing unit (CPU) sub-system; and
based on determining that the performance metric satisfies a cache adjustment criterion, adjust a size of a CPU portion in the system cache, wherein the CPU portion is allocated to the CPU sub-system.

### Claim 30

An apparatus comprising:
means for obtaining a performance metric associated with at least one of a system cache or a central processing unit (CPU) sub-system; and
means for adjusting a size of a CPU portion in the system cache, the size adjusted based on determining that the performance metric satisfies a cache adjustment criterion, wherein the CPU portion is allocated to the CPU sub-system.
