LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2004, 12:46 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
speeding up apps in KDE on a debian system.


hello, just replaced RH9 with debian on my laptop. was running gnome, now kde >3.2 vs.

i found a way to speed up how OO opens, but how can i speed up the rest of the programs like firefox, or thunderbird, kaffeine, etc... all of them take an exorborant amount of time to open. we are talking close to a 1min or more. this is on a P4m 1.8G with 256M ram. so not exactly the fastest box in the world, and yes more RAM will, help, but there has to be a way to reduce the time it takes to open up apps like there is in OO.

FYI setting the ram usage above 50 made no differance in how fast OO opens, so i just set it back to 50. nothing else is running at the time i try to open up the other programs.
 
Old 11-22-2004, 01:17 PM   #2
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
you could prelink all the binaries on your system by running
Code:
prelink -afmR
and from gentoo's prelinking guide you can do this to speed up KDE
Speeding Up KDE After Prelinking

KDE's loading time can be greatly reduced after prelinking. If you inform KDE that it has been prelinked it will disable the loading of kdeinit (as it isn't required anymore) which speeds up KDE even more.

Set KDE_IS_PRELINKED="true" in /etc/env.d/99kde-env to inform KDE about the prelinking.
 
Old 11-22-2004, 01:31 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok, that sounds kewl, but i need a bit more on how to do that...

do i just type in that command 1 time, or do i need to do that for every app?

also were do i do this prelinking?
 
Old 11-22-2004, 01:34 PM   #4
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
you just run it once and it goes through all the ELF binaries on your system and prelinks them for faster loading. You may have to apt-get install prelink first to get the prelink program in your system. You want to run this as root. As you update your system the prelinks need to be updated so you could put this task in a cron script to run every other night or something, or you could just run it after updating the system every time.
 
Old 11-22-2004, 02:17 PM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
kewl got prelink with apt-get, but when i rran the command you gave me i started getting loads of errors

Code:
ray@laptop:~$ su -
Password:
laptop:~# apt-get install prelink
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libelfg0 libselinux1
The following NEW packages will be installed:
  libelfg0 libselinux1 prelink
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 758kB of archives.
After unpacking 1352kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.au.debian.org testing/main libelfg0 0.8.5-1 [47.7kB]
Get:2 http://ftp.au.debian.org testing/main libselinux1 1.16-2 [31.0kB]
Get:3 http://ftp.au.debian.org testing/main prelink 0.0.20041012-1 [679kB]
Fetched 758kB in 6s (123kB/s)
Selecting previously deselected package libelfg0.
(Reading database ... 63693 files and directories currently installed.)
Unpacking libelfg0 (from .../libelfg0_0.8.5-1_i386.deb) ...
Selecting previously deselected package libselinux1.
Unpacking libselinux1 (from .../libselinux1_1.16-2_i386.deb) ...
Selecting previously deselected package prelink.
Unpacking prelink (from .../prelink_0.0.20041012-1_i386.deb) ...
Setting up libelfg0 (0.8.5-1) ...

Setting up libselinux1 (1.16-2) ...

Setting up prelink (0.0.20041012-1) ...
laptop:~# prelink -afmR
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/regxpcom: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/mozilla-thunderbird-xremote-client: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/mozilla-thunderbird-bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/regchrome: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/firefox-bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/regchrome: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/regxpcom: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/xpcshell: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/pkgchk.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/pluginapp.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/setofficelang.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/setup.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/soffice.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/spadmin.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/configimport.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/regcomp: Could not find one of the dependencies
so thunderbird and firefox and OO can not be prelinked? well with OO thats not a big deal as i found a way to increase that programs load times, but the firefox, thunderbird is an other issue. those are the 2 programs that i use most on my laptop.

sujestions?

FYI getting ready to edit the KDE enviroment now.
 
Old 11-22-2004, 02:19 PM   #6
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
FYI the /etc/env.d/99kde-env

file does not exsist. i did vim /etv/env.d/99kde-env and it was a new file.

next step?
 
Old 11-22-2004, 02:30 PM   #7
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
ooh that kde mod is probably a gentoo specific one, not sure where it would be on debian really. You did use the firefox packages from apt-get correct? They need to be compiled against the same library versions in order to have it prelink properly.
 
Old 11-22-2004, 02:36 PM   #8
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
yes everything was installed via apt-get
 
Old 11-22-2004, 03:09 PM   #9
maenho
Member
 
Registered: Nov 2003
Location: Belgium
Posts: 81

Rep: Reputation: 15
with the risk of stating the plain obvious: are your DNS settings (resolv.conf) ok? If an X application can't find the DNS server stated in that file it waits until a timeout of about 1 minute.
 
Old 11-22-2004, 03:41 PM   #10
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok, what does that have to do with apps opening fast? i could see that being an issue with KDE opening slow (its about the same as gnome nothing to horrid IMHO), but the apps? they should not make any calls against DNS, or does DNS and GUI work different in *nix then in the windows world?

to me DNS (Domain Name Server) has to do with resolving an IP to a sytem name.

example:

http://www.sunstatemartialarts.com

is the Domain name of my URL, DNS will translate that information down to the IP of :

24.227.112.134

that is how i understand DNS. that has nothing to do with calls to start an app. yes KDE/Gnome will make calls to DNS for configuring its network, but that as far as i understand things should not have any issue with my goal.

Last edited by Lleb_KCir; 11-22-2004 at 03:44 PM.
 
Old 11-22-2004, 11:16 PM   #11
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
anyone else with an idea how to speed things up?
 
Old 11-23-2004, 02:17 AM   #12
maenho
Member
 
Registered: Nov 2003
Location: Belgium
Posts: 81

Rep: Reputation: 15
every X application locates the the X-server it wants to display on using the DNS server (or hosts file). If something is wrong with your hosts file and resolv.conf it's possible that it can't find the X server so it waits about 1 minute until it takes the default (local). Just telling you about a problem I experienced myself with exactly the same symptoms as the ones you described.
 
Old 11-23-2004, 02:12 PM   #13
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by maenho
every X application locates the the X-server it wants to display on using the DNS server (or hosts file). If something is wrong with your hosts file and resolv.conf it's possible that it can't find the X server so it waits about 1 minute until it takes the default (local). Just telling you about a problem I experienced myself with exactly the same symptoms as the ones you described.
im not following what you are tring to say. what apps are going to pull from the DNS records?

just not understanding what you are saying. break ti down a bit more for me please.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
speeding up wine apps sigmaes Linux - Newbie 5 11-21-2005 10:28 PM
How to install APM on Debian/KDE system gry-HuhuY5 Linux - Newbie 1 08-09-2005 11:47 PM
KDE 3.3.2 - Mouse Wheel Only Scrolls in KDE Apps mac57 Linux - Software 0 01-19-2005 09:29 AM
HELP!!! KDE 3.1 won't load on my Debian 3.0r1 system. apache363 Linux - Software 4 05-12-2004 07:39 PM
KDE 3.2 menu system for non native apps down? Outabux Debian 24 05-11-2004 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration