# US 2021/0263773 A1 · Leveraging thermal profiles of processing tasks to dynamically schedule execution of the processing tasks

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

- Number: US 2021/0263773 A1
- Document ID: US20210263773A1
- Status: Published application
- Kind: A1
- Application number: 16/797,403
- Filed: 2020-02-21
- Published: 2021-08-26
- Earliest claimed: 2020-02-21
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Parth Sanjaybhai Shah
- Web page: https://patentgrep.com/patent/US20210263773A1

## CPC

- 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 11/3058: {Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations (thermal management in cooling arrangements of a computing system G06F1/206)}
- G06F 1/206: {comprising thermal management}
- G06F 1/329: by task scheduling
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/5094: {where the allocation takes into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- G06F 11/3017: {where the computing system is implementing multitasking (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- 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 2201/81: Threshold
- G06F 2209/5019: Workload prediction
- 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

Embodiments relate to a system, program product, and method for leveraging thermal profiles of processing tasks to dynamically schedule execution of the processing tasks. Thermal profiles of the processing tasks are generated, where the thermal profiles include core hardware and core processing measurements and predictions of thermal performance based on the measurements. The execution of the processing tasks are scheduled in processing devices to mitigate a potential for reducing a margin to a hardware thermal limit.

## Claims

### Claim 1

A computer system comprising:
one or more multi-core processing devices, each multi-core processing device of the one or more multi-core processing devices comprising two or more cores, the two or more cores configured to process one or more first instances of one or more processing tasks and one or more second instances of the one or more processing tasks;
one or more memory devices operably coupled to the one or more multi-core processing devices;
one or more hardware thermal counters coupled to each core of the two or more cores;
one or more core processing performance counters coupled to each core of the two or more cores; and
a scheduler module residing within the one or more memory devices, wherein the one or more multi-core processing devices are configured to implement the scheduler module, the scheduler module configured to:
record one or more measurements of the two or more cores contemporaneously with the processing of the one or more first instances of the one or more processing tasks, wherein the one or more measurements include core thermal measurements and core processing performance measurements;
generate, at least partially subject to the one or more measurements, one or more predictions of one or more thermal effects of processing the one or more second instances of the one or more processing tasks on the two or more cores;
generate, subject to the one or more measurements and the one or more predictions of the one or more thermal effects, a thermal profile of each process task of the one or more first instances of the one or more processing tasks and the one or more second instances of the one or more processing tasks, thereby generating one or more task thermal profiles; and
distribute, dynamically, subject to the one or more task thermal profiles, processing of the one or more second instances of the one or more processing tasks to the two or more cores.

### Claim 2 (depends on 1)

The system of claim 1, further comprising the scheduler module configured to:
determine, responsive to the generation of each task thermal profile of the one or more task thermal profiles, a core heating effect of each process task of the one or more first instances of the one or more processing tasks with respect to a predetermined thermal threshold of the two or more cores; and
distinguish, responsive to the core heating effects determinations, the one or more first instances of the one or more processing tasks and their associated one or more task thermal profiles into a first group of processing tasks and a second group of processing tasks, wherein the first group of processing tasks includes a first subset of the one or more first instances of the one or more processing tasks and their associated one or more task thermal profiles that transfer a first amount of heat energy to the two or more cores, the second group of processing tasks includes a second subset of the one or more first instances of the one or more processing tasks and their associated one or more task thermal profiles that transfer a second amount of heat energy to the two or more cores, the first amount of heat energy greater than the second amount of heat energy.

### Claim 3 (depends on 2)

The system of claim 2, further comprising the scheduler module configured to:
schedule the one or more second instances of the one or more processing tasks that are in the first group of processing tasks to one or more first cores of the two or more cores, wherein the one or more first cores of the two or more cores define a first group of cores, the first group of cores having a first thermal condition having a first thermal margin to the predetermined thermal threshold of the two or more cores;
schedule the one or more second instances of the one or more processing tasks that are in the second group of tasks to one or more second cores of the two or more cores, wherein the one or more second cores of the two or more cores define a second group of cores, the second group of cores having a second thermal condition having a second thermal margin to the predetermined thermal threshold of the two or more cores, wherein the second thermal margin is smaller than the first thermal margin;
select the one or more second instances of the one or more processing tasks through a first-come-first-served scheduling scheme; and
bias the first-come-first-served scheduling scheme with the one or more task thermal profiles.

### Claim 4 (depends on 3)

The system of claim 3, further comprising the scheduler module configured to:
mitigate core thermal throttling, the core thermal throttling comprising modulating a frequency of the two or more cores, comprising one or more of:
schedule, subject to the first thermal margin and the second thermal margin, each process task of the one or more second instances of the one or more processing tasks to each core of the two or more cores, thereby decreasing a difference between the first thermal margin and the second thermal margin;
reducing, within the two or more cores, a bandwidth of the one or more second instances of the one or more processing tasks by injecting one or more idle loops into the two or more cores; and
reducing, within each core of the two or more cores, a processing capacity thereof.

### Claim 5 (depends on 4)

The system of claim 4, further comprising the scheduler module configured to:
mitigate core thermal throttling, comprising one or more of:
transfer the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more first cores within the first group of cores from the one or more second cores within the second group of cores;
schedule the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more first cores within the first group of cores;
reschedule the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more second cores within the second group of cores after a predetermined temporal period; and
preempt the one or more second instances of the one or more processing tasks from the first group of processing tasks with the one or more second instances of the one or more processing tasks from the second group of processing tasks within the one or more second cores within the second group of cores.

### Claim 6 (depends on 1)

The system of claim 1, further comprising the scheduler module configured to:
collect, through the one or more hardware thermal counters, one or more temperature measurements of each core of the two or more cores; and
collect, through the one or more core processing performance counters, for each core of the two or more cores, one or more of:
one or more back-end stall measurements;
one or more instructions-per-cycle measurements; and
one or more utilization measurements.

### Claim 7

A computer program product for leveraging thermal profiles of processing tasks, the computer program product comprising:
one or more computer readable storage media; and
program instructions collectively stored on the one or more computer-readable storage media, the program instructions comprising:
program instructions to process one or more first instances of one or more processing tasks and one or more second instances of the one or more processing tasks through two or more cores of one or more multi-core processing devices;
program instructions to record one or more measurements of the two or more cores contemporaneously with the processing of the one or more first instances of the one or more processing tasks, wherein the one or more measurements include core thermal measurements and core processing performance measurements;
program instructions to generate, at least partially subject to the one or more measurements, one or more predictions of one or more thermal effects of processing the one or more second instances of the one or more processing tasks on the two or more cores;
program instructions to generate, subject to the one or more measurements and the one or more predictions of the one or more thermal effects, a thermal profile of the one or more first instances of the one or more processing tasks and the one or more second instances of the one or more processing tasks, thereby generating one or more task thermal profiles; and
program instructions to distribute, dynamically, subject to the one or more task thermal profiles, processing of the one or more second instances of the one or more processing tasks to the two or more cores.

### Claim 8 (depends on 7)

The computer program product of claim 7, the program instructions further comprising:
program instructions to determine, responsive to the generation of the one or more task thermal profiles, a core heating effect of each process task of the one or more first instances of the one or more processing tasks with respect to a predetermined thermal threshold of the two or more cores; and
program instructions to distinguish, responsive to the core heating effects determinations, the one or more first instances of the one or more processing tasks and their associated task thermal profiles into a first group of processing tasks and a second group of processing tasks, wherein the first group of processing tasks includes a first subset of the one or more first instances of the one or more processing tasks and their associated task thermal profiles that transfer a first amount of heat energy to the two or more cores, the second group of processing tasks includes a second subset of the one or more first instances of the one or more processing tasks and their associated task thermal profiles that transfer a second amount of heat energy to the two or more cores, the first amount of heat energy greater than the second amount of heat energy.

### Claim 9 (depends on 8)

The computer program product of claim 8, the program instructions further comprising:
program instructions to schedule the one or more second instances of the one or more processing tasks that are in the first group of processing tasks to one or more first cores of the two or more cores, wherein the one or more first cores of the two or more cores define a first group of cores, the first group of cores having a first thermal condition having a first thermal margin to the predetermined thermal threshold of the two or more cores; and
program instructions to schedule the one or more second instances of the one or more processing tasks that are in the second group of tasks to one or more second cores of the two or more cores, wherein the one or more second cores of the two or more cores define a second group of cores, the second group of cores having a second thermal condition having a second thermal margin to the predetermined thermal threshold of the two or more cores, wherein the second thermal margin is smaller than the first thermal margin.

### Claim 10 (depends on 9)

The computer program product of claim 9, the program instructions further comprising:
program instructions to mitigate core thermal throttling, the core thermal throttling comprising modulating a frequency of the two or more cores, comprising one or more of:
program instructions to schedule, subject to the first thermal margin and the second thermal margin, each process task of the one or more second instances of the one or more processing tasks to each core of the two or more cores, thereby decreasing a difference between the first thermal margin and the second thermal margin, the program instructions further comprising:
program instructions to transfer the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more first cores within the first group of cores from the one or more second cores within the second group of cores;
program instructions to schedule the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more first cores within the first group of cores; and
program instructions to reschedule the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more second cores within the second group of cores after a predetermined temporal period;
program instructions to preempt the one or more second instances of the one or more processing tasks from the first group of processing tasks with the one or more second instances of the one or more processing tasks from the second group of processing tasks within the one or more second cores within the second group of cores;
program instructions to reduce, within the two or more cores, a bandwidth of the one or more second instances of the one or more processing tasks by injecting one or more idle loops into the two or more cores; and
program instructions to reduce, within each core of the two or more cores, a processing capacity thereof.

### Claim 11 (depends on 9)

The computer program product of claim 9, the program instructions further comprising:
program instructions to select the one or more second instances of the one or more processing tasks through a first-come-first-served scheduling scheme; and
program instructions to bias the first-come-first-served scheduling scheme with the one or more task thermal profiles.

### Claim 12 (depends on 8)

The computer program product of claim 8, the program instructions further comprising:
program instructions collect one or more temperature measurements of each core of the two or more cores;
program instructions collect one or more back-end stall measurements within each core of the two or more cores;
program instructions collect one or more instructions-per-cycle measurements within each core of the two or more cores; and
program instructions collect one or more utilization measurements of the one or more second instances of the one or more processing tasks.

### Claim 13

A computer-implemented method comprising:
processing one or more first instances of one or more processing tasks through two or more cores of one or more multi-core processing devices;
recording one or more measurements of the two or more cores contemporaneously with the processing of the one or more first instances of the one or more processing tasks, wherein the one or more measurements include core thermal measurements and core processing measurements;
generating, at least partially subject to the one or more measurements, one or more predictions of one or more thermal effects of processing the one or more second instances of the one or more processing tasks on the two or more cores;
generating, subject to the one or more measurements and the one or more predictions of the one or more thermal effects, a thermal profile of the one or more first instances of the one or more processing tasks, thereby generating one or more task thermal profiles; and
distributing, dynamically, subject to the one or more task thermal profiles, processing of the one or more second instances of the one or more processing tasks to the two or more cores.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
determining, responsive to the generation of the one or more task thermal profiles, a core heating effect of each process task of the one or more first instances of the one or more processing tasks with respect to a predetermined thermal threshold of the two or more cores; and
distinguishing, responsive to the core heating effects determinations, the one or more first instances of the one or more processing tasks and their associated task thermal profiles into a first group of processing tasks and a second group of processing tasks, wherein the first group of processing tasks includes a first subset of the one or more first instances of the one or more processing tasks and their associated task thermal profiles that transfer a first amount of heat energy to the two or more cores, the second group of processing tasks includes a second subset of the one or more first instances of the one or more processing tasks and their associated task thermal profiles that transfer a second amount of heat energy to the two or more cores, the first amount of heat energy greater than the second amount of heat energy.

### Claim 15

The method of 14, further comprising:
defining a bounded performance impact for applications including the one or more processing tasks running in a thermally constrained environment, comprising estimating a thermal margin for a current workload mix at runtime.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
scheduling the one or more second instances of the one or more processing tasks that are in the first group of processing tasks to one or more first cores of the two or more cores, wherein the one or more first cores of the two or more cores define a first group of cores, the first group of cores having a first thermal condition having a first thermal margin to the predetermined thermal threshold of the two or more cores; and
scheduling the one or more second instances of the one or more processing tasks that are in the second group of tasks to one or more second cores of the two or more cores, wherein the one or more second cores of the two or more cores define a second group of cores, the second group of cores having a second thermal condition having a second thermal margin to the predetermined thermal threshold of the two or more cores, wherein the second thermal margin is smaller than the first thermal margin.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
mitigating core thermal throttling, the core thermal throttling comprising modulating a frequency of the two or more cores, comprising one or more of:
scheduling, subject to the first thermal margin and the second thermal margin, each process task of the one or more second instances of the one or more processing tasks to each core of the two or more cores, thereby decreasing a difference between the first thermal margin and the second thermal margin;
reducing, within the two or more cores, a bandwidth of the one or more second instances of the one or more processing tasks by injecting one or more idle loops into the two or more cores; and
reducing, within each core of the two or more cores, a processing capacity thereof.

### Claim 18 (depends on 17)

The method of claim 17, wherein scheduling each process task comprises:
transferring the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more first cores within the first group of cores from the one or more second cores within the second group of cores;
scheduling the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more first cores within the first group of cores;
rescheduling the one or more second instances of the one or more processing tasks from the first group of processing tasks to the one or more second cores within the second group of cores after a predetermined temporal period; and
preempting the one or more second instances of the one or more processing tasks from the first group of processing tasks with the one or more second instances of the one or more processing tasks from the second group of processing tasks within the one or more second cores within the second group of cores.

### Claim 19 (depends on 16)

The method of claim 16, wherein scheduling each process task comprises:
selecting the one or more second instances of the one or more processing tasks through a first-come-first-served scheduling scheme; and
biasing the first-come-first-served scheduling scheme with the one or more task thermal profiles.

### Claim 20 (depends on 13)

The method of claim 13, wherein generating the thermal profile including thermal measurements and core processing performance measurements comprises:
collecting one or more temperature measurements of each core of the two or more cores;
collecting one or more back-end stall measurements within each core of the two or more cores;
collecting one or more instructions-per-cycle measurements within each core of the two or more cores; and
collecting one or more utilization measurements within each core of the two or more cores.
