Bug 314051 - Prelinking frysk binaries takes eons
Prelinking frysk binaries takes eons
Product: Fedora
Classification: Fedora
Component: prelink (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
Depends On:
Blocks: 312331
  Show dependency treegraph
Reported: 2007-10-01 11:27 EDT by Andrew Cagney
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: 0.4.0-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-09 13:59:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrew Cagney 2007-10-01 11:27:11 EDT
Is this frysk, or prelink?

+++ This bug was initially created as a clone of Bug #312331 +++

When prelinking binaries with, e.g., "prelink -avmR" all frysk binaries (fcatch,
fcore, fstep, etc) take even minutes to prelink on a system where even
OpenOffice.org binaries are prelinked in few seconds.

Steps to reproduce:
1. prelink -au
2. prelink -avmR
3. See how prelink spends minutes in frysk binaries while all the others are
processed quickly
Comment 1 Jakub Jelinek 2007-10-01 15:51:37 EDT
Most of the time is spent in the C++ conflict optimizations.
The problem is that frysk utilities have huge number of conflicts against
a library with a huge number of symbols (libgcj).
I can certainly experiment with creating some search tree if it is queried
enough times, nevertheless it is IMHO very much desirable to compile frysk
stuff with -fpie or -fPIE and thus avoid (most of) copy relocations and most of
the conflicts.
Comment 2 Andrew Cagney 2007-10-05 14:52:15 EDT
So in addition to -fPIC, all frysk object files should be compiled with -fPIE
and executables linked with with -pie?
Comment 3 Jakub Jelinek 2007-10-09 13:59:48 EDT
Fixed in prelink-0.4.0-1 in rawhide.
rpm -Uvh prelink-0.4.0-1.i386.rpm
time /etc/cron.daily/prelink 

real    2m58.764s
user    1m43.620s
sys     1m27.751s

(as prelink was upgraded, this was full reprelinking of all libraries and

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