# US 8,578,188 B1 · Method and system for selecting an operating frequency for a chip to provide a desired overall power dissipation value for the chip

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

- Number: US 8,578,188 B1
- Document ID: US8578188B1
- Status: Granted
- Kind: B1
- Application number: 13/633,679
- Filed: 2012-10-02
- Granted: 2013-11-05
- Earliest claimed: 2008-04-17
- Assignees: Marvell International Ltd.
- Applicants: Marvell International Ltd.
- Inventors: Yu Bai; Priya Vaidya; Premanand Sakarda
- Web page: https://patentgrep.com/patent/US8578188B1

## CPC

- G06F 1/3228: Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
- G06F 1/324: by lowering clock frequency
- G06F 1/3296: by lowering the supply or operating voltage
- 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

Methods, apparatus, and computer program products for implementing power management within Systems on Chips (SOCs). The method includes selecting an operating frequency for a chip from an operating frequency point set that provides a desired overall power dissipation value.

## Claims

### Claim 1

A method comprising:
providing first values corresponding to dissipation of power of a chip when the chip is active, wherein the first values comprise a first plurality of values of dissipation of power of the chip when the chip is active, and wherein each of the first plurality of values of dissipation of power of the chip corresponds to a respective operating frequency point of a first plurality of operating frequency points of the chip;
providing second values corresponding to dissipation of power of the chip when the chip is idle, wherein the second values comprise a second plurality of values of dissipation of power of the chip when the chip is active, and wherein each of the second plurality of values of dissipation of power of the chip corresponds to a respective operating frequency point of a second plurality of operating frequency points of the chip;
based upon a composition of a workload of a central processing unit (CPU) configured within the chip, analyzing memory statistics at two or more operating frequency points, wherein the two or more of the operating frequency points are included in (i) the first plurality of operating frequency points of the chip and (ii) the second plurality of operating frequency points of the chip;
based upon the memory statistics that have been analyzed, predicting percentage of utilization of the CPU during a future operation of the CPU at each of the two or more operating frequency points;
determining an operating frequency point set that provides third values corresponding to overall power dissipation of the chip at the two or more operating frequency points, wherein the third values are related to (i) the first values at the two or more operating frequency points, (ii) the second values at the two or more chip operating frequency points, and (iii) the predicted percentage of utilization of the CPU during the future operation of the CPU at each of the two or more operating frequency points, wherein each operating frequency in the operating frequency point set is able to provide substantially adequate bandwidth for a current workload of the CPU; and
selecting an operating frequency for the chip from the operating frequency point set, wherein the operating frequency that is selected provides a desired value corresponding to overall power dissipation of the chip while still providing the substantially adequate bandwidth for the current workload of the CPU.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
the operating frequency point set is defined as
{
F
1
:
P
1
=
AP
1
×
CPU
⁢
%
⁡
[
1
]
n
+
IP
1
×
(
1
-
CPU
⁢
%
⁡
[
1
]
n
)
F
2
:
P
2
=
AP
2
×
CPU
⁢
%
⁡
[
2
]
n
+
IP
2
×
(
1
-
CPU
⁢
%
⁡
[
2
]
n
)
…
F
N
:
P
N
=
AP
N
×
CPU
⁢
%
⁡
[
N
]
n
+
IP
N
×
(
1
-
CPU
⁢
%
⁡
[
N
]
n
)
;
and
wherein F represents an operating frequency of the chip, P represents overall power dissipation of the chip at a frequency F, AP represents a value of the first plurality of values corresponding to an active mode power dissipation of the chip, CPU % represents a percentage that the CPU is in the active mode, and IP represents a value of the second plurality of values corresponding to an idle mode power dissipation value of the chip.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the first values are provided from a look-up table; and
the second values are provided from the look-up table.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
sampling actual values corresponding to power dissipation of the chip during a sampling window;
based on the actual values corresponding to power dissipation of the chip that are sampled during the sampling window, determining an average value corresponding to power dissipation of the chip;
determining if an absolute value of a difference exceeds a first predetermined threshold, wherein the difference is determined between (i) a predicted value corresponding to power dissipation of the chip and (ii) the value average value corresponding to power dissipation of the chip; and
if the absolute value exceeds the first predetermined threshold, adjusting an active power component of the predicted value corresponding to power dissipation of the chip.

### Claim 5 (depends on 4)

The method of claim 4, wherein the first predetermined threshold is 10%.

### Claim 6 (depends on 4)

The method of claim 4, wherein the actual values corresponding to power dissipation of the chip are sampled during the sampling window only if the operating frequency for the chip multiplied by a percentage that the CPU is predicted to be in an active mode is less than a second predetermined threshold.

### Claim 7 (depends on 1)

The method of claim 1, wherein the memory statistics include at least a percentage of utilization of the CPU during a prior operation of the CPU to perform the composition of the workload.

### Claim 8

A chip comprising:
a power management framework comprising a policy manager, the policy manager configured to
based upon a composition of a workload of a central processing unit (CPU) configured within the chip, analyze memory statistics at two or more of the operating frequency points,
based upon the memory statistics that have been analyzed, predict a percentage of utilization of the CPU during a future operation of the CPU at each of the two or more operating frequency points,
determine an operating frequency point set that provides first values corresponding to overall power dissipation of the chip at the two or more operating frequency points, wherein the first values are related to
(i) second values at the two or more chip operating frequency points, wherein the second values correspond to dissipation of power of the chip when the chip is active,
(ii) third values at the two or more chip operating frequency points, wherein the third values correspond to dissipation of power of the chip when the chip is idle, and
(iii) the predicted percentage of utilization of the CPU during the future operation of the CPU, wherein each operating frequency in the operating frequency point set is able to provide substantially adequate bandwidth for a current workload of the CPU, and
select an operating frequency for the chip from the operating frequency point set, wherein the operating frequency that is selected provides a desired value corresponding to overall power dissipation of the chip while still providing the substantially adequate bandwidth for the current workload of the CPU.

### Claim 9 (depends on 8)

The chip of claim 8, wherein the operating frequency point set is defined as
{
F
1
:
P
1
=
AP
1
×
CPU
⁢
%
⁡
[
1
]
n
+
IP
1
×
(
1
-
CPU
⁢
%
⁡
[
1
]
n
)
F
2
:
P
2
=
AP
2
×
CPU
⁢
%
⁡
[
2
]
n
+
IP
2
×
(
1
-
CPU
⁢
%
⁡
[
2
]
n
)
…
F
N
:
P
N
=
AP
N
×
CPU
⁢
%
⁡
[
N
]
n
+
IP
N
×
(
1
-
CPU
⁢
%
⁡
[
N
]
n
)
⁢
,
and
wherein F represents an operating frequency of the chip, P represents overall power dissipation of the chip at a frequency F, AP represents an value corresponding to an active mode power dissipation of the chip, CPU % represents a percentage that the CPU is in an active mode, and IP represents an idle mode power dissipation value of the chip.

### Claim 10 (depends on 8)

The chip of claim 8, wherein:
the second values are stored in a look-up table; and
the third values are stored in the look-up table.

### Claim 11 (depends on 8)

The chip of claim 8, wherein the power management framework further comprises a power meter configured to:
sample actual values corresponding to power dissipation of the chip during a sampling window; and
based on the actual values corresponding to power dissipation of the chip that are sampled during the sampling window, determine an average value corresponding to power dissipation of the chip;
wherein the policy manager is further configured to
determine if an absolute value of a difference exceeds a first predetermined threshold, wherein the difference is determined between (i) a predicted value corresponding to power dissipation of the chip and (ii) the value average value corresponding to power dissipation of the chip, and
if the absolute value exceeds the first predetermined threshold, adjust an active power component of the predicted value corresponding to power dissipation of the chip.

### Claim 12 (depends on 11)

The chip of claim 11, wherein the first predetermined threshold is 10%.

### Claim 13 (depends on 11)

The chip of claim 11, wherein the power meter is configured to sample the actual values corresponding to power dissipation of the chip are sampled during the sampling window only if the operating frequency for the chip multiplied by a percentage that the CPU is predicted to be in an active mode is less than a second predetermined threshold.

### Claim 14 (depends on 13)

The chip of claim 13, wherein the second predetermined threshold is 20 million instructions per second.

### Claim 15

A non-transitory computer readable medium having instructions tangibly stored thereon that, if executed, result in:
based upon a composition of a workload of a central processing unit (CPU) configured within a chip, analyze memory statistics at two or more operating frequency points;
based upon the memory statistics that have been analyzed, predict a percentage of utilization of the CPU during a future operation of the CPU at each of the two or more operating frequency points;
determine an operating frequency point set that provides first values corresponding to overall power dissipation of the chip at the two or more operating frequency points, wherein the first values are related to
(i) second values at the two or more chip operating frequency points, wherein the second values correspond to dissipation of power of the chip when the chip is active,
(ii) third values at the two or more chip operating frequency points, wherein the third values correspond to dissipation of power of the chip when the chip is idle, and
(iii) the predicted percentage of utilization of the CPU during a future operation of the CPU, wherein each operating frequency in the operating frequency point set is able to provide substantially adequate bandwidth for a current workload of the CPU; and
select an operating frequency for the chip from the operating frequency point set, wherein the operating frequency that is selected provides a desired value corresponding to overall power dissipation of the chip while still providing the substantially adequate bandwidth for the current workload of the CPU.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the operating frequency point set is defined as
{
F
1
:
P
1
=
AP
1
×
CPU
⁢
%
⁡
[
1
]
n
+
IP
1
×
(
1
-
CPU
⁢
%
⁡
[
1
]
n
)
F
2
:
P
2
=
AP
2
×
CPU
⁢
%
⁡
[
2
]
n
+
IP
2
×
(
1
-
CPU
⁢
%
⁡
[
2
]
n
)
…
F
N
:
P
N
=
AP
N
×
CPU
⁢
%
⁡
[
N
]
n
+
IP
N
×
(
1
-
CPU
⁢
%
⁡
[
N
]
n
)
⁢
,
and
wherein F represents an operating frequency of the chip, P represents overall power dissipation of the chip at a frequency F, AP represents an value corresponding to an active mode power dissipation of the chip, CPU % represents a percentage that the CPU is in an active mode, and IP represents an idle mode power dissipation value of the chip.

### Claim 17 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein:
the second values are stored in a look-up table; and
the third values are stored in the look-up table.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions tangibly stored thereon that, if executed, result in:
sampling actual values corresponding to power dissipation of the chip during a sampling window;
based on the actual values corresponding to power dissipation of the chip that are sampled during the sampling window, determining an average value corresponding to power dissipation of the chip;
determining if an absolute value of a difference exceeds a first predetermined threshold, wherein the difference is determined between (i) a predicted value corresponding to power dissipation of the chip and (ii) the value average value corresponding to power dissipation of the chip; and
if the absolute value exceeds the first predetermined threshold, adjusting an active power component of the predicted value corresponding to power dissipation of the chip.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the actual values corresponding to power dissipation of the chip are sampled during the sampling window only if the operating frequency for the chip multiplied by a percentage that the CPU is predicted to be in an active mode is less than a second predetermined threshold.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein:
the first predetermined threshold is 10%; and
the second predetermined threshold is 20 million instructions per second.
