So here is my third and also last test. I am sorry, for those guys who were bored during the two previous. Please, dont read next lines and go away. It will be longer. I am also sorry to hds, that I am spaming his howto
But I spend much time on it, so I want to share it with you. I prefered to post it here step by step, so you can see, if I make some mistake. So lets go.
I select amarok, becouse works great with "time" and have some relation to opengl. In make.conf I have USEflag "opengl". I was all the time in "nvidia opengl" environment, only once I switched to "xorg opengl", I will tell you. Keep in mind, whenever it start amarok, it calls amarokapp:
Code: Select all
$ time amarok
amaroK: [Loader] Starting amarokapp..
I reemerged amarok, rebooted and started amarok 8x:
Code: Select all
9.179s 3.490s 3.829s 3.530s 3.513s 3.500s 3.598s 3.520s
I prelinked him:
Code: Select all
# prelink -qavmR
Prelinking /usr/kde/3.3/bin/amarokapp
prelink: /usr/kde/3.3/bin/amarokapp: Cannot prelink against non-PIC shared library /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
Prelinking /usr/kde/3.3/bin/amarok
Prelinking /usr/kde/3.3/bin/amarok_xmmswrapper2
Rebooted and start amarok 8x:
Code: Select all
9.474s 3.422s 3.940s 3.451s 3.471s 3.437s 3.670s 4.165s
No improvments. In next step I tried "hds trick":
Code: Select all
# prelink -uv /usr/kde/3.3/bin/amarok
# prelink -uv /usr/kde/3.3/bin/amarok_xmmswrapper2
# opengl-update xorg-x11
* Switching to xorg-x11 OpenGL interface... [ ok ]
# prelink -avmR
Prelinking /usr/kde/3.3/bin/amarokapp
Prelinking /usr/kde/3.3/bin/amarok
Prelinking /usr/kde/3.3/bin/amarok_xmmswrapper2
# opengl-update nvidia
* Switching to nvidia OpenGL interface... [ ok ]
Of course, that during prelink above it print more messages to me, but they arent important for this test. But few of them:
Code: Select all
Prelinking /usr/games/bin/bzflag
Prelinking /usr/games/bin/tuxracer
Prelinking /usr/kde/3.3/bin/kspace.kss
Prelinking /usr/bin/mplayer
After reboot, amarok is launching in same time:
Code: Select all
9.414s 3.874s 4.281s 3.701s 3.468s 4.143s 3.466s 3.478s
For sure, I prelinked again with -avmR and reemerged amarok, but now with useflag "-opengl" .......... and rebooted. And startups times were:
Code: Select all
8.850s 3.373s 3.350s 3.339s 3.361s 3.379s 4.136s 3.387s
And I continued with last prelink ... this time amarok without opengl flag seem to be fully prelinked:
Code: Select all
# prelink -avmR
Prelinking /usr/kde/3.3/bin/amarokapp
Prelinking /usr/kde/3.3/bin/amarok
Prelinking /usr/kde/3.3/bin/amarok_xmmswrapper2
After reboot amarok gaves me the best startup times:
Code: Select all
8.472s 2.633s 3.692s 2.862s 2.681s 2.687s 2.603s 2.598s
What you thing, guys, about it. Especially about the "opengl" flag. What I will loose if I reemerge some apps like mplayer, kdeartwork and so?

I found only this:
Code: Select all
# cat /usr/portage/profiles/use.desc | grep opengl
opengl - Adds support for OpenGL

Is it good for us, prelinkers?