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 2010480

Summary: glibc: LD_AUDIT performance issues when NOT using PLT auditing.
Product: Red Hat Enterprise Linux 8 Reporter: Andrew Mike <amike>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: alanm, ashankar, brclark, casantos, codonell, dj, fweimer, jwright, mkolbas, mnewsome, pfrankli, sipoyare
Target Milestone: rcKeywords: FutureFeature, Patch, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-25 09:18:58 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 Andrew Mike 2021-10-04 18:32:36 UTC
Description of problem:

Glibc adds a huge overhead to auditing by auditing every PLT call, whether the auditor includes PLT auditing or not. For applications that have small routines, the PLT auditing overhead is unacceptable for performance tools.

To avoid these issues, some auditors rewrite the GOT to avoid the performance hit. However, details of filling in GOT table entries are platform dependent and somewhat tricky for load modules that use secure PLT. Moreover, rewriting the GOT by a tool is strongly discouraged and in future processors that technique will be prevented using hardware mechanisms. 

For these reasons, glibc should take responsibility for filling in the GOT if there is no PLT auditor present. 

How reproducible: 100% (by customer)

Steps to Reproduce:
1. git clone https://github.com/hpctoolkit/auditor-tests 
2. cd auditor-tests/tier1/slow-audit-plt
3. make

Actual results:
The time for 2^27 PLT calls to an empty routine on IBM’s POWER9 @ 2.8GHz takes ~3.54 seconds.

Expected results:
The time for 2^27 PLT calls to an empty routine on IBM’s POWER9 @ 2.8GHz should take ~0.32 seconds.

Additional info: 

Problem was first identified upstream: 
https://sourceware.org/bugzilla/show_bug.cgi?id=15533

Comment 7 Florian Weimer 2022-07-25 09:18:58 UTC
Delivered via bug 2047981.

*** This bug has been marked as a duplicate of bug 2047981 ***