# US 2012/0233477 A1 · Dynamic core selection for heterogeneous multi-core systems

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

- Number: US 2012/0233477 A1
- Document ID: US20120233477A1
- Status: Published application
- Kind: A1
- Application number: 13/046,031
- Filed: 2011-03-11
- Published: 2012-09-13
- Earliest claimed: 2011-03-11
- Assignees: Intel Corporation
- Inventors: Youfeng Wu; Shiliang Hu; Edson Borin; Cheng Wang
- Web page: https://patentgrep.com/patent/US20120233477A1

## CPC

- G06F 1/329: by task scheduling
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- 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 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/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 11/3409: {for performance assessment}
- G06F 11/3452: {Performance evaluation by statistical analysis}
- G06F 2201/81: Threshold
- G06F 2201/865: Monitoring of software
- G06F 2201/88: Monitoring involving counting
- G06F 2209/501: Performance criteria
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- Y02D 30/50: in wire-line communication networks, e.g. low power modes or reduced link rate
- 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

Dynamically switching cores on a heterogeneous multi-core processing system may be performed by executing program code on a first processing core. Power up of a second processing core may be signaled. A first performance metric of the first processing core executing the program code may be collected. When the first performance metric is better than a previously determined core performance metric, power down of the second processing core may be signaled and execution of the program code may be continued on the first processing core. When the first performance metric is not better than the previously determined core performance metric, execution of the program code may be switched from the first processing core to the second processing core.

## Claims

### Claim 1

A method of dynamically switching cores on a heterogeneous multi-core processing system comprising:
executing program code on a first processing core of the heterogeneous multi-core processing system, the first processing core being of a first type;
monitoring performance and collecting statistics of the first processing core executing the program code;
predicting performance of executing the program code on a second processing core of the heterogeneous multi-core processing system based at least in part on the monitored performance and collected statistics of the first processing core, the second processing core being of a second type, different than the first type; and
when the predicted performance of executing the program code on the second processing core is better than the performance of the first processing core executing the program code, switching execution of the program code from the first processing core to the second processing core.

### Claim 2 (depends on 1)

The method of claim 1, further comprising powering up the second processing core from a low power state when the predicted performance of executing the program code on the second processing core is better than the performance of the first processing core executing the program code.

### Claim 3 (depends on 1)

The method of claim 1, further comprising powering down the first processing core to a low power state when the predicted performance of executing the program code on the second processing core is better than the performance of the first processing core executing the program code.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first processing core comprises an out-of-order processing core and the second processing core comprises an in-order processing core.

### Claim 5 (depends on 1)

The method of claim 1, wherein the second processing core comprises an out-of-order processing core and the first processing core comprises an in-order processing core.

### Claim 6 (depends on 1)

The method of claim 1, wherein predicting the performance of the second processing core comprises executing a plurality of code segments on both the first processing core and the second processing core, collecting the respective performance information and statistics of the first and second processing cores while executing the pieces of code, and determining a best fit function F such that differences between F (performance information and statistics of the first core) and the performance of the second processing core are minimized.

### Claim 7 (depends on 1)

A machine readable medium including code, which when executed by the machine, causes the machine to perform the operations of claim 1.

### Claim 8

A heterogeneous multi-core processing system comprising: an integrated circuit including
a first processing core of a first type adapted to execute a program code;
a second processing core of a second type adapted to execute the program code, the first type being different than the second type; and
a code distribution module adapted to monitor performance and collect statistics of the first processing core executing the program code, predict the performance of executing the program code on the second processing core based at least in part on the monitored performance and collected statistics of the first processing core; and when the predicted performance of executing the program code on the second processing core is better than the performance of the first processing core executing the program code, switch execution of the program code from the first processing core to the second processing core.

### Claim 9 (depends on 8)

The heterogeneous multi-core processing system of claim 8, wherein the code distribution module is adapted to power up the second processing core from a low power state when the predicted performance of executing the program code on the second processing core is better than the performance of the first processing core executing the program code.

### Claim 10 (depends on 8)

The heterogeneous multi-core processing system of claim 8, wherein the code distribution module is further adapted to power down the first processing core to a low power state when the predicted performance of executing the program code on the second processing core is better than the performance of the first processing core executing the program code.

### Claim 11 (depends on 8)

The heterogeneous multi-core processing system of claim 8, wherein the first processing core comprises an out-of-order processing core and the second processing core comprises an in-order processing core.

### Claim 12 (depends on 8)

The heterogeneous multi-core processing system of claim 8, wherein the second processing core comprises an out-of-order processing core and the first processing core comprises an in-order processing core.

### Claim 13

A method of dynamically switching cores on a heterogeneous multi-core processing system comprising:
executing program code on a first processing core of the heterogeneous multi-core processing system for a first number of cycles, the first processing core being of a first type;
signaling power up of a second processing core of the heterogeneous multi-core processing system, the second processing core being of a second type, different than the first type;
collecting a first performance metric of the first processing core executing the program code for a second number of cycles;
when the first performance metric is better than a previously determined core performance metric, signaling power down of the second processing core and continuing execution of the program code on the first processing core; and
when the first performance metric is not better than the previously determined core performance metric, switching execution of the program code from the first processing core to the second processing core and collecting a second performance metric of the second processing core executing the program code for the second number of cycles.

### Claim 14 (depends on 13)

The method of claim 13, further comprising when the second performance metric is not better than the first performance metric, switching execution of the program code from the second processing core back to the first processing core, and signaling power down of the second processing core.

### Claim 15 (depends on 14)

The method of claim 14, further comprising when the second performance metric is better than the first performance metric, signaling power down of the first processing core and setting the previously determined core performance metric to an average of the first performance metric and the second performance metric.

### Claim 16 (depends on 13)

The method of claim 13, wherein signaling power up of the second processing core comprises signaling power up a third number of cycles before the end of the sum of the first number of cycles and the second number of cycles.

### Claim 17 (depends on 13)

The method of claim 13, further comprising setting the previously determined core performance metric to the previously determined core performance metric multiplied by an inflation factor when the first performance metric is better than the previously determined core performance metric.

### Claim 18 (depends on 13)

The method of claim 13, further comprising forcing a switch of execution of the program code from the first processing core to the second processing core and collecting a second performance metric of the second processing core executing the program code for the second number of cycles, at least once for every K comparisons of the first performance metric and the previously determined core performance metric, wherein K is a natural number.

### Claim 19 (depends on 13)

The method of claim 13, wherein the first processing core comprises an out-of-order processing core and the second processing core comprises an in-order processing core.

### Claim 20 (depends on 13)

The method of claim 13, wherein the second processing core comprises an out-of-order processing core and the first processing core comprises an in-order processing core.

### Claim 21 (depends on 13)

A machine readable medium including code, which when executed by the machine, causes the machine to perform the operations of claim 13.

### Claim 22

A heterogeneous multi-core processing system comprising: an integrated circuit including
a first processing core of a first type adapted to execute a program code;
a second processing core of a second type adapted to execute the program code, the first type being different than the second type; and
a code distribution module adapted to cause execution of the program code on the first processing core for a first number of cycles, to signal power up of the second processing core, and to collect a first performance metric of the first processing core executing the program code for a second number of cycles;
wherein when the first performance metric is better than a previously determined core performance metric, the code distribution module is adapted to signal power down of the second processing core and continue execution of the program code on the first processing core; and
wherein when the first performance metric is not better than the previously determined core performance metric, the code distribution module is adapted to switch execution of the program code from the first processing core to the second processing core and collect a second performance metric of the second processing core executing the program code for the second number of cycles.

### Claim 23 (depends on 22)

The heterogeneous multi-core processing system of claim 22, wherein when the second performance metric is not better than the first performance metric, the code distribution modules is adapted to switch execution of the program code from the second processing core back to the first processing core, and signal power down of the second processing core.

### Claim 24 (depends on 23)

The heterogeneous multi-core processing system of claim 23, wherein when the second performance metric is better than the first performance metric, the code distribution module is adapted to signal power down of the first processing core and set the previously determined core performance metric to an average of the first performance metric and the second performance metric.

### Claim 25 (depends on 22)

The heterogeneous multi-core processing system of claim 22, wherein signaling power up of the second processing core comprises signaling power up a third number of cycles before the end of the sum of the first number of cycles and the second number of cycles.

### Claim 26 (depends on 22)

The heterogeneous multi-core processing system of claim 22, wherein the code distribution module is further adapted to set the previously determined core performance metric to the previously determined core performance metric multiplied by an inflation factor when the first performance metric is better than the previously determined core performance metric.

### Claim 27 (depends on 22)

The heterogeneous multi-core processing system of claim 22, wherein the code distribution module is further adapted to force a switch of execution of the program code from the first processing core to the second processing core and collect a second performance metric of the second processing core executing the program code for the second number of cycles, at least once for every K comparisons of the first performance metric and the previously determined core performance metric, wherein K is a natural number.

### Claim 28 (depends on 22)

The heterogeneous multi-core processing system of claim 22, wherein the first processing core comprises an out-of-order processing core and the second processing core comprises an in-order processing core.

### Claim 29 (depends on 22)

The heterogeneous multi-core processing system of claim 22, wherein the second processing core comprises an out-of-order processing core and the first processing core comprises an in-order processing core.
