# US 11,119,665 B2 · Dynamic voltage and frequency scaling based on memory channel slack

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

- Number: US 11,119,665 B2
- Document ID: US11119665B2
- Status: Granted
- Kind: B2
- Application number: 16/212,388
- Filed: 2018-12-06
- Published: 2020-06-11
- Granted: 2021-09-14
- Earliest claimed: 2018-12-06
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Shomit N. Das; Kishore Punniyamurthy
- Web page: https://patentgrep.com/patent/US11119665B2

## CPC

- G06F 3/0625: {Power saving in storage systems}
- G06F 9/4893: {taking into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- G06F 1/324: by lowering clock frequency
- G06F 1/3275: {Power saving in memory, e.g. RAM, cache}
- G06F 1/3296: by lowering the supply or operating voltage
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0673: {Single storage device}
- 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 processing system scales power to memory and memory channels based on identifying causes of stalls of threads of a wavefront. If the cause is other than an outstanding memory request, the processing system throttles power to the memory to save power. If the stall is due to memory stalls for a subset of the memory channels servicing memory access requests for threads of a wavefront, the processing system adjusts power of the memory channels servicing memory access request for the wavefront based on the subset. By boosting power to the subset of channels, the processing system enables the wavefront to complete processing more quickly, resulting in increased processing speed. Conversely, by throttling power to the remainder of channels, the processing system saves power without affecting processing speed.

## Claims

### Claim 1

A method comprising:
monitoring stalls of a first wavefront comprising a first plurality of threads schedulable for concurrent execution of the same instruction on different data, the threads comprising memory access requests distributed across a plurality of channels to access a memory;
identifying a first subset of the plurality of channels through which fulfillment of memory access requests associated with threads of the first wavefront is lagging in comparison to a remainder of the plurality of channels, the remainder comprising channels of the plurality of channels not within the first subset; and
adjusting a voltage or a frequency of at least one of the plurality of channels based on the first subset.

### Claim 2 (depends on 1)

The method of claim 1, wherein adjusting comprises increasing the voltage or frequency of the first subset of the plurality of channels.

### Claim 3 (depends on 1)

The method of claim 1, wherein adjusting comprises throttling the voltage or frequency of the remainder of the plurality of channels.

### Claim 4 (depends on 3)

The method of claim 3, wherein throttling is limited such that stalls at a scheduler due to outstanding memory requests are lower than a threshold.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining, at a scheduler, if a second wavefront comprising a second plurality of threads schedulable for concurrent execution is ready to be scheduled;
in response to determining that a second plurality of threads is not ready to be scheduled, identifying a cause for a stall at the second plurality of threads; and
in response to identifying a cause for the stall other than a memory stall, throttling the voltage or frequency of the memory.

### Claim 6

A method comprising:
monitoring stalls of a first plurality of threads schedulable for concurrent execution, the threads comprising memory access requests distributed across a plurality of channels to access a memory;
identifying a first subset of the plurality of channels through which fulfillment of memory access requests is lagging in comparison to a remainder of the plurality of channels, the remainder comprising channels of the plurality of channels not within the first subset;
adjusting a voltage or a frequency of at least one of the plurality of channels based on the first subset;
measuring roundtrip latencies of memory access requests of the first plurality of threads across a second subset of the plurality of channels, the second subset comprising channels for which memory access requests are serviced at a coalescer;
identifying a contribution of each channel of the second subset to lagging memory access requests based on the roundtrip latencies; and
adjusting the voltage or frequency of the second subset based on the contributions.

### Claim 7 (depends on 1)

The method of claim 1, wherein identifying the first subset comprises:
tracking a number of outstanding memory access requests at each channel of the plurality of channels;
tracking a distribution of outstanding memory access requests across the plurality of channels for a history window; and
identifying the first subset based on a number of outstanding memory access requests at each channel during the history window.

### Claim 8

A method, comprising:
comparing latencies across a plurality of channels of a memory bus of a first wavefront comprising a first plurality of threads schedulable for concurrent execution of the same instruction on different data; and
throttling a voltage or a frequency of a first subset of the plurality of channels based on latencies at the first subset being less than latencies at a second subset of the plurality of channels different from the first subset.

### Claim 9 (depends on 8)

The method of claim 8, wherein throttling comprises throttling until latency of the first plurality of threads due to the throttling is hidden by a second wavefront comprising a second plurality of threads schedulable for concurrent execution.

### Claim 10

A method comprising:
comparing latencies across a plurality of channels of a first plurality of threads schedulable for concurrent execution; and
throttling a voltage or a frequency of a first subset of the plurality of channels based on latencies at the first subset being less than latencies at a second subset of the plurality of channels different from the first subset, wherein comparing latencies comprises:
measuring roundtrip latencies of memory access requests of the first plurality of threads across a subset of the plurality of channels, the subset comprising channels for which memory access requests are serviced at a coalescer;
identifying a contribution of each channel of the subset to lagging memory access requests based on the roundtrip latencies; and
adjusting the voltage or frequency of the subset based on the contributions.

### Claim 11 (depends on 8)

The method of claim 8, wherein comparing latencies comprises:
tracking a number of outstanding memory access requests at each channel of the plurality of channels for a history window; and
identifying the first subset based on a number of outstanding memory access requests at each channel during the history window.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
determining, at a scheduler, if a second plurality of threads schedulable for concurrent execution is ready to be scheduled;
in response to determining that a second plurality of threads is not ready to be scheduled, identifying a cause for a stall at the second plurality of threads; and
in response to identifying a cause for the stall other than a memory stall, throttling the voltage or frequency of a memory coupled to the memory bus.

### Claim 13 (depends on 8)

The method of claim 8, further comprising increasing the voltage or frequency of the second subset of the plurality of channels.

### Claim 14 (depends on 8)

The method of claim 8, wherein throttling is limited such that stalls at a scheduler due to outstanding memory requests are lower than a threshold.

### Claim 15

A device, comprising:
a compute unit;
a memory;
a bus comprising a plurality of channels connecting the compute unit to the memory;
a scheduler to schedule a first wavefront comprising a first plurality of threads for execution at the compute unit, the first plurality of threads schedulable for concurrent execution of the same instruction on different data and comprising memory access requests distributed across the plurality of channels to access the memory;
a performance monitor to:
monitor stalls of the first plurality of threads;
identify a first subset of the plurality of channels through which fulfillment of memory access requests is lagging in comparison to a remainder of the plurality of channels, the remainder comprising channels of the plurality of channels not within the first subset; and
a controller to adjust a voltage or a frequency of at least one of the plurality of channels based on the first subset.

### Claim 16 (depends on 15)

The device of claim 15, wherein the controller is to increase the voltage or frequency of the first subset of the plurality of channels.

### Claim 17 (depends on 15)

The device of claim 15, wherein the controller is to throttle the voltage or frequency of the remainder of the plurality of channels.

### Claim 18 (depends on 17)

The device of claim 17, wherein the controller is to limit throttling such that stalls at the scheduler due to outstanding memory requests are lower than a threshold.

### Claim 19 (depends on 15)

The device of claim 15, wherein the scheduler is to:
determine if a second wavefront comprising a second plurality of threads schedulable for concurrent execution is ready to be scheduled; and
in response to determining that a second plurality of threads is not ready to be scheduled, identify a cause for a stall at the second plurality of threads; and
wherein, in response to the scheduler identifying a cause for the stall other than a memory stall, the controller is to throttle the voltage or frequency of the memory.

### Claim 20

A device comprising:
a compute unit;
a memory;
a bus comprising a plurality of channels connecting the compute unit to the memory;
a scheduler to schedule a first plurality of threads for execution at the compute unit, the first plurality of threads schedulable for concurrent execution and comprising memory access requests distributed across the plurality of channels to access the memory;
a performance monitor to:
monitor stalls of the first plurality of threads;
identify a first subset of the plurality of channels through which fulfillment of memory access requests is lagging in comparison to a remainder of the plurality of channels, the remainder comprising channels of the plurality of channels not within the first subset;
measure roundtrip latencies of memory access requests of the first plurality of threads across a second subset of the plurality of channels, the second subset comprising channels for which memory access requests are serviced at a coalescer;
identify a contribution of each channel of the second subset to lagging memory access requests based on the roundtrip latencies; and
a controller to:
adjust a voltage or a frequency of at least one of the plurality of channels based on the first subset; and
adjust the voltage or frequency of the second subset based on the contributions.
