Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-05-2006, 07:40 AM
|
#1
|
Member
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
|
Slackware program startup times slow compared to ubuntu
Hi all,
First off, let me say that I am a long time user of Slack, and prefer it to most other distros I have tried, but out of curiosity I thought I would give Ubuntu a go just to see what all the hype is about. Have to say I am impressed. OK, it uses gnome by default, and while I can see the appeal, I personally prefer KDE. What impressed me the most though, is the speed of it. For instance, from power button to desktop takes about 45secs, while with Slack it's maybe twice that long. Then launching apps is much quicker than I have experienced under Slack, i.e. Open Office takes less than 20 secs under Ubuntu, where it takes maybe a minute or more under Slack. Similarly, Firefox loads in less than 10 secs under U, but takes more then 30 secs under Slack.
Anyway, to the point of my enquiry, while I am not going to change from Slack, mainly due to just how stable it is, how do I get it to be more responsive like U is. I have a custom kernel, compiled for desktop use, dma is enabled, and once a program is open, it runs as fast as I would expect it to. It really is just startup times.
Can anyone shed any light on this.
TIA
|
|
|
08-05-2006, 09:03 AM
|
#2
|
Member
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
|
What window manager are you using in slack? I seem to recall reading that KDE loads a lot of components at its start up in order to speed up application launch later. If you are using fluxbox or xfce under slack, the lag time might be due to the need to load the components that are already loaded if you are using KDE.
The same article that I recall saying that KDE "pre-loads" components also said that gnome did not. So, I have no ready explanation for the difference between slack and ubuntu.
I also need to say that I am not an expert on this stuff, so I could very well be way off base.
|
|
|
08-05-2006, 10:21 AM
|
#3
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012
Rep:
|
For comparison, how long is boot-to-X, without including KDE into the equation?
|
|
|
08-05-2006, 12:45 PM
|
#4
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
KDE easily doubles bootup time on any machine I've tried it on -usually more.
To get a good comparison make sure are running the same window manager, DE and program and check the startup times for the program. The only valid measurement is to run after a fresh bootup finishes(if you kill and restart the same program without rebooting it will load from the cache which may give variable results)
If you still see a significant difference in startup times, then the difference most likely comes from having different kernel options/size and Ubuntu may be using pre-linking which can make lots of difference.
Startup times are another story which involves the boot scripts which are completely from Slackware.
|
|
|
08-05-2006, 12:50 PM
|
#5
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
This is a bit strange as I've seen the exact opposite speed results. Apps start much faster for me in Slack than Ubuntu.
|
|
|
08-05-2006, 12:53 PM
|
#6
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep:
|
It really depends on a lot of factors. Each system is configured so differently that it's impossible to say what's causing the bottleneck.
|
|
|
08-05-2006, 01:52 PM
|
#7
|
Member
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware
Posts: 573
Rep:
|
Yup, my boot up to the command line is slower on Slackware, but programs load and run faster in my experience. Gnome and KDE take about the same speed to load on Ubuntu and Slackware, XFCE starts a bit faster on Slackware and I haven't compared other window managers.
But it is mostly subjective really.
|
|
|
08-06-2006, 07:45 AM
|
#8
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641
Rep:
|
Quote:
Originally Posted by gnashley
the difference most likely comes from having different kernel options/size and Ubuntu may be using pre-linking which can make lots of difference.
|
What does pre-linking do, and what are the up and downsides, considering that it appears not to be used in Slackware?
Do you have any more insight to share with us on this? Googling on re-linking just gives a lot of compiler options, which doesn't really give me much without a proper context..
-Y1
|
|
|
08-06-2006, 08:51 AM
|
#9
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
I'm pretty sure Ubuntu doesn't run ldconfig and fc-cache at startup as Slackware does, that takes a few seconds.. Just edit the scripts and it'll be faster
|
|
|
08-06-2006, 08:51 AM
|
#10
|
Member
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Rep:
|
Here's a link...
http://crast.us/james/articles/prelink.php
I've played with it. Personally, I didn't think it was worth the trouble.
|
|
|
08-06-2006, 01:03 PM
|
#11
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
Yeah, disabling the ldconfig and fc-cache during boot speeds up Slack's boot time.
You can run them manually if and when you need them.
|
|
|
08-06-2006, 03:19 PM
|
#12
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Quote:
Originally Posted by masonm
Yeah, disabling the ldconfig and fc-cache during boot speeds up Slack's boot time.
You can run them manually if and when you need them.
|
I usually switch them to rc.6 (the shutdown script) to make sure they always run. ldconfig is so critical, I would be hesitant NOT to run it...
|
|
|
08-06-2006, 03:25 PM
|
#13
|
Member
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211
Rep:
|
What I do is move ldconfig in rc.M *before* the call to rc.inet1, and let it run in the background. As long as /lib /usr/lib /opt/kde/lib and /usr/local/lib aren't in a network file system, everything should be all right.
Also, hotplug is slightly faster in -current (and when/if Pat drops hotplug for a pure udev system, and upgrades to a newer Udev, everything will be *much* faster).
|
|
|
08-06-2006, 03:33 PM
|
#14
|
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016
Rep:
|
sounds like something is misconfigured on slack. firefox only takes something like 5-10 seconds max to load from scratch on my laptop (1.5ghz pentium m). 30 seconds sounds like way too long. are your hdparm options set?
|
|
|
08-06-2006, 04:02 PM
|
#15
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
Quote:
Originally Posted by cwwilson721
I usually switch them to rc.6 (the shutdown script) to make sure they always run. ldconfig is so critical, I would be hesitant NOT to run it...
|
I don't run it on startup or shutdown at all. I do however make a point of running it whenever I install or upgrade software as libs may be added or changed. Otherwise I'm pretty sure it's not necessary to run it every time the machine is booted. Either way, I've never run into a problem doing it that way.
|
|
|
All times are GMT -5. The time now is 03:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|