# US 10,956,331 B2 · Cache partitioning in a multicore processor

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

- Number: US 10,956,331 B2
- Document ID: US10956331B2
- Status: Granted
- Kind: B2
- Application number: 16/448,239
- Filed: 2019-06-21
- Published: 2019-12-05
- Granted: 2021-03-23
- Earliest claimed: 2017-03-30
- Assignees: Empire Technology Development LLC
- Applicants: Empire Technology Development LLC
- Inventors: Yan Solihin
- Web page: https://patentgrep.com/patent/US10956331B2

## CPC

- G06F 12/0842: for multiprocessing or multitasking
- G06F 1/32: Means for saving power
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/0848: {Partitioned cache, e.g. separate instruction and operand caches}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 15/17381: {Two dimensional, e.g. mesh, torus}
- G06F 15/781: {On-chip cache; Off-chip memory}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 12/12: Replacement control
- G06F 2212/282: Partitioned cache
- G06F 2212/452: Instruction code
- G06F 2212/6012: of operating mode, e.g. cache mode or local memory mode
- 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

Techniques described herein generally include methods and systems related to cache partitioning in a chip multiprocessor. Cache-partitioning for a single thread or application between multiple data sources improves energy or latency efficiency of a chip multiprocessor by exploiting variations in energy cost and latency cost of the multiple data sources. Partition sizes for each data source may be selected using an optimization algorithm that minimizes or otherwise reduces latencies or energy consumption associated with cache misses.

## Claims

### Claim 1

A method to partition a cache of a processor core of a multi-core processor, the method comprising:
determining, for each data source of a plurality of data sources, at least one of a latency cost or an energy cost to employ the data source to satisfy a cache miss experienced by the processor core of the multi-core processor; and
partitioning the cache of the processor core into a plurality of cache partitions based on the at least one of the latency cost or the energy cost, wherein each cache partition of the plurality of cache partitions corresponds to a respective data source of the plurality of data sources.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the at least one of the latency cost or the energy cost comprises generating a miss cost curve for each data source of the plurality of data sources.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the miss cost curve for each data source comprises multiplying a cost function for the data source by a miss rate curve of an application or a thread that runs on the processor core.

### Claim 4 (depends on 3)

The method of claim 3, wherein the miss rate curve of the application or the thread is related to a size of the cache.

### Claim 5 (depends on 2)

The method of claim 2, wherein the miss cost curve for each data source is related to a plurality of attributes that includes an access latency associated with a memory associated with the data source, an operating frequency of a memory controller associated with the data source, and a location of the data source relative to the processor core.

### Claim 6 (depends on 1)

The method of claim 1, wherein partitioning the cache into the plurality of cache partitions includes selecting sizes, of the cache partitions that correspond to respective data sources, to reduce a total cost of cache misses in terms of latency or energy.

### Claim 7

A non-transitory computer readable storage medium having stored therein computer-executable instructions, wherein the instructions, in response to execution by a computer, cause the computer to perform or control performance of operations to partition a cache of a processor core of a multi-core processor, wherein the operations comprise:
determine, for each data source of a plurality of data sources, at least one of a latency cost or an energy cost to employ the data source to satisfy a cache miss experienced by the processor core of the multi-core processor; and
partition the cache of the processor core into a plurality of cache partitions based on the at least one of the latency cost or the energy cost, wherein each cache partition of the plurality of cache partitions corresponds to a respective data source of the plurality of data sources.

### Claim 8 (depends on 7)

The non-transitory computer readable storage medium of claim 7, wherein the operation to determine the at least one of the latency cost or the energy cost includes an operation to generate a miss cost curve for each data source of the plurality of data sources.

### Claim 9 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein the operation to generate the miss cost curve for each data source comprises an operation to multiply a cost function for the data source by a miss rate curve of an application or a thread that runs on the processor core.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium of claim 9, wherein the miss rate curve of the application or the thread is related to a size of the cache.

### Claim 11 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein the miss cost curve for each data source is related to a plurality of attributes that includes an access latency associated with a memory associated with the data source, an operating frequency of a memory controller associated with the data source, and a location of the data source relative to the processor core.

### Claim 12 (depends on 7)

The non-transitory computer readable storage medium of claim 7, wherein the operation to partition the cache into the plurality of cache partitions includes an operation to select sizes, of the cache partitions that correspond to respective data sources, to reduce a total cost of cache misses in terms of latency or energy.

### Claim 13

A multi-core processor, comprising:
a processor core;
a cache of the processor core; and
a control unit coupled to the processor core and to the cache, wherein the control unit is operable to:
determine, for each data source of a plurality of data sources, at least one of a latency cost or an energy cost to employ the data source to satisfy a cache miss experienced by the processor core; and
partition the cache of the processor core into a plurality of cache partitions based on the at least one of the latency cost or the energy cost, wherein each cache partition of the plurality of cache partitions corresponds to a respective data source of the plurality of data sources.

### Claim 14 (depends on 13)

The multi-core processor of claim 13, wherein to determine the at least one of the latency cost or the energy cost, the control unit is operable to generate a miss cost curve for each data source of the plurality of data sources.

### Claim 15 (depends on 14)

The multi-core processor of claim 14, wherein to generate the miss cost curve for each data source, the control unit is operable to multiply a cost function for the data source by a miss rate curve of an application or a thread that runs on the processor core.

### Claim 16 (depends on 15)

The multi-core processor of claim 15, wherein the miss rate curve of the application or the thread is related to a size of the cache.

### Claim 17 (depends on 14)

The multi-core processor of claim 14, wherein the miss cost curve for each data source is related to a plurality of attributes that includes an access latency associated with a memory associated with the data source, an operating frequency of a memory controller associated with the data source, and a location of the data source relative to the processor core.

### Claim 18 (depends on 13)

The multi-core processor of claim 13, wherein to partition the cache into the plurality of cache partitions, the control unit is operable to select sizes, of the cache partitions that correspond to respective data sources, to reduce a total cost of cache misses in terms of latency or energy.
