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 1366052 - Post 1311352 objdump -rdS is significantly slower
Summary: Post 1311352 objdump -rdS is significantly slower
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: binutils
Version: 7.3
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: 7.4
Assignee: Nick Clifton
QA Contact: Miloš Prchlík
Vladimír Slávik
URL:
Whiteboard:
Depends On:
Blocks: 1390370
TreeView+ depends on / blocked
 
Reported: 2016-08-10 22:03 UTC by Brad Hubbard
Modified: 2017-08-01 20:24 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
*objdump* mixed listing speed up Previously, the BFD library for parsing DWARF debug information and locating source code was very slow. The BFD library is used by the *objdump* tool. As a consequence, *objdump* became significantly slower when producing a mixed listing of source code and disassembly. Performance of the BFD library has been improved. As a result, producing a mixed listing with *objdump* is faster.
Clone Of:
Environment:
Last Closed: 2017-08-01 20:24:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1864 0 normal SHIPPED_LIVE binutils bug fix update 2017-08-01 18:24:14 UTC

Description Brad Hubbard 2016-08-10 22:03:28 UTC
Description of problem:

objdump -S with debuginfo available seems to have slowed down considerably since bz1311352. Note: The following results are from a low power VM but are representative of the issue.

Version-Release number of selected component (if applicable):
binutils-2.25.1-22.base.el7.x86_64

How reproducible:
100%

Additional info:

# /usr/bin/time objdump -rdS /usr/bin/ceph-osd >/tmp/obj.dump|head -3
objdump: Dwarf Error: Offset (3154315954) greater than or equal to .debug_str size (39740425).
43372.07user 37.13system 12:05:57elapsed 99%CPU (0avgtext+0avgdata 1707172maxresident)k
854864inputs+327328outputs (4203major+490006minor)pagefaults 0swaps

# yum -y erase `rpm -qa|grep debuginfo|paste -s`

# /usr/bin/time objdump -rdS /usr/bin/ceph-osd >/tmp/obj.dump|head -3
3.56user 0.12system 0:03.77elapsed 97%CPU (0avgtext+0avgdata 12300maxresident)k
20664inputs+200352outputs (0major+2392minor)pagefaults 0swaps

Comment 4 Nick Clifton 2016-11-10 15:22:51 UTC
FYI - this problem has been addressed by a patch submitted to the FSF binutils:

https://www.sourceware.org/ml/binutils/2016-11/msg00050.html

Once 7.4 is open for patching I will see about applying it there.

Comment 5 Nick Clifton 2017-01-16 15:28:01 UTC
Patch added.

Comment 7 Miloš Prchlík 2017-05-09 11:02:11 UTC
Verified using reproducer in the original report, with /usr/bin/ceph-osd binary. The difference in the time spent running between binutils-2.25.1-22.base.el7 and binutils-2.25.1-30.base.el7 is quite significant, -30.base.el7 finishes in cca 500 seconds.

Comment 10 errata-xmlrpc 2017-08-01 20:24:09 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-2017:1864


Note You need to log in before you can comment on or make changes to this bug.