Bug 463562

Summary: [LTC 6.0 FEAT] 201100:POWER6 SPURR support
Product: Red Hat Enterprise Linux 6 Reporter: IBM Bug Proxy <bugproxy>
Component: kernelAssignee: Kevin W Monroe <kmonroe>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Jenner <mjenner>
Severity: high Docs Contact:
Priority: high    
Version: 6.0CC: ejratl, notting, peterm
Target Milestone: alphaKeywords: FutureFeature
Target Release: 6.0   
Hardware: ppc64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-23 22:02:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 356741, 525727    

Description IBM Bug Proxy 2008-09-23 21:21:32 UTC
=Comment: #1=================================================
Emily J. Ratliff <emilyr.com> - 2008-09-17 15:59 EDT
1. Feature Overview:
Feature Id:	[201100]
a. Name of Feature:	POWER6 SPURR support
b. Feature Description
POWER6 manages power and thermal issues by varying the processor clock frequency
and/or throttling instruction dispatch. In order to measure the consumption of
effective CPU resources more accurately under these conditions, POWER6 added a
Scaled Processor Utilization of Resources Register (SPURR). This feature adds
code to read the SPURR at appropriate times in order to be able to report scaled
CPU time usage to programs that need it such as EWLM.

2. Feature Details:
Sponsor:	PPC
Architectures:
ppc64

Arch Specificity: Purely Arch Specific Code
Affects Core Kernel: Yes
Delivery Mechanism: Direct from community
Category:	Kernel
Request Type:	Kernel - Enhancement from IBM
d. Upstream Acceptance:	Accepted
Sponsor Priority	1
f. Severity: High
IBM Confidential:	no
Code Contribution:	IBM code
g. Component Version Target:	2.6.24

3. Business Case
Without this feature EWLM will not be able to manage computing resources
accurately when the  CPU frequency is varied by the POWER6 thermal management
system.

4. Primary contact at Red Hat: 
John Jarvis
jjarvis

5. Primary contacts at Partner:
Project Management Contact:
Michael Hohnbaum, hbaum.com, 503-578-5486

Technical contact(s):
Paul Mackerras, pmac.com

IBM Manager:
Pat Gaughen, gaughen.com

Comment 1 Bill Nottingham 2008-10-02 19:56:13 UTC
RHEL 6 will include a kernel later than 2.6.24, so this should not be a problem.

The feature requested has already been accepted into the upstream code base
planned for the next major release of Red Hat Enterprise Linux.

When the next milestone release of Red Hat Enterprise Linux 6 is available,
please verify that the feature requested is present and functioning as
desired.

Comment 2 IBM Bug Proxy 2009-03-02 19:51:29 UTC
This is in 2.6.20
it is in 2 main parts
sha1 id: spurr sysfs f050982a9b7c4edc414f0d5543c3cb24504223c6
sha1 id: spurr taskstats 4603ac180a824197c2262747948d0179eb076e9c

Comment 3 Kevin W Monroe 2009-09-23 22:02:53 UTC
Closing - included in Red Hat Enterprise Linux 6.

Comment 4 IBM Bug Proxy 2010-05-07 04:30:42 UTC
------- Comment From paulus.com 2010-05-07 00:21 EDT-------
Turns out the reason I was seeing multiples of 1000 is that the kernel code does

stats->ac_utimescaled =
cputime_to_msecs(tsk->utimescaled) * USEC_PER_MSEC;
stats->ac_stimescaled =
cputime_to_msecs(tsk->stimescaled) * USEC_PER_MSEC;

So it's all working as expected.