# US 2006/0069938 A1 · Method and apparatus for monitoring variable speed microprocessor performance caused by power management

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

- Number: US 2006/0069938 A1
- Document ID: US20060069938A1
- Status: Published application
- Kind: A1
- Application number: 10/955,182
- Filed: 2004-09-30
- Published: 2006-03-30
- Earliest claimed: 2004-09-30
- Assignees: International Business Machines Corporation
- Inventors: Bret Olszewski; Luc Smolders; Randal Swanberg
- Web page: https://patentgrep.com/patent/US20060069938A1

## CPC

- G06F 11/3409: {for performance assessment}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 2201/81: Threshold
- G06F 2201/815: Virtual
- G06F 2201/86: Event-based monitoring
- G06F 2201/885: Monitoring specific for caches
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A power level monitor and performance tracking tool are provided for correlating system performance with processor management events. When power management requires a change to the state of a microprocessor, software will be notified. Multiple layers of software may be notified, including a firmware level, an operating system, as well as applications. The performance tracking tool tracks the times of the power management events as well as their impact to the microprocessor performance. The performance tracking tool may then display or record the state changes to processor performance. These changes may be correlated against other system events to aid in determining system performance problems with respect to power management.

## Claims

### Claim 1

A method for tracking performance changes due to power management in a data processing system, the method comprising:
monitoring for a power management event in a processor;
determining whether the processor changes from a previous performance level to a new performance level in response to the power management event; and
recording a performance trace that correlates the new performance level with system state information at the time the processor changes to the new performance level.

### Claim 2 (depends on 1)

The method of claim 1, wherein monitoring for a power management event includes detecting an interrupt from the processor.

### Claim 3 (depends on 1)

The method of claim 1, wherein the previous performance level is within a first range and wherein determining whether the processor changes from the previous performance level to a new performance level includes:
determining a current performance level; and
determining whether the current performance level is within a second range.

### Claim 4 (depends on 1)

The method of claim 1, wherein recording a performance trace includes creating a trace entry for the power management event and time stamping the trace entry.

### Claim 5 (depends on 1)

The method of claim 1, wherein the system state information includes at least one of an interrupt, a paging event, and a temperature value.

### Claim 6 (depends on 1)

The method of claim 1, wherein an operating system runs on the processor and wherein the step of recording a performance trace is performed by the operating system.

### Claim 7 (depends on 6)

The method of claim 6, wherein the step of monitoring for a power management event is performed by the operating system.

### Claim 8 (depends on 1)

The method of claim 1, wherein the data processing system is a multiple processor system.

### Claim 9 (depends on 8)

The method of claim 8, wherein the processor is a first processor, the method further comprising:
monitoring for a power management event in a second processor; and
recording a performance trace entry for the power management event in the second processor.

### Claim 10 (depends on 8)

The method of claim 8, wherein the data processing system includes a hypervisor.

### Claim 11 (depends on 10)

The method of claim 10, wherein the step of recording a performance trace is performed by the operating system.

### Claim 12 (depends on 10)

The method of claim 10, wherein step of monitoring for a power management event is performed by the hypervisor.

### Claim 13 (depends on 1)

The method of claim 1, further comprising determining a cost for computer usage based upon the performance trace.

### Claim 14

An apparatus for tracking performance changes due to power management in a data processing system, the apparatus comprising:
means for monitoring for a power management event in a processor;
means for determining whether the processor changes from a previous performance level to a new performance level in response to the power management event; and
means for recording a performance trace that correlates the new performance level with system state information at the time the processor changes to the new performance level.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the means for monitoring for a power management event includes means for detecting an interrupt from the processor.

### Claim 16 (depends on 14)

The apparatus of claim 14, wherein the previous performance level is within a first range and wherein the means for determining whether the processor changes from the previous performance level to a new performance level includes:
means for determining a current performance level; and
means for determining whether the current performance level is within a second range.

### Claim 17 (depends on 14)

The apparatus of claim 14, wherein the means for recording a performance trace includes means for creating a trace entry for the power management event and means for time stamping the trace entry.

### Claim 18 (depends on 14)

The apparatus of claim 14, wherein the data processing system is a multiple processor system.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the processor is a first processor, the apparatus further comprising:
means for monitoring for a power management event in a second processor; and
means for recording a performance trace entry for the power management event in the second processor.

### Claim 20 (depends on 14)

The apparatus of claim 14, further comprising means for determining a cost for computer usage based upon the performance trace.

### Claim 21

A computer program product for tracking performance changes due to power management in a data processing system, the computer program product comprising:
instructions for monitoring for a power management event in a processor;
instructions for determining whether the processor changes from a previous performance level to a new performance level in response to the power management event; and
instructions for recording a performance trace that correlates the new performance level with system state information at the time the processor changes to the new performance level.
