You are not logged in.

#1 2006-10-21 18:14:36

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

DT_GNU_HASH: ~ 50% dynamic linking improvement

The following patches introduce an optional ELF hash section
replacement, optimized for speed and data cache accesses, which in our
tests improves dynamic linking by about 50%.  Prelinking of course
eliminates the costs altogether but if prelinked apps use dlopen they
benefit for this portion.

http://sources.redhat.com/ml/binutils/2 … 00418.html

Is there a chance that this patch will be added to binutils in Arch and most packages will be recompiled with it eventually.

Also, could there be a standard prelink utility in Arch?


to live is to die

Offline

#2 2006-10-22 12:52:49

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

I doubt this patch will make it into our binutils package before binutils 2.18 is released. We track the stable versions of binutils, while fedora/redhat develops the new versions and uses them in fedora. These patches are against 2.17.50, which is a development snapshot. I don't know about their many glibc patches, so it's just wait until they hit the stable releases.

Offline

#3 2006-10-23 07:30:35

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

OK.
And what's the Arch-way of doing the prelink?


to live is to die

Offline

#4 2006-10-23 11:35:46

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

There's a prelink package in extra that can prelink your binaries.

Offline

#5 2006-10-23 11:54:15

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

Oh, thanks, Jan! I didn't know about that.  :oops:


to live is to die

Offline

#6 2007-08-23 16:58:10

ekerazha
Member
Registered: 2007-02-27
Posts: 290

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

6 moths later...

Now binutils ( http://www.archlinux.org/packages/search/?q=binutils ) is 2.17.50.

Are there news about  DT_GNU_HASH?

Offline

#7 2007-08-23 17:02:34

ekerazha
Member
Registered: 2007-02-27
Posts: 290

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

JGC wrote:

There's a prelink package in extra that can prelink your binaries.

Yeah... but it doesn't work well with Arch because many Arch libraries are compiled without -fPIC

Last edited by ekerazha (2007-08-23 17:03:44)

Offline

#8 2007-08-23 18:28:22

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

however, x86_64 users might benefit because a majority of our (or my) packages use -fPIC.

Offline

#9 2007-08-23 19:37:24

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

last toolchain update introduced gnu.hashing. read PKGBUILDs to see the changes. there were also mails on the public dev list:
http://archlinux.org/pipermail/arch-dev … 01067.html

Offline

#10 2007-09-10 06:55:59

The_ouroboros
Member
From: Pavia, Italy
Registered: 2007-05-28
Posts: 140

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

how is the situation now??

Tnks


Gnu/Linux User on Arch(x86_64)

Offline

#11 2007-09-10 08:20:52

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

The_ouroboros wrote:

how is the situation now??

Tnks

good big_smile

Offline

#12 2007-09-11 22:22:03

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

Can you explain it a wee bit more verbose?

Last time i686 did not really use DT_GNU_HASH, whereas x86_64 already made use of it. Has anything changed since that?


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#13 2007-09-29 20:44:58

imachine
Member
From: /dev/ttyv0
Registered: 2006-11-15
Posts: 36
Website

Re: DT_GNU_HASH: ~ 50% dynamic linking improvement

Yes, the ML mentions about waiting for 2.18 of binutils, which I have installed now (2.18-3).

Running x86_64.

Is it necesary to run prelink for faster program start for everything that is in core/extra/community?

Or those packages are all now built with DT_GNU_HASH.

Cheers and thanks in advance for a quick answer!


a nail that sticks out, is hammered down.
aha.

Offline

Board footer

Powered by FluxBB