Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prelinking KDE - some solutions - some problems
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
helmers
Guru
Guru


Joined: 16 Sep 2002
Posts: 553
Location: Stange, Norway

PostPosted: Sun Dec 01, 2002 12:27 pm    Post subject: Reply with quote

Well, now I'm trying this out too. From what anil_et said, I'm a little scared of rebooting this thing when it finishes. I'll let you all know how it goes. If I can do, then I'm sure that most you guys won't have any troubles. :wink:
_________________
C is for Cookies!
Back to top
View user's profile Send private message
helmers
Guru
Guru


Joined: 16 Sep 2002
Posts: 553
Location: Stange, Norway

PostPosted: Sun Dec 01, 2002 7:03 pm    Post subject: Reply with quote

Well, I'm still alive. I think I got it going allright, this is what tar gives me:

Code:
runtime linker statistics:
total startup time in dynamic loader: 498216 clock cycles
time needed for relocation: 6132 clock cycles (1.2%)
number of relocations: 0
number of relocations from cache: 73
time needed to load objects: 360701 clock cycles (72.3%)

runtime linker statistics:
final number of relocations: 7
final number of relocations from cache: 73


Since I didn't try this out BEFORE prelinking, its a bit hard to say. But konqueror show no speedup so far. I'll try re-emerging kdelibs, and perhaps QT again. KDE itself started very fast though, perhaps only 1-2 seconds before the desktop showed up.

The only thing that surprised me, what that the prelinking itself took a LONG time. A a few errors. Phoenix came up faster, I think, but there are a lot of libs I'll have to re-compile for GLIBC 2.3. (though I'm not entirely sure how this works)

Just hope my system will live through a reboot. :wink:
_________________
C is for Cookies!
Back to top
View user's profile Send private message
helmers
Guru
Guru


Joined: 16 Sep 2002
Posts: 553
Location: Stange, Norway

PostPosted: Mon Dec 02, 2002 7:01 am    Post subject: Reply with quote

Mwhahahaha! Oh yeah!
Now I'm running the 2.5.50 kernel, and prelinking everything I see. Holy *meep*, it is fast! Konqueror loads right after I've clicked the button, and everthing is much more snappy.

Code:
time DISPLAY= LD_LIBRARY_PATH=. LD_BIND_NOW=1 konqueror
konqueror: cannot connect to X server

real    0m0.015s
user    0m0.006s
sys     0m0.008s


This looks good enough for me, so I'd say it was no problem. Anyone can do this. I'll install on an old K6-2 soon, and that one will have prelinking for sure. It must be the only way to get KDE usable on an old machine. I hope gentoo will make this easy for everybody.

On the downside, these libs are making a fuss and prelink says they are not fPIC compitable or something. I don't know what fPIC means, but I know it is needed for prelink.
    /usr/lib/libIIOP.so.0
    /usr/lib/libvga.so.1
    /usr/libmpeg2.so.0

Also, Konqueror won't display .gif images, which is a bit bad. Perhaps someone could help me out?

Other than that, this is just great. Finally a way to get the speed I've been used to from Windows. The only thing left now, is a better X server. :wink:
_________________
C is for Cookies!
Back to top
View user's profile Send private message
Evangelion
Veteran
Veteran


Joined: 31 May 2002
Posts: 1087
Location: Helsinki, Finland

PostPosted: Mon Dec 02, 2002 2:34 pm    Post subject: Reply with quote

It seems that prelinking is getting along nicely :D! I just got a laptop to "experiment" on, and I'll be installing Gentoo on it soon. Maybe I'll give prelinking a shot ;)
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Mon Dec 02, 2002 2:39 pm    Post subject: Reply with quote

Sure, and don't forget to benchmark a little bit and tell us about! :-)
Back to top
View user's profile Send private message
Kenta
n00b
n00b


Joined: 02 Oct 2002
Posts: 51
Location: Buenos Aires, Argentina

PostPosted: Mon Dec 02, 2002 3:10 pm    Post subject: Reply with quote

helmers wrote:
Also, Konqueror won't display .gif images, which is a bit bad. Perhaps someone could help me out?


Try using qt-3.1.0-r1 and add "myconf="-no-xinerama -disable-opengl -qt-gif" to the ebuild. I did that and worked. Someone said up there that adding only -opengl to the USE flags would do it, but when I did that, my gif support would be disabled. So I had to do it the "dirty" way.

BTW, i didnt recompile kde or anything...I dont see that much improvements in konqui or else... Would you advice recompiling kde in order to see these speed ups ? or just recompiling a new kernel ? ( I prefer e "stable" patched release rather the 2.5.x )

These are my numbers...

Code:
time DISPLAY= LD_LIBRARY_PATH=. LD_BIND_NOW=1 konqueror
konqueror: cannot connect to X server

real    0m0.018s
user    0m0.000s
sys     0m0.019s
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Mon Dec 02, 2002 3:12 pm    Post subject: Reply with quote

here's a fun little idea... is there away to capture your X session in a video format, so we can show off this feature?
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Mon Dec 02, 2002 3:17 pm    Post subject: Reply with quote

Does anybody know, when the prelinking-stuff will be available in the default (=stable) portage?
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Mon Dec 02, 2002 8:54 pm    Post subject: x capture Reply with quote

I don't know about x but when you run vnc there is a way to proxy/record the vnc proto (rbf or something)

xming
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Fri Dec 06, 2002 9:27 pm    Post subject: Reply with quote

What's happened to prelink in portage 2.0.45 ?
Is there a new patch? is it already included? I found no changelog or updated notes.
Back to top
View user's profile Send private message
really
Guru
Guru


Joined: 27 Aug 2002
Posts: 430
Location: nowhere

PostPosted: Sat Dec 07, 2002 12:33 pm    Post subject: Reply with quote

im totaly lost on this subject, can anybody give me a link where i can read more?

how does it work?
_________________
NoManNoProblem

Get lost before you get shot.
Back to top
View user's profile Send private message
monkeyboy
n00b
n00b


Joined: 18 Apr 2002
Posts: 29
Location: Denver

PostPosted: Mon Dec 09, 2002 3:56 am    Post subject: cvs broken with prelink? Reply with quote

I followed http://cvs.gentoo.org/~cretin/prelink.notes to try to enable prelinking on my machine and seem to have borken cvs ebuilds in the process. Dan Armak's kde cvs ebuilds and the gaim-cvs ebuild both seem to hang now during a cvs update. Is there something I need to undo or redo to fix this?
Back to top
View user's profile Send private message
Cretin
Retired Dev
Retired Dev


Joined: 11 Nov 2002
Posts: 23
Location: UK

PostPosted: Mon Dec 09, 2002 8:11 am    Post subject: Reply with quote

Hi, I'm back,

While I was away a new portage was released and some more work was done on the patches by others. With luck I will have another patch set against portage-2.0.45 with a few fixes included.

The CVS hanging problem is due to bad permissions on the /usr/portage/cvs-src dir, chown -R portage.portage it.

Stefan
Back to top
View user's profile Send private message
Cretin
Retired Dev
Retired Dev


Joined: 11 Nov 2002
Posts: 23
Location: UK

PostPosted: Mon Dec 09, 2002 10:31 am    Post subject: Reply with quote

Found the CVS ebuild problem, well not the solution but a work around,

when it hangs press the Enter key and it continues. Will try and fix it.

Stefan
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Mon Dec 09, 2002 11:27 am    Post subject: Reply with quote

I think I found a "bug".
The Foldingathome-client cannot connect to receive new work packages if the system is prelinked (even, of course, when the folding-client itself is excluded from prelinking). The "rest" of the client works normally when prelinking is active.
After a "prelink -u --all" the client can succesfully connect again.

Quote:

ldd /opt/foldingathome/foldingathome
not a dynamic executable

Suggestions?
Back to top
View user's profile Send private message
hannaman43
n00b
n00b


Joined: 20 Sep 2002
Posts: 5

PostPosted: Tue Dec 10, 2002 9:23 am    Post subject: Reply with quote

Hi, I have heard a lot of good things about Gentoo and I want to try to install it. To learn more about Gentoo I browsed trough the forums and found this tread. I have one last concern before installing Gentoo and maybe Cretin or another prelink guru can answer this question. Thanks in advance for your support.

It's about prelink vs. the NVidia-driver;
- Is it really necessary to choose between those two? I mean do I have to choose between faster KDE/konqueror startup and the ability to play Unreal 2003?
- Am I able to use the TV-out?
- Is this something that is temporarily not possible or will it never be possible to use them both?
- If it's allready possible to use the best of both worlds, maybe you can share some tips and tricks (not to complicated, because I'm a newbie).
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Tue Dec 10, 2002 12:12 pm    Post subject: Reply with quote

1) no it shouldn't be needed, but as it is right now it is I think - remember work on prelinking in Portage only began a few weeks ago or so, I would expect that it will need more work before it will work flawlessly. So for now it seems to be the price to pay.

2) If the nVidia driver runs, yes, then it's a matter of setting up X to use it.

3) See 1)

4) Someone is bound to have this working... I heard someone talking about some RedHat patches that might fix it up.
Back to top
View user's profile Send private message
gaplo
n00b
n00b


Joined: 21 Apr 2002
Posts: 25

PostPosted: Tue Dec 10, 2002 4:03 pm    Post subject: Reply with quote

Anyone can help? the following is what I get.

Code:

ibm-tpt20 root # prelink -a -m
prelink: /usr/lib/lddstub: Using /lib/ld-linux.so.1, not /lib/ld-linux.so.2 as dynamic linker
Aborted


Thanks in advance~ 8O
Back to top
View user's profile Send private message
Cretin
Retired Dev
Retired Dev


Joined: 11 Nov 2002
Posts: 23
Location: UK

PostPosted: Tue Dec 10, 2002 9:29 pm    Post subject: Reply with quote

you cannot prelink old binaries linked to/by the very old /lib/ld-linux.so.1

Ignore the error.

Code:

ibm-tpt20 root # prelink -a -m
prelink: /usr/lib/lddstub: Using /lib/ld-linux.so.1, not /lib/ld-linux.so.2 as dynamic linker
Aborted


Thanks in advance
[/quote]
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Tue Dec 10, 2002 10:56 pm    Post subject: Reply with quote

I found that with prelinking I loose all icons in KDE - and several programs like kile and the KDE Control Center fails on start.
Back to top
View user's profile Send private message
Kenta
n00b
n00b


Joined: 02 Oct 2002
Posts: 51
Location: Buenos Aires, Argentina

PostPosted: Wed Dec 11, 2002 3:23 am    Post subject: Reply with quote

I`m getting this error when I try to prelink my entire system but not when I remove some dirs from prelink.conf, is this normal ?

Code:

...
....
Prelinking /usr/bin/tr
Prelinking /usr/kde/3/bin/dcopidl2cpp
Prelinking /usr/lib/gimp/1.2/plug-ins/max_rgb
Prelinking /usr/bin/gtv
Prelinking /usr/sbin/smbd
Prelinking /usr/bin/gkrellm
Prelinking /usr/bin/sim
prelink: exec.c:515: prelink_exec:Assertion `new reloc == -1 || rinfo.first == new[new_reloc]` failed
Aborted


and here is my prelink.conf
Code:
# prelink.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
-l /bin
-l /sbin
-l /usr/bin
-l /usr/sbin
-l /lib
-l /usr/lib
-h /usr/local/lib
-h /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2
-h /usr/lib/opengl/xfree/lib
-h /usr/X11R6/lib
-h /opt/eclipse
-h /opt/sun-jdk-1.4.1.01/jre/lib/
-h /usr/qt/3/lib
-h /opt/OpenOffice.org1.0.1/program/
-h /usr/qt/2/lib
-h /usr/kde/3/lib
-h /usr/local/bin
-h /opt/bin
-h /opt/Acrobat5
-h /opt/rar/bin
-h /usr/X11R6/bin
-h /opt/eclipse
-h /opt/sun-jdk-1.4.1.01/bin
-h /opt/sun-jdk-1.4.1.01/jre/bin
-h /usr/qt/3/bin
-h /usr/qt/2/bin
-h /usr/kde/3/bin
-h /opt/mldonkey


but like I have just said before, when I remove "some" dirs, lets say /usr/bin, bin, lib, /usr/lib. It finishes prelinking kde, X and all the rest...Is this normal? Do I have to get more ram or sth ?

thanx in advance.!
Back to top
View user's profile Send private message
noff
Guru
Guru


Joined: 11 Nov 2002
Posts: 388
Location: College Park, Maryland

PostPosted: Wed Dec 11, 2002 6:37 am    Post subject: Really tempted to try Reply with quote

I'm really tempted to try this, so my main question is if this fails to work does it bork my system. It is finals time so I need my computer. I have plenty of time to compile on a working system, but not to rebuild a system. Otherwise it may have to wait until next semester.
_________________
What Larry was saying is that if you make it too easy for programmers, then poor programmers will be able to do things best left to good programmers, and will inevitably do them poorly. Everyone will suffer in the long term as a result." - Tom Chance
Back to top
View user's profile Send private message
narensankar
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2002
Posts: 109

PostPosted: Wed Dec 11, 2002 7:18 pm    Post subject: works on kde 3.1 rc5 Reply with quote

tried this out, and works with kde 3.1 rc5

time DISPLAY= LD_LIBRARY_PATH=. LD_BIND_NOW=1 konqueror
konqueror: cannot connect to X server

real 0m0.027s
user 0m0.013s
sys 0m0.011s

However it seems that libvga.so.1.9.16 and libIIOP.so.0.5.17 do not like to be build with fPIC.
Prelink still sees them as not built with fPIC, even though the compile works with that flag.
Does anyone knows how to find out if a library is build with fPIC or not?
Back to top
View user's profile Send private message
Cretin
Retired Dev
Retired Dev


Joined: 11 Nov 2002
Posts: 23
Location: UK

PostPosted: Wed Dec 11, 2002 9:48 pm    Post subject: Reply with quote

Quote:
However it seems that libvga.so.1.9.16 and libIIOP.so.0.5.17 do not like to be build with fPIC.


To fix this remerge tcp-wrappers then ORBit. svgalib needs a manual hack to the makefile which it says you should not do.

Quote:
I'm really tempted to try this, so my main question is if this fails to work does it bork my system


If prelink installes ok via the ebuild everything should be ok as it check's itself while doing so. Also prelink -au is very good at undoing everything

Quote:
Prelinking /usr/bin/sim
prelink: exec.c:515: prelink_exec:Assertion `new reloc == -1 || rinfo.first == new[new_reloc]` failed
Aborted


now this is interesting, try prelink -au and prelinking /usr/bin/sim by itself, it looks like some binaries are corrupted by something.
Also it is good to know that the latest patch works!


Quote:
I found that with prelinking I loose all icons in KDE - and several programs like kile and the KDE Control Center fails on start.


What are the error messages, I am not telepathic as much as I want to be 8)

As a final tip is all starts going strange try "prelink -ua" followed by "prelink -amR"

Have fun,
Stefan
Back to top
View user's profile Send private message
narensankar
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2002
Posts: 109

PostPosted: Wed Dec 11, 2002 11:04 pm    Post subject: Reply with quote

I did rebuild tcp-wrapper and ORBit. But prelinking still fails on the libraries.
Plus I have a new problem. Mozilla no longer works (1.2.1-r1). I am trying to remerge it to see if that solves the problem. I had mozilla build with gtk2 and xft2.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
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