Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1974284

Summary: Backport "trace-cmd: Add option to poll trace buffers"
Product: Red Hat Enterprise Linux 8 Reporter: Nicolas Saenz Julienne <nsaenzju>
Component: trace-cmdAssignee: Jerome Marchand <jmarchan>
Status: CLOSED ERRATA QA Contact: Qiao Zhao <qzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: ---CC: cye, jkacur, lcapitulino, nsaenzju, zsun
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: trace-cmd-2.7-10.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 15:17:05 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:

Description Nicolas Saenz Julienne 2021-06-21 09:42:12 UTC
nohz_full CPUs running telco workloads might get interrupted by unnecessary IPIs (and latency spikes) when extracting data from ftrace's buffers. 

To mitigate this we need to backport: e7ffcbd ("trace-cmd: Add option to poll trace buffers").

Testcase:

On a physical RHEL installation, isolate a CPU with realtime-host tuned
profile:

 - Setup realtime-host tuned profile (edit /etc/tuned/realtime-variables.conf
   and set some CPUs in isolated_cores list, and uncomment
   isolate_managed_irq=Y).

 - Run "tuned-adm profile realtime-virtual-host" (should return without
   errors).

 - Reboot machine.

2) Setup tracing:

 - Launch 'trace-cmd record --poll -e irq_vectors -e sched -M <isolated cpu mask> oslat --cpu-list 2,3 --rtprio 1' where the isolated cpu mask is a bitfield. For ex. on a 4 cpu system, with cpus 2 and 3 isolated, the value will be 'C' (1100). oslat's config is similar, but explicitly listing the CPUs.

 - After some hours, stop the logging with ctrl-c and display the logs with 'trace-cmd report'. They should show context switches into 'trace-cmd' while oslat is running. Then rerun with the '--poll' option, context switches shouldn't happen. Note: there will be an amount of trace noise at the beginning of the trace output, which is related to oslat setup process.

Comment 6 errata-xmlrpc 2022-05-10 15:17:05 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 (trace-cmd bug fix and enhancement update), 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-2022:1999