# US 2022/0292019 A1 · Memory request throttling to constrain memory bandwidth utilization

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

- Number: US 2022/0292019 A1
- Document ID: US20220292019A1
- Status: Published application
- Kind: A1
- Application number: 17/705,864
- Filed: 2022-03-28
- Published: 2022-09-15
- Earliest claimed: 2017-12-12
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: William L. Walker; William E. Jones
- Web page: https://patentgrep.com/patent/US20220292019A1

## CPC

- G06F 11/3027: {where the computing system component is a bus}
- G06F 12/0862: with prefetch
- 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/3419: {by assessing time}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 13/161: {with latency improvement}
- G06F 2201/885: Monitoring specific for caches
- G06F 2212/1021: Hit rate improvement
- G06F 2212/6026: Prefetching based on access pattern detection, e.g. stride based prefetch
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processing system includes an interconnect fabric coupleable to a local memory and at least one compute cluster coupled to the interconnect fabric. The compute cluster includes a processor core and a cache hierarchy. The cache hierarchy has a plurality of caches and a throttle controller configured to throttle a rate of memory requests issuable by the processor core based on at least one of an access latency metric and a prefetch accuracy metric. The access latency metric represents an average access latency for memory requests for the processor core and the prefetch accuracy metric represents an accuracy of a prefetcher of a cache of the cache hierarchy.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method for memory request throttling in a processing system, the method comprising:
setting, at a throttle controller of a cache of the processing system, based on at least one of an access latency metric and a prefetch accuracy metric of a prefetcher of the cache, a throttle level for a thread executing at a processor core of the processing system by setting a maximum number of pending memory request entries of a buffer that are available to the processor core, wherein the buffer is a miss information buffer (MIB) associated with the cache and is configured as a buffer for read misses at the cache.

### Claim 22 (depends on 21)

The method of claim 21, wherein setting the throttle level for the thread executing at the processor core further comprises: modifying an aggressiveness of the prefetcher based on at least one of the access latency metric and the prefetch accuracy metric.

### Claim 23 (depends on 22)

The method of claim 22, wherein the maximum number of pending memory requests is a maximum number of missed information buffer (MIB) entries available for use by the processor core.

### Claim 24 (depends on 22)

The method of claim 22, wherein modifying the aggressiveness of the prefetcher further comprises
modifying a minimum prefetch confidence of the prefetcher.

### Claim 25 (depends on 22)

The method of claim 22, wherein modifying the aggressiveness of the prefetcher further comprises:
selectively disabling the prefetcher.

### Claim 26 (depends on 21)

The method of claim 21, wherein setting the throttle level for the thread executing at the processor core constrains use of bandwidth between a compute complex of the processing system and a local memory based on a maximum bandwidth utilization metric.

### Claim 27 (depends on 21)

The method of claim 21, wherein:
determining the prefetch accuracy metric comprises determining the prefetch accuracy metric for a specified thread executing at the processor core; and
setting the throttle level for the thread executing at the processor core comprises throttling a rate of memory access requests issuable by the processor core for the specified thread.

### Claim 28 (depends on 21)

The method of claim 21, wherein determining the access latency metric comprises:
sampling a plurality of memory requests issued to a local memory associated with the processor core to generate a sample set of memory requests;
measuring, for each memory request of the sample set, a corresponding access latency for fulfilling the memory request; and
determining the access latency metric based on an averaging of the access latencies measured for the sample set of memory requests.

### Claim 29 (depends on 21)

The method of claim 21, wherein setting the throttle level for the thread executing at the processor core comprises:
accessing a data structure representing a plurality of throttle levels, each throttle level representing a corresponding modification to at least one of: a maximum number of pending memory transactions available and a level of prefetcher aggressiveness, and each throttle level is associated with at least one of a corresponding latency threshold and a corresponding prefetch accuracy threshold; and
selecting a throttle level to implement for the processor core based on comparison of at least one of: the access latency metric to the respective latency thresholds of the plurality of throttle levels; and the prefetch accuracy metric to respective prefetch accuracy thresholds of the plurality of throttle levels.

### Claim 30 (depends on 21)

The method of claim 21, wherein the throttle level modifies the maximum number of pending memory request entries of a buffer that are available to the processor core.

### Claim 31

A processing system, comprising:
an interconnect fabric coupleable to a local memory; and
at least one compute cluster coupled to the interconnect fabric, the compute cluster comprising:
a processor core; and
a cache hierarchy comprising:
a plurality of caches; and
a throttle controller configured to set, based on at least one of an access latency metric and a prefetch accuracy metric of a prefetcher of a cache of the cache hierarchy, a throttle level for a thread executing at the processor core by setting a maximum number of pending memory request entries of a buffer that is available to the processor core, and wherein the buffer is a miss information buffer (MIB) associated with the cache and is configured as a buffer for read misses at the cache.

### Claim 32 (depends on 31)

The processing system of claim 31, wherein the throttle controller is further configured to set the throttle level for the thread executing at the processor core by:
modifying an aggressiveness of the prefetcher based on at least one of the access latency metric and the prefetch accuracy metric.

### Claim 33 (depends on 32)

The processing system of claim 32, wherein the maximum number of pending memory requests is a maximum number of missed information buffer (MIB) entries available for use by the processor core.

### Claim 34 (depends on 32)

The processing system of claim 32, wherein the throttle controller is configured to modify the aggressiveness of the prefetcher by at least one of:
modifying a maximum prefetch distance of the prefetcher;
modifying a minimum prefetch confidence of the prefetcher; and
selectively disabling the prefetcher.

### Claim 35 (depends on 32)

The processing system of claim 32, wherein the throttle controller is further configured to modify the aggressiveness of the prefetcher by:
modifying a minimum prefetch confidence of the prefetcher.

### Claim 36 (depends on 31)

The processing system of claim 31, wherein the throttle controller is further configured to set the throttle level for the thread executing at the processor core by:
constraining use of bandwidth between the compute cluster and a local memory associated with the processing system based on a maximum bandwidth utilization metric.

### Claim 37 (depends on 31)

The processing system of claim 31, wherein the cache hierarchy further comprises:
a prefetch accuracy tracker configured to determine the prefetch accuracy metric for a specified thread executing at the processor core; and
wherein the throttle controller is configured to t set the throttle level for the specified thread.

### Claim 38 (depends on 31)

The processing system of claim 31, wherein the cache hierarchy further comprises:
a latency tracker to determine the access latency metric by:
sampling a plurality of memory requests issued to a local memory associated with the processor core to generate a sample set of memory requests;
measuring, for each memory request of the sample set, a corresponding access latency for fulfilling the memory request; and
determining the access latency metric based on an averaging of the access latencies measured for the sample set of memory requests.

### Claim 39 (depends on 31)

The processing system of claim 31, wherein the throttle level modifies the maximum number of pending memory requests available for the processor core.

### Claim 40

A method for throttling memory bandwidth utilization in a processing system, the method comprising:
incrementally modifying a throttle level set for a thread of a software application executing at a processor core of a compute cluster of the processing system until a monitored actual memory utilization bandwidth meets a target memory utilization bandwidth constraint for the thread set by the processor core, wherein the throttle level sets a maximum number of pending memory request entries of a buffer that is available to the thread, and wherein the buffer is a miss information buffer (MIB) associated with a cache that is associated with the thread and the MIB is configured as a buffer for read misses at the cache.

### Claim 41 (depends on 40)

The method of claim 40, wherein the throttle level configures an aggressiveness of a prefetcher of the cache associated with the thread by at least one of:
modifying a prefetch distance of the prefetcher; and
modifying a minimum prefetch confidence of the prefetcher.

### Claim 42 (depends on 40)

The method of claim 40, wherein the throttle level configures an aggressiveness of a prefetcher of the cache associated with the thread by:
selectively disabling the prefetcher.
