# US 2013/0097437 A9 · Method, apparatus, and system for energy efficiency and energy conservation including optimizing c-state selection under variable wakeup rates

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

- Number: US 2013/0097437 A9
- Document ID: US20130097437A9
- Status: Published application
- Kind: A9
- Application number: 13/339,284
- Filed: 2011-12-28
- Published: 2013-04-18
- Earliest claimed: 2005-12-30
- Assignees: Intel Corporation
- Inventors: Alon Naveh; Eliezer Weissmann; Ofer Nathan; Nadav Shulman
- Web page: https://patentgrep.com/patent/US20130097437A9

## CPC

- G06F 1/3275: {Power saving in memory, e.g. RAM, cache}
- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- G06F 1/3206: Monitoring of events, devices or parameters that trigger a change in power modality
- G06F 1/3243: {Power saving in microcontroller unit}
- G06F 1/3246: by software initiated power-off
- 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

A processor may include power management techniques to, dynamically, chose an optimal C-state for the processing core. The measurement of real workloads on the OSes exhibit two important observations (1) the bursts of high interrupt rate are interspersed between the low interrupt rate periods and long periods of high activity levels; and (2) the interrupt rate may, suddenly, fall below an interrupt rate (of 1 milli-second, for example) that is typical of the current operating systems (OS). Instead of determining the C-state based on the stale data stored in the counters, the power control logic may determine an optimal C-state by overriding the C-state determined by the OS or any other power monitoring logic. The power control logic may, dynamically, determine an optimal C-state based on the CPU idle residency times and variable rate wakeup events to match the expected wakeup event rate.

## Claims

### Claim 1

A processor to support energy conservation techniques, comprising:
a plurality of processing cores,
an uncore area, and
a power management unit,
wherein the power management unit to,
receive a request from an operating system, wherein the request includes a first power saving state into which the processor is to be placed,
demote the processor to a second power state, which is a shallower power saving state than the first power state if a low activity period of the processor overlaps with a burst of high interrupt rate, and
un-demote the processor to a third power saving state, which is a deeper power saving state than the first power saving state in response to determining that an interrupt rate is low,
wherein the power management unit to proactively transition the processor into deeper power saving states even in the absence of a wake-up interrupt from an operating system.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the power management unit to un-demote the processor to a fourth state power saving state, which is deeper than third power saving state if a sleep duration of the processor in the third power saving state exceeds a demotion threshold even without receiving an interrupt from an operating system.

### Claim 3 (depends on 2)

The processor of claim 2, wherein the power management unit to,
track the sleep duration of the processor in the third power saving state, and
increase the rate of transition from one power saving state to an even deeper power saving state during the low interrupt period.

### Claim 4 (depends on 3)

The processor of claim 3, wherein the power management unit to increase the rate of transition between one power saving state to an even deeper power state during a zero interrupt period.

### Claim 5 (depends on 4)

The processor of claim 4, wherein the power management unit to increase the rate of transition from one power saving state to a shallower power saving state in response to an occurrence of high interrupt rate.

### Claim 6 (depends on 5)

The processor of claim 5, the power management unit further comprises a demotion counter to track the sleep duration, wherein the power management unit to demote the processor to the shallower power saving state if the sleep duration of the processor in the second power state is less than the demotion threshold.

### Claim 7 (depends on 6)

The processor of claim 6, wherein the power management unit to,
increment the demotion counter by a demotion delta value, wherein the demotion delta value represents a rate at which the demotion counter is incremented or decremented, and
reset the demotion counter to erase interrupts, which have occurred outside a window period.

### Claim 8

A method to support energy conservation techniques in a processor, comprising:
receiving a request from an operating system, wherein the request includes a first power saving state into which the processor is to be placed,
demoting the processor to a second power state, which is a shallower power saving state than the first power state if a low activity period of the processor overlaps with a burst of high interrupt rate, and
un-demoting the processor to a third power saving state, which is a deeper power saving state than the first power saving state in response to determining that an interrupt rate is low,
wherein the power management unit to proactively transition the processor into deeper power saving states even in the absence of a wake-up interrupt from an operating system.

### Claim 9 (depends on 8)

The method of claim 8 comprises un-demoting the processor to a fourth state power saving state, which is deeper than third power saving state if a sleep duration of the processor in the third power saving state exceeds a demotion threshold even without receiving an interrupt from an operating system.

### Claim 10 (depends on 9)

The method of claim 9 comprises,
tracking the sleep duration of the processor in the third power saving state, and
increasing the rate of transition from one power saving state to an even deeper power saving state during the low interrupt period.

### Claim 11 (depends on 10)

The method of claim 10 comprises increasing the rate of transition between one power saving state to an even deeper power state during a zero interrupt period.

### Claim 12 (depends on 11)

The method of claim 11 comprises increasing the rate of transition from one power saving state to a shallower power saving state in response to er an occurrence of high interrupt rate.

### Claim 13 (depends on 12)

The method of claim 12 comprises,
tracking the sleep duration, and
demoting the processor to the shallower power saving state if a sleep duration of the processor in the second power state is less than the demotion threshold.

### Claim 14 (depends on 13)

The method of claim 13 comprises,
incrementing the demotion counter by a demotion delta value, wherein the demotion delta value represents a rate at which the demotion counter is incremented or decremented, and
resetting the demotion counter to erase interrupts, which have occurred outside a window period.

### Claim 15

A computer system to support energy conservation techniques, comprising:
a plurality of input-output devices,
a logic coupled to the plurality of input-output devices,
a display device coupled to the logic,
a machine readable storage medium coupled to the logic, and
a processor coupled to the logic, wherein the processor further includes,
a plurality of processing cores,
an uncore area, and
a power management unit, wherein the power management unit to, receive a request from an operating system, wherein the request
includes a first power saving state into which the processor is to be placed, demote the processor to a second power state, which is a shallower
power saving state than the first power state if a low activity period of the
processor overlaps with a burst of high interrupt rate, and
un-demote the processor to a third power saving state, which is a deeper power saving state than the first power saving state in response to determining that an interrupt rate is low,
wherein the power management unit to proactively transition the processor into deeper power saving states even in the absence of a wake-up interrupt from an operating system.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the power management unit to un-demote the processor to a fourth state power saving state, which is deeper than third power saving state if a sleep duration of the processor in the third power saving state exceeds a demotion threshold even without receiving an interrupt from an operating system.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the power management unit to,
track the sleep duration of the processor in the third power saving state, and
increase the rate of transition from one power saving state to an even deeper power saving state during the low interrupt period.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein the power management unit to increase the rate of transition between one power saving state to an even deeper power state during a zero interrupt period.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein the power management unit to increase the rate of transition from one power saving state to a shallower power saving state in response to an occurrence of high interrupt rate.

### Claim 20 (depends on 19)

The computer system of claim 19, the power management unit further comprises a demotion counter to track the sleep duration, wherein the power management unit to,
demote the processor to the shallower power saving state if the sleep duration of the processor in the second power state is less than the demotion threshold,
increment the demotion counter by a demotion delta value, wherein the demotion delta value represents a rate at which the demotion counter is incremented or decremented, and
reset the demotion counter to erase interrupts, which have occurred outside a window period.
