RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1247740 - turbostat in cpupowerutils does not show C-states for Haswell processor
Summary: turbostat in cpupowerutils does not show C-states for Haswell processor
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cpupowerutils
Version: 6.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Neil Horman
QA Contact: Erik Hamera
URL:
Whiteboard:
: 1256707 (view as bug list)
Depends On:
Blocks: 1172231
TreeView+ depends on / blocked
 
Reported: 2015-07-28 17:55 UTC by Matthew Whitehead
Modified: 2019-08-15 04:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-18 20:19:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Matthew Whitehead 2015-07-28 17:55:44 UTC
Description of problem: turbostat does not show C-states in on Haswell processors using upgraded (1.2-7) cpupowerutils package under RHEL6.7.


Version-Release number of selected component (if applicable): version 1.2-5 works on Haswell, version 1.2-7 does not work.


How reproducible: 100%


Steps to Reproduce:
1. run 'turbostat' version 1.2-7 on Haswell processor. It will not show C-state information.

Actual results:
Does not report C-state info.

Expected results:
Should report C-state info.

Additional info:

This code (turbostat.c) probably should probably be looked at first:

do_nhm_platform_info = do_nhm_cstates = do_smi = probe_nhm_msrs(family, model);

Comment 2 Neil Horman 2015-07-28 20:25:38 UTC
way to close to the end of 6.7 for this, needs to wait for 6.8

Comment 3 Eric Hagberg 2015-07-29 17:24:14 UTC
But this is a regression - shouldn't this get fixed sooner?

Comment 4 Eric Hagberg 2015-07-30 17:22:01 UTC
Ivybridge is also broken (Intel(R) Xeon(R) CPU E7-4860 v2 @ 2.60GHz).

Here's what I get with 1.2-5:

pk cor CPU    %c0  GHz  TSC SMI    %c1    %c3    %c6    %c7 CTMP PTMP   %pc2   %pc3   %pc6   %pc7  Pkg_W  Cor_W RAM_W PKG_% RAM_%
             0.14 1.55 2.60   0   0.50   0.01  99.35   0.00   45   49  45.70   0.00  24.97   0.00  82.32  25.36 42.88  0.00  0.00
 0   0   0   0.95 1.27 2.60   0   1.40   0.05  97.59   0.00   38   49  45.14   0.00  24.99   0.00  20.87   6.59 11.12  0.00  0.00
 0   0  48   0.05 1.26 2.60   0   2.31
 0   1   4   0.09 1.23 2.60   0   2.16   0.06  97.68   0.00   42
 0   1  52   1.02 1.23 2.60   0   1.24
 0   2   8   0.04 1.22 2.60   0   0.22   0.01  99.73   0.00   38
 0   2  56   0.02 1.20 2.60   0   0.24
(...snip...)

and here's 1.2-7:

     CPU Avg_MHz   %Busy Bzy_MHz TSC_MHz
       -       1    0.06    1415    2600
       0       8    0.60    1338    2601
      48       2    0.18    1219    2601
       4       2    0.13    1211    2601
      52       1    0.04    1256    2601
       8       1    0.05    1211    2601
      56       1    0.04    1204    2601
      12       5    0.26    1804    2601
(...snip...)

Comment 5 Jeremy Eder 2015-07-30 17:34:25 UTC
turbostat was rebased to latest upstream, which includes this patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/tools/power/x86/turbostat/turbostat.c?id=1cc21f7b6b747220c29b42cfd1c84b5648d12407

Use --debug to get the old output formatting back.

Comment 9 Neil Horman 2015-07-31 19:54:37 UTC
Well, I certainly didn't expect this change, but I actually can see his reasoning.  If there is an expectation of more c-states than can be visually interpreted reasonably on a console, then it makes sense to hide them, as showing them doesn't do any good anyway.  If you want to provide a filter so that you can only see the c-states that might interest you, that makes good sense, but such functionality already exists with:

turbostat --debug | awk '/regex for rows/ { print $interestingc-state}'

So you don't really need to re-invent that wheel.


I presume adding --debug does in fact bring the c-state output back in RHEL6?

Comment 10 Eric Hagberg 2015-07-31 20:39:59 UTC
Adding "--debug" does bring the c-state output back.

Comment 11 Matthew Whitehead 2015-08-18 19:26:38 UTC
The '--debug' does revert to the old behavior and is being used as a workaround by my customer.

Comment 12 Neil Horman 2015-08-18 20:19:04 UTC
In that case this is NOTABUG

Comment 13 Jeremy Eder 2015-08-25 10:48:27 UTC
*** Bug 1256707 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.