# US 2021/0173715 A1 · Method of task transition between heterogenous processors

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

- Number: US 2021/0173715 A1
- Document ID: US20210173715A1
- Status: Published application
- Kind: A1
- Application number: 16/709,404
- Filed: 2019-12-10
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Alexander J. Branover; Benjamin Tsien; Elliot H. Mednick
- Web page: https://patentgrep.com/patent/US20210173715A1

## CPC

- G06F 9/5044: {considering hardware capabilities}
- G06F 1/3228: Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
- G06F 1/329: by task scheduling
- G06F 1/3293: by switching to a less power-consuming processor, e.g. sub-CPU
- G06F 9/4856: {resumption being on a different machine, e.g. task migration, virtual machine migration (G06F9/5088 takes precedence)}
- G06F 9/5088: {involving task migration}
- 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/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3062: {where the monitored property is the power consumption (power management in a computing system G06F1/3203)}
- G06F 11/3409: {for performance assessment}
- G06F 2201/81: Threshold
- G06F 2209/501: Performance criteria
- G06F 2209/5022: Workload threshold
- G06F 2209/508: Monitor
- 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 method, system, and apparatus determines that one or more tasks should be relocated from a first processor to a second processor by comparing performance metrics to associated thresholds or by using other indications. To relocate the one or more tasks from the first processor to the second processor, the first processor is stalled and state information from the first processor is copied to the second processor. The second processor uses the state information and then services incoming tasks instead of the first processor.

## Claims

### Claim 1

A method for relocating a computer-implemented task from a relatively less-powerful processor to a relatively more-powerful processor, the method comprising:
monitoring one or more metrics associated with execution of the task by the relatively less-powerful processor;
comparing at least one metric of the one or more metrics to a threshold; and
selectively relocating the task to the relatively more-powerful processor and executing the task on the relatively more-powerful processor based on the comparing.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least one metric includes a core utilization metric of the relatively less-powerful processor.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
the core utilization metric includes an indication of a duration of time that the less-powerful processor is running at maximal speed,
the threshold is an indication of a duration of time threshold, and
the task is relocated to the relatively more-powerful processor on a condition that the indication of the duration of time that the less-powerful processor is running at maximal speed is greater than the duration of time threshold.

### Claim 4 (depends on 1)

The method of claim 1, wherein the at least one metric includes a memory utilization metric associated with the relatively less-powerful processor.

### Claim 5 (depends on 4)

The method of claim 4, wherein:
the memory utilization metric includes an indication of a duration of time that a memory is operating at a maximal memory performance state,
the threshold is an indication of a duration of time threshold, and
the task is relocated to the relatively more-powerful processor on a condition that the indication of the duration of time that the less-powerful powerful processor is running at maximal speed is greater than the duration of time threshold.

### Claim 6 (depends on 1)

The method of claim 1, wherein the at least one metric of the one or more metrics includes a direct memory access (DMA) data rate.

### Claim 7

A method for relocating a computer-implemented task from a relatively more-powerful processor to a relatively less-powerful processor, the method comprising:
monitoring one or more metrics associated with execution of the task by the relatively more-powerful processor;
comparing at least one metric of the one or more metrics to a threshold; and
selectively relocating the task to the relatively less-powerful processor and executing the task on the relatively less-powerful processor based on the comparing.

### Claim 8 (depends on 7)

The method of claim 7, wherein:
the at least one metric includes an indication of a duration of time during which a single core of the relatively more-powerful processor is used,
the threshold is an indication of a duration of time threshold, and
the task is relocated to the relatively less-powerful processor on a condition that the indication of the duration of time during which the single core of the relatively more-powerful processor is used is less than the duration of time threshold.

### Claim 9 (depends on 7)

The method of claim 7, wherein the at least one metric includes a core utilization metric of the relatively more-powerful processor.

### Claim 10 (depends on 9)

The method of claim 9, wherein:
the core utilization metric of the relatively more-powerful processor includes an average utilization over an interval of time,
the threshold is an indication of a utilization threshold, and
the task is relocated to the relatively less-powerful processor on a condition that the average utilization over an interval of time is less than the utilization threshold.

### Claim 11 (depends on 9)

The method of claim 9, wherein:
the core utilization metric of the relatively more-powerful processor includes an idle state average residency,
the threshold is an indication of an idle state threshold, and
the task is relocated to the relatively less-powerful processor on a condition that the idle state average residency is greater than the idle state threshold.

### Claim 12 (depends on 7)

The method of claim 7, wherein:
the at least one metric includes a memory utilization metric associated with the relatively less-powerful processor,
the threshold is a memory utilization threshold, and
the task is relocated to the relatively less-powerful processor on a condition that the memory utilization metric is less than the memory utilization threshold.

### Claim 13

A method of task relocation from a first processor to a second processor, the method comprising:
placing the first processor into an idle state or a stalled state;
saving the architecture state of the first processor in a first memory location;
copying the architecture state from the first memory location to a second memory location;
redirecting an interrupt to the second processor;
restoring, by the second processor, the architecture state from the second memory location;
fetching, by the second processor, an interrupt service routine (ISR) address;
servicing, by the second processor, the ISR using the ISR address; and
executing one or more subsequent tasks by the second processor while the first processor remains in the idle state or the stalled state.

### Claim 14 (depends on 13)

The method of claim 13, wherein the first memory location is associated with the first processor and the second memory location is associated with the second processor.

### Claim 15 (depends on 13)

The method of claim 13, wherein the architecture state includes one or more register settings and one or more flag settings.

### Claim 16 (depends on 13)

The method of claim 13, wherein the copying comprises adjusting the architecture state.

### Claim 17 (depends on 13)

The method of claim 13, wherein an incoming interrupt for the first processor is stalled until the redirecting.

### Claim 18 (depends on 13)

The method of claim 13, wherein the ISR address is fetched from a local advanced programming interrupt controller (LAPIC).

### Claim 19 (depends on 13)

The method of claim 13, wherein:
the first processor is a relatively more-powerful processor;
the second processor is a relatively less-powerful processor; and
the method further comprises:
determining that the relatively more-powerful processor is under-utilized; and
relocating one or more tasks to the second processor based on the determining.

### Claim 20 (depends on 13)

The method of claim 13, wherein:
the first processor is a relatively less-powerful processor;
the second processor is a relatively more-powerful processor; and
the method further comprises:
determining that the relatively less-powerful processor is over-utilized; and
relocating one or more tasks to the second processor based on the determining.
