Bug 1729936

Summary: Verification of profile failed. tuned-adm verify --ignore-missing leads to ERROR tuned.plugins.plugin_scheduler: verify: failed: 'SMP affinity of IRQ 0
Product: Red Hat Enterprise Linux 8 Reporter: Robin Hack <rhack>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Robin Hack <rhack>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.1CC: jeder, jskarvad, olysonek, thozza
Target Milestone: rcKeywords: Patch, Reproducer, Upstream
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/redhat-performance/tuned/pull/207
Whiteboard:
Fixed In Version: tuned-2.13.0-0.1.rc1.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:59:29 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:    
Bug Blocks: 1743192, 1755139    

Description Robin Hack 2019-07-15 11:18:53 UTC
Description of problem:


Version-Release number of selected component (if applicable):
tuned-2.12.0-1.el8.noarch

How reproducible:
always

Steps to Reproduce:
1. echo 'isolated_cores=1-3' > /etc/tuned/realtime-virtual-guest-variables.conf
2. tuned-adm profile realtime-virtual-guest
3. tuned-adm verify --ignore-missing

Actual results:
After cmd on output:
Verification failed, current system settings differ from the preset profile.
You can mostly fix this by restarting the Tuned daemon, e.g.:
  systemctl restart tuned
or
  service tuned restart
Sometimes (if some plugins like bootloader are used) a reboot may be required.
See tuned log file ('/var/log/tuned/tuned.log') for details.

In logs:
2019-07-15 06:54:01,916 ERROR    tuned.plugins.plugin_scheduler: verify: failed: 'SMP affinity of IRQ 0' = '[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]', expected '[0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]'

Expected results:
dunno.. better no error message in log, because it's breaks my tests

Additional info:

Comment 3 Ondřej Lysoněk 2019-07-15 11:25:17 UTC
Thanks for the report. I believe the problem is that the affinity of certain IRQs cannot be changed. We should probably agregate these kind of issues and produce only a single warning message for all those IRQs.

Comment 5 Ondřej Lysoněk 2019-08-21 13:48:03 UTC
*** Bug 1677649 has been marked as a duplicate of this bug. ***

Comment 9 Jaroslav Škarvada 2019-11-15 16:05:32 UTC
(In reply to Ondřej Lysoněk from comment #3)
> Thanks for the report. I believe the problem is that the affinity of certain
> IRQs cannot be changed. We should probably agregate these kind of issues and
> produce only a single warning message for all those IRQs.

Yes, it seems it's the case:

Debug log:
2019-11-15 11:01:30,408 DEBUG    tuned.plugins.plugin_scheduler: Setting SMP affinity of IRQ 0 to '00000001'
2019-11-15 11:01:30,408 DEBUG    tuned.plugins.plugin_scheduler: Setting SMP affinity of IRQ 0 is not supported
...
2019-11-15 11:01:30,410 DEBUG    tuned.plugins.plugin_scheduler: Setting SMP affinity of IRQ 25 to '00000001'
2019-11-15 11:01:30,410 DEBUG    tuned.plugins.plugin_scheduler: Setting SMP affinity of IRQ 25 is not supported
...

# tuned-adm verify;cat /var/log/tuned/tuned.log
...
2019-11-15 10:57:36,716 ERROR    tuned.plugins.plugin_scheduler: verify: failed: 'SMP affinity of IRQ 0' = '[0, 1]', expected '[0]'
2019-11-15 10:57:36,716 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 1' = '[0]'
2019-11-15 10:57:36,716 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 4' = '[0]'
2019-11-15 10:57:36,716 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 8' = '[0]'
2019-11-15 10:57:36,716 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 9' = '[0]'
2019-11-15 10:57:36,716 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 10' = '[0]'
2019-11-15 10:57:36,716 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 11' = '[0]'
2019-11-15 10:57:36,716 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 12' = '[0]'
2019-11-15 10:57:36,717 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 14' = '[0]'
2019-11-15 10:57:36,717 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 15' = '[0]'
2019-11-15 10:57:36,717 INFO     tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 24' = '[0]'
2019-11-15 10:57:36,717 ERROR    tuned.plugins.plugin_scheduler: verify: failed: 'SMP affinity of IRQ 25' = '[0, 1]', expected '[0]'
...

Comment 10 Jaroslav Škarvada 2019-11-15 20:26:52 UTC
Upstream PR:
https://github.com/redhat-performance/tuned/pull/207

Comment 11 Ondřej Lysoněk 2019-11-21 12:57:11 UTC
Alternative PR:
https://github.com/redhat-performance/tuned/pull/215

Comment 12 Ondřej Lysoněk 2019-11-25 14:45:34 UTC
(In reply to Ondřej Lysoněk from comment #11)
> Alternative PR:
> https://github.com/redhat-performance/tuned/pull/215

It got merged.

Comment 19 errata-xmlrpc 2020-04-28 16:59:29 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-2020:1883