Bug 1443182

Summary: cpu-partitioning: ERROR tuned.utils.commands: Executing x86_energy_perf_policy error
Product: Red Hat Enterprise Linux 7 Reporter: Luiz Capitulino <lcapitulino>
Component: tunedAssignee: Ondřej Lysoněk <olysonek>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.4CC: jeder, jskarvad, ktordeur, olysonek, psklenar, tcerna
Target Milestone: rcKeywords: Patch, Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 16:01:26 UTC Type: Bug
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: 1465887    
Bug Blocks: 1394932, 1467576, 1485946    

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