Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Daen1543's Short Guide to Prelinking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
daen1543
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2003
Posts: 85
Location: Berkeley, CA, USA

PostPosted: Fri Oct 10, 2003 2:36 am    Post subject: Daen1543's Short Guide to Prelinking Reply with quote

I'm absolutely 100% sure that all that's needed to correctly prelink your system is:

1) emerge prelink;
2) edit /etc/prelink.conf to check that what you want prelinked is there;
3) if you're using Nvidia drivers and Qt:
---> opengl-update xfree; or
---> USE="-opengl" emerge qt : this is my preferred choice;
4) prelink -amfR -nv : do a dry run - look for errors. On my system the only problematic libraries are from the libcap package. Any libraries or binaries depending on non-prelinkable libraries will not be prelinked;
5) prelink -amfR : this may take ~5 minutes and requires some free disk space.

Now, to check it's working:
6) LD_DEBUG=statistics konqueror & (or any other prelinked app). Look for "number of relocations: 0."

When you update any libraries or binaries, run prelink again with:
7) prelink -amR

I can't say this makes an obvious effect on my system (AMD1800+), but slower systems may benefit from this.

Does anyone know what effect disabling the opengl USE flag has on Qt? I haven't noticed any.
Back to top
View user's profile Send private message
sebsebseb
n00b
n00b


Joined: 10 Oct 2003
Posts: 1
Location: france

PostPosted: Fri Oct 10, 2003 8:15 am    Post subject: it works !! Reply with quote

well I followed your guidelines, and it worked perfectly for me... I had read somewhere else that with gcc optimization flags (like -O3 -pipe etc...), one could end with an unusable system.

i'm using gentoo 1.4rc4 on a Compaq Presario 1200 laptop. Here are the specs, and the results :

Compaq Presario 1200
Celeron 733 (Coppermine)
316 MB RAM
CyberBlade i1 gfx card
kernel 2.4.20-gaming-r3
GCC 3.2.3
libtool 1.4.3-r1
Qt 3.1.2-r4
KDE 3.1.4
prelink 20030811

i used "-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr falign-functions=4 -fprefetch-loop-arrays" in /etc/make.conf

system boots up in 45s, with added 30s for KDE to come up. I'm not sure of the speed increase, but now KDE apps run really smooth.

i was really scared to blow my install (24h compilation, don't want to do that again ;o)) but it was well worth !
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Wed Dec 31, 2003 12:16 am    Post subject: Reply with quote

Quote:
3) if you're using Nvidia drivers and Qt:
---> opengl-update xfree; or
---> USE="-opengl" emerge qt : this is my preferred choice;


if you do that, then you wont have opengl 3D acceleration.
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Wed Dec 31, 2003 3:05 am    Post subject: Reply with quote

Um, that wouldn't do anything when you change it back to nvidia. Because if prelink detects a different version, it'll just link in the different version at runtime, nullifying the speed increase (or so I've heard). Also, if you use wine, I've heard "prelink -amfR --no-execshield" prevents some problems.
_________________
jabber: MighMoS@jabber.org

localhost # export HOME=`which heart`
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum