# US 9,355,001 B1 · Method and apparatus for selecting an operating frequency of a central processing unit, based on determining a millions of instruction per second (MIPS) value associated with the central processing unit

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

- Number: US 9,355,001 B1
- Document ID: US9355001B1
- Status: Granted
- Kind: B1
- Application number: 14/260,728
- Filed: 2014-04-24
- Granted: 2016-05-31
- Earliest claimed: 2008-04-17
- Assignees: Marvell International Ltd.
- Applicants: Marvell International Ltd.
- Inventors: Qinwei Gu; Yu Bai
- Web page: https://patentgrep.com/patent/US9355001B1

## CPC

- G06F 11/3062: {where the monitored property is the power consumption (power management in a computing system G06F1/3203)}
- G06F 1/32: Means for saving power
- 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

Embodiments of the present invention provide a method that comprises, within a sample window, determining an active time of a central processing unit (CPU) at an operating frequency. If there are any different operating frequencies within the sample window, the method further comprises determining active times of the CPU at the different operating frequencies within the sample window and, based upon the active times for the operating frequencies within the sample window, calculating a millions of instructions per second (MIPS) value for the sample window. The method further comprises performing a comparison of the MIPS value to a threshold value and, based upon the comparison of the MIPS value to the threshold value, setting an operating frequency of the CPU for a next sample window.

## Claims

### Claim 1

A method comprising:
monitoring an operation of a processing unit within a first time window, wherein within the first time window, the processing unit operates in an active power mode at (i) a first frequency for a first time period, and (ii) a second frequency for a second time period;
determining, (i) based on the first frequency and the first time period, a first factor, and (ii) based on the second frequency and the second time period, a second factor;
based on the first factor and the second factor, determining a millions of instructions per second (MIPS) value for the first time window, wherein the MIPS value for the first time window is based on a ratio of (i) a sum value that is based on a sum of the first factor and the second factor, and (ii) a duration of the first time window; and
based on the MIPS value for the first time window, selecting an operating frequency of the processing unit for a second time window that occurs subsequent to the first time window.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
comparing the MIPS value for the first time window to a threshold value,
wherein selecting the operating frequency of the processing unit for the second time window comprises
based on comparing the MIPS value for the first time window to the threshold value, selecting the operating frequency of the processing unit for the second time window.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the first factor is based on a product of the first frequency and the first time period; and
the second factor is based on a product of the second frequency and the second time period.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
within the first time window, the processing unit operates in the active power mode at a plurality of frequencies, wherein the plurality of frequencies includes the first frequency and the second frequency;
within the first time window and for each frequency of the plurality of frequencies, the processing unit operates in the active power mode for a corresponding time period of a plurality of time periods, wherein the plurality of time periods includes the first time period and the second time period;
the method further comprises
determining a plurality of factors, wherein the plurality of factors includes the first factor and the second factor, wherein each factor of the plurality of factors is based on (i) a corresponding frequency of the plurality of frequencies and (ii) a corresponding time period of the plurality of time periods; and
determining the MIPS value for the first time window further comprises
based on the plurality of factors, determining the MIPS value for the first time window.

### Claim 5 (depends on 4)

The method of claim 4, wherein:
the sum value is further based on a sum of the plurality of factors.

### Claim 6 (depends on 5)

The method of claim 5, wherein each factor of the plurality of factors is based on a product of (i) the corresponding frequency of the plurality of frequencies and (ii) a corresponding duration of the corresponding time period of the plurality of time periods.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
the processing unit operates in the active power mode at the first frequency for the first time period by actively processing threads, while operating at the first frequency, for the first time period; and
the processing unit operates at the second frequency for the second time period by actively processing threads, while operating at the second frequency, for the second time period.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
based on the MIPS value for the first time window, adjusting an operating voltage of the processing unit for the second time window.

### Claim 9 (depends on 1)

The method of claim 1, wherein the selected operating frequency of the processing unit for the second time window is an initial operating frequency of the processing unit at a start of the second time window.

### Claim 10

An apparatus comprising:
a processing unit; and
a power management framework in communication with the processing unit, wherein the power management framework includes a policy manager, wherein the policy manager is configured to
monitor an operation of the processing unit within a first time window, wherein within the first time window, the processing unit operates in an active power mode at (i) a first frequency for a first time period, and (ii) a second frequency for a second time period,
determine, (i) based on the first frequency and the first time period, a first factor, and (ii) based on the second frequency and the second time period, a second factor,
based on the first factor and the second factor, determine a millions of instructions per second (MIPS) value for the first time window, wherein the MIPS value for the first time window is based on a ratio of (i) a sum value that is based on a sum of the first factor and the second factor, and (ii) a duration of the first time window, and
based on the MIPS value for the first time window, select an operating frequency of the processing unit for a second time window that occurs subsequent to the first time window.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the policy manager is further configured to:
compare the MIPS value for the first time window to a threshold value; and
based on comparing the MIPS value for the first time window to the threshold value, select the operating frequency of the processing unit for the second time window.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein:
the first factor is based on a product of the first frequency and the first time period; and
the second factor is based on a product of the second frequency and the second time period.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein:
within the first time window, the processing unit operates in the active power mode at a plurality of frequencies, wherein the plurality of frequencies includes the first frequency and the second frequency;
within the first time window and for each frequency of the plurality of frequencies, the processing unit operates in the active power mode for a corresponding time period of a plurality of time periods, wherein the plurality of time periods includes the first time period and the second time period;
the policy manager is further configured to
determine a plurality of factors, wherein the plurality of factors includes the first factor and the second factor, wherein each factor of the plurality of factors is based on (i) a corresponding frequency of the plurality of frequencies and (ii) a corresponding time period of the plurality of time periods; and
the policy manager is further configured to determine the MIPS value for the first time window by
based on the plurality of factors, determining the MIPS value for the first time window.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein:
the sum value is based on a sum of the plurality of factors.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein each factor of the plurality of factors is based on a product of (i) the corresponding frequency of the plurality of frequencies and (ii) a corresponding duration of the corresponding time period of the plurality of time periods.

### Claim 16 (depends on 10)

The apparatus of claim 10, wherein:
the processing unit operates at the first frequency for the first time period by actively processing threads, while operating at the first frequency, for the first time period; and
the processing unit operates at the second frequency for the second time period by actively processing threads, while operating at the second frequency, for the second time period.

### Claim 17 (depends on 10)

The apparatus of claim 10, the policy manager is further configured to:
based upon the MIPS value for the first time window, adjust an operating voltage of the processing unit for the second time window.

### Claim 18 (depends on 10)

The apparatus of claim 10, wherein the selected operating frequency of the processing unit for the second time window is an initial operating frequency of the processing unit at a start of the second time window.
