http://defect.opensolaris.org/bz/show_bug.cgi?id=8172
Summary: PowerTOP C-state report is broken
Classification: Development
Product: power-mgmt
Version: unspecified
Platform: i86pc/i386
OS/Version: OpenSolaris
Status: NEW
Severity: minor
Priority: P4
Component: powertop
AssignedTo: rafael.vanoni at sun.com
ReportedBy: aubrey.li at intel.com
CC: tesla-dev at opensolaris.org
1. residency percent in the ON gate is wrong,
while the version in our powertop gate is correct.
when vmstat show 30% idle,
=============================================
$ vmstat 3
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s2 s3 -- -- in sy cs us sy id
0 0 0 8126296 9722228 5 149 0 0 0 0 0 0 0 0 0 2336 12223 1976 70 0 29
0 0 0 8126152 9722260 0 124 0 0 0 0 0 0 0 0 0 2787 19674 1953 70 0 29
1 0 0 8125996 9722104 0 164 0 0 0 0 0 8 0 0 0 2589 26127 2438 73 0 27
=============================================
C0 residency is still 6%.
C-states (idle power states) Avg residency
C0 (cpu running) (6.0%)
C1 0.1ms (21.9%)
C2 0.0ms (0.0%)
C3 0.3ms (72.1%)
2. See above c-state window output,
we have a column assignment issue here.
3. Average value is wrong. Both the number and the time
are aggregation in the dtrace script. No need to divide
by "g_ncous_observed" here.
if (g_cstate_info[i].events > 0)
avg = (((double)g_cstate_info[i].total_time/
g_ncpus_observed)/g_cstate_info[i].events);
I'll deliver a patch for these issues.
-Aubrey
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.