View previous topic :: View next topic |
Author |
Message |
daen1543 Tux's lil' helper
Joined: 15 Feb 2003 Posts: 85 Location: Berkeley, CA, USA
|
Posted: Fri Oct 10, 2003 2:36 am Post subject: Daen1543's Short Guide to Prelinking |
|
|
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 |
|
|
sebsebseb n00b
Joined: 10 Oct 2003 Posts: 1 Location: france
|
Posted: Fri Oct 10, 2003 8:15 am Post subject: it works !! |
|
|
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 |
|
|
GentooBox Veteran
Joined: 22 Jun 2003 Posts: 1168 Location: Denmark
|
Posted: Wed Dec 31, 2003 12:16 am Post subject: |
|
|
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 |
|
|
MighMoS Guru
Joined: 24 Apr 2003 Posts: 416 Location: @ ~
|
Posted: Wed Dec 31, 2003 3:05 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|