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 1443182 - cpu-partitioning: ERROR tuned.utils.commands: Executing x86_energy_perf_policy error
Summary: cpu-partitioning: ERROR tuned.utils.commands: Executing x86_energy_perf_polic...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuned
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Ondřej Lysoněk
QA Contact: Tereza Cerna
URL:
Whiteboard:
Depends On: 1465887
Blocks: 1394932 TUNED-7.5-REBASE 1485946
TreeView+ depends on / blocked
 
Reported: 2017-04-18 17:33 UTC by Luiz Capitulino
Modified: 2018-04-10 16:01 UTC (History)
6 users (show)

Fixed In Version: tuned-2.9.0-0.1.rc1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 16:01:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0879 0 normal SHIPPED_LIVE tuned bug fix and enhancement update 2018-04-10 13:39:08 UTC

Description Luiz Capitulino 2017-04-18 17:33:42 UTC
Description of problem:

I see the following in /var/log/tuned/tuned.log when activating the cpu-partitioning profile in a KVM guest:

2017-04-18 09:56:00,703 ERROR    tuned.utils.commands: Executing x86_energy_perf_policy error:
2017-04-18 09:56:00,703 WARNING  tuned.plugins.plugin_cpu: your CPU doesn't support MSR_IA32_ENERGY_PERF_BIAS, ignoring CPU energy performance bias

It is possible that MSR_IA32_ENERGY_PERF_BIAS is not emulated by KVM.


Version-Release number of selected component (if applicable): tuned-2.8.0-2.el7


How reproducible:


Steps to Reproduce:
1. Activate the cpu-partitioning profile
2. Check /var/log/tuned/tuned.log

Comment 2 Luiz Capitulino 2017-04-18 17:36:07 UTC
Jaroslav,

I think this problem has always existed and doesn't cause any problems for zero-loss (meaning, the zero-loss tuning is still being applied). In that case, this can be moved to 7.5.

Comment 3 Jaroslav Škarvada 2017-04-18 18:47:17 UTC
Yes, it's not regression. Maybe we could consolidate the related log messages to be both in WARN level or maybe we could lower the level to NOTICE.

Comment 4 Luiz Capitulino 2017-04-18 19:02:44 UTC
I think the perfect solution would be to test if the CPU supports the MSR_IA32_ENERGY_PERF_BIAS MSR (or any other way to test if the tuning could be applied). Then:

- If the MSR is not supported, just print the message as a NOTICE

- If the MSR is supported but applying the tuning fails, fail with ERROR

Anyways, moving to 7.5.

Comment 5 Ondřej Lysoněk 2017-08-21 10:52:17 UTC
I propose we completely suppress the ERROR message and keep the second message as WARN. I think we should keep the second message as WARN, otherwise the problem could go unnoticed. I think we usually log a warning when something is not supported:
tuned/plugins/plugin_video.py: log.warn("radeon_powersave is not supported on '%s'" % device)
tuned/plugins/plugin_vm.py: log.warn("Option 'transparent_hugepages' is not supported on current hardware.")

Upstream pull request:
https://github.com/redhat-performance/tuned/pull/62

Comment 7 Luiz Capitulino 2017-08-21 13:15:38 UTC
That makes sense, thanks for fixing this Ondrej.

Comment 8 Fedora Update System 2017-10-13 14:21:01 UTC
tuned-2.9.0-0.1.rc1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d9c6b990df

Comment 10 Fedora Update System 2017-10-13 22:25:21 UTC
tuned-2.9.0-0.1.rc1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d9c6b990df

Comment 11 Fedora Update System 2017-10-13 23:25:12 UTC
tuned-2.9.0-0.1.rc1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5f0849d207

Comment 12 Fedora Update System 2017-10-29 21:07:14 UTC
tuned-2.9.0-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0e45ce4685

Comment 13 Fedora Update System 2017-10-29 21:13:20 UTC
tuned-2.9.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c30e9bd1ea

Comment 14 Luiz Capitulino 2018-01-22 21:49:20 UTC
I verified this BZ. In tuned-2.9.0-1.el7.noarch the ERROR message is gone and, apart from the INFO lines, I only have:

2018-01-22 16:43:43,257 WARNING  tuned.plugins.plugin_cpu: your CPU doesn't support MSR_IA32_ENERGY_PERF_BIAS, ignoring CPU energy performance bias

Which is fine, according to comment 5, is expected.

Comment 15 Tereza Cerna 2018-02-26 09:56:18 UTC
Hi Luiz, thank you for your testing.

Verified in tuned-2.9.0-1.el7.noarch
  * patch was applied
  * error message is gone and there are only INFO message:

old tuned version:
  ERROR    tuned.utils.commands: Executing x86_energy_perf_policy error: 
  WARNING  tuned.plugins.plugin_cpu: your CPU doesn't support MSR_IA32_ENERGY_PERF_BIAS, ignoring CPU energy performance bias

new tuned version:
  WARNING  tuned.plugins.plugin_cpu: your CPU doesn't support MSR_IA32_ENERGY_PERF_BIAS, ignoring CPU energy performance bias

-> VERIFIED

Comment 18 errata-xmlrpc 2018-04-10 16:01:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0879


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