Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1443182 - cpu-partitioning: ERROR tuned.utils.commands: Executing x86_energy_perf_policy error
cpu-partitioning: ERROR tuned.utils.commands: Executing x86_energy_perf_polic...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuned (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity low
: rc
: ---
Assigned To: Ondřej Lysoněk
Tereza Cerna
: Patch, Upstream
Depends On: 1465887
Blocks: 1394932 TUNED-7.5-REBASE 1485946
  Show dependency treegraph
 
Reported: 2017-04-18 13:33 EDT by Luiz Capitulino
Modified: 2018-04-10 12:01 EDT (History)
6 users (show)

See Also:
Fixed In Version: tuned-2.9.0-0.1.rc1.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 12:01:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0879 normal SHIPPED_LIVE tuned bug fix and enhancement update 2018-04-10 09:39:08 EDT

  None (edit)
Description Luiz Capitulino 2017-04-18 13:33:42 EDT
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 13:36:07 EDT
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 14:47:17 EDT
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 15:02:44 EDT
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 06:52:17 EDT
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 09:15:38 EDT
That makes sense, thanks for fixing this Ondrej.
Comment 8 Fedora Update System 2017-10-13 10:21:01 EDT
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 18:25:21 EDT
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 19:25:12 EDT
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 17:07:14 EDT
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 17:13:20 EDT
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 16:49:20 EST
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 04:56:18 EST
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 12:01:26 EDT
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.