# US 2020/0393980 A1 · Systems and methods for energy proportional scheduling

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

- Number: US 2020/0393980 A1
- Document ID: US20200393980A1
- Status: Published application
- Kind: A1
- Application number: 16/745,890
- Filed: 2020-01-17
- Published: 2020-12-17
- Earliest claimed: 2015-01-02
- Assignees: Reservoir Labs, Inc.
- Applicants: Reservoir Labs, Inc.
- Inventors: Thomas Henretty; Ann Johnson; Athanasios Konstantinidis; Janice O. Mcmahon; Benoit J. Meister; Paul D. Mountcastle; Aale Naqvi; Benoit Pradelle; Tahina Ramananandro; Sanket Tavarageri; Richard A. Lethin
- Web page: https://patentgrep.com/patent/US20200393980A1

## CPC

- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0638: {Organizing or formatting or addressing of data}
- G06F 3/0671: {In-line storage system}
- G06F 8/4432: {Reducing the energy consumption}
- G06F 8/4441: {Reducing the execution time required by the program code}
- G06F 8/453: {Data distribution}
- 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 compilation system using an energy model based on a set of generic and practical hardware and software parameters is presented. The model can represent the major trends in energy consumption spanning potential hardware configurations using only parameters available at compilation time. Experimental verification indicates that the model is nimble yet sufficiently precise, allowing efficient selection of one or more parameters of a target computing system so as to minimize power/energy consumption of a program while achieving other performance related goals. A voltage and/or frequency optimization and selection is presented which can determine an efficient dynamic hardware configuration schedule at compilation time. In various embodiments, the configuration schedule is chosen based on its predicted effect on energy consumption. A concurrency throttling technique based on the energy model can exploit the power-gating features exposed by the target computing system to increase the energy efficiency of programs.

## Claims

### Claim at position 1

1-21. (canceled)

### Claim 22

A system for optimizing energy consumption of a data processor while executing a program, the system comprising:
a first processor; and
a first memory in electrical communication with the first processor, the first memory comprising instructions which, when executed by a processing unit comprising at least one of the first processor and a second processor, and in electronic communication with a memory module comprising at least one of the first memory and a second memory, program the processing unit to:
(a) generate within the program a first power-coherent region;
(b) compute using an energy model a plurality of estimated energy consumption values for the first power-coherent region, each value corresponding to a respective power setting;
(c) identify an energy-minimizing power setting corresponding to a minimum of the plurality of the estimated energy consumption values; and
(d) insert in the first power-coherent region a power setting operation setting at least one parameter of the data processor according to the energy-minimizing power setting.

### Claim 23 (depends on 22)

The system of claim 22, wherein the processing unit is programmed to perform operations (a) through (d) via static analysis of the program and without executing any portion of the program.

### Claim 24 (depends on 22)

The system of claim 22, wherein at least one of the operations (a) and (b) is based on a polyhedral model of the program.

### Claim 25 (depends on 22)

The system of claim 22, wherein to generate the first power-coherent region, the processing unit is programmed to:
partition program instructions into a plurality of groups, each group having a specified number of instructions; and
determine a type of a first group and merging another group into the first group if the type of the first group after the merging would not change and, otherwise designating the other group as a second group.

### Claim 26 (depends on 25)

The system of claim 25, wherein the type of the first group comprises one of compute intense and memory intense.

### Claim 27 (depends on 25)

The system of claim 25, wherein the processing unit is further programmed to designate a group having a number of instructions at most equal to a specified threshold as a default power-coherent region.

### Claim 28 (depends on 22)

The system of claim 22, wherein the energy model comprises at least one of: an operating frequency of the data processor, an operating voltage of the data processor, a number of processing units in the data processor, a number of computations in the first power-coherent region, an amount of memory accessed by the first power-coherent region from a first memory level; power consumed by a unit of the data processor during one computation at a specified frequency, power consumed by a unit of the data processor for accessing one byte of data from a specified level of memory at the specified frequency, performance of a unit of the data processor at the specified frequency, and available bandwidth of the data processor at the specified level and using a specified number of processing units.

### Claim 29 (depends on 22)

The system of claim 22, wherein to compute an estimated energy consumption value corresponding to a frequency setting, the processing unit is programmed to compute at least one of:
energy consumed by a plurality of computational operations in the program using: a total number of computational operations in the first power-coherent region and average energy consumed by a single computational operation at the frequency setting; and
energy consumed by a plurality of memory access operations in the first power-coherent region using: a total number of memory accesses within the first power-coherent region at at least one memory level, available memory access bandwidth at the at least one memory level at the frequency setting, average power consumption by a single memory access operation at the frequency setting, and a number of processing units in the data processor.

### Claim 30 (depends on 29)

The system of claim 29, wherein the available memory access bandwidth at the at least one memory level at the frequency setting comprises one of:
a memory access bandwidth computed as function of: (i) a memory access bandwidth required by one processing unit at the at least one memory level at the frequency setting, and (ii) the number of processing units in the data processor; and
a maximum memory access bandwidth available at the at least one memory level at the frequency setting.

### Claim 31 (depends on 29)

The system of claim 29, wherein, the processing unit is further programmed to:
compute a number of memory accesses required by a data structure within the first power-coherent region;
compute a stride between consecutive memory accesses by the data structure;
if the stride does not exceed a bulk-transfer size associated with a first memory level, associate the number of memory accesses required by the data structure with the first memory level; and
otherwise associate the number of memory accesses required by the data structure with a second memory level.

### Claim 32 (depends on 29)

The system of claim 29, wherein the power setting operation setting at least one parameter of the data processor:
is inserted at a beginning of the first power-coherent region; and
adjusts at least one of a frequency of the data processor and an operating voltage of the data processor.

### Claim 33 (depends on 32)

The system of claim 32, wherein, the processing unit is further programmed to:
insert at an end of the first power-coherent region another power setting operation that at least one of: (i) adjusts a frequency of the data processor to a default frequency, and (ii) adjusts an operating voltage of the data processor to a default operating voltage.

### Claim 34 (depends on 33)

The system of claim 33, wherein, the processing unit is further programmed to:
identify a second power-coherent region within execution proximity of the first power-coherent region;
compare: (i) the power setting operation inserted at the beginning in the first power-coherent region, (ii) the power setting operation inserted at the end in the first power-coherent region, and (iii) a power setting operation inserted in the second power-coherent region; and
based on the comparison, remove at least one of: (i) the power setting operation inserted at the end in the first power-coherent region and (ii) the power setting operation inserted in the second power-coherent region.

### Claim 35

A system for optimizing energy consumption of a data processor comprising a plurality of processing units, the system comprising:
a first processor; and
a first memory in electrical communication with the first processor, the first memory comprising instructions which, when executed by a processing unit comprising at least one of the first processor and a second processor, and in electronic communication with a memory module comprising at least one of the first memory and a second memory, program the processing unit to:
compute for a particular operation frequency and a particular value of a parameter of a resource, a required single-unit resource capacity for executing a specified program using one unit of the plurality of processing units;
compute using the single-unit resource capacity a maximum number of processing units Nmax, such that using more than Nmax processing units would exceed an available resource capacity at the particular operation frequency and the particular value of the resource parameter;
estimate, for each value of a number of processing units N in a range from 1 up to Nmax, an energy consumption for executing the specified program using N processing units; and
determine an optimized number of processing units Nopt for which the estimated energy consumption is minimum.

### Claim 36 (depends on 35)

The system of claim 35, wherein:
the resource comprises data-processor memory bandwidth; and
the resource parameter comprises a memory level.

### Claim 37 (depends on 35)

The system of claim 35, wherein the resource comprises data-processor input-output (I/O) bandwidth.

### Claim 38

A system for optimizing energy consumption of a data processor comprising a plurality of processing units, the system comprising:
a first processor; and
a first memory in electrical communication with the first processor, the first memory comprising instructions which, when executed by a processing unit comprising at least one of the first processor and a second processor, and in electronic communication with a memory module comprising at least one of the first memory and a second memory, program the processing unit to:
compute for a particular operation frequency and a particular memory level, a required single-unit memory bandwidth for executing a specified program using one unit of the plurality of processing units;
compute using the single-unit memory bandwidth a maximum number of processing units Nmax, such that using more than Nmax processing units would exceed an available memory bandwidth at the particular operation frequency and the particular memory level;
for each value of a number of processing units N in a range from 1 up to Nmax, estimate using an energy model an energy consumption for executing the specified program using N processing units; and
determine an optimized number of processing units Nopt for which the estimated energy consumption is minimum.

### Claim 39 (depends on 38)

The system of claim 38, wherein to compute the required single-unit memory bandwidth, the processing unit is programmed to:
compute a stride distance between two consecutive memory accesses associated with the particular memory level by a selected portion of the specified program; and
compare the stride distance with a size of single access at the particular memory level.

### Claim 40 (depends on 38)

The system of claim 38, wherein the energy model comprises:
the number of processing units; and
at least one of: an operating frequency of the data processor, an operating voltage of the data processor, a number of computations in a program, an amount of memory at a specified level accessed by the program; power consumed by a unit of the data processor during one computation at a specified frequency, power consumed by a unit of the data processor for accessing one byte of data from a specified level of memory at the specified frequency, and performance of a unit of the data processor at the specified frequency.

### Claim 41 (depends on 38)

The system of claim 38, wherein, the processing unit is further programmed to set a degree of maximum parallelization to the optimized number of processing units Nopt.

### Claim 42 (depends on 38)

The system of claim 38, wherein, the processing unit is further programmed to generate a command directing at least one processing unit to enter a sleep mode when a number of processing units operating concurrently exceeds the optimized number of processing units Nopt.
