LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-05-2006, 07:40 AM   #1
vdemuth
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: Reputation: 98
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
 
Old 08-05-2006, 09:03 AM   #2
hussar
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: Reputation: 30
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.
 
Old 08-05-2006, 10:21 AM   #3
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
For comparison, how long is boot-to-X, without including KDE into the equation?
 
Old 08-05-2006, 12:45 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
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.
 
Old 08-05-2006, 12:50 PM   #5
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
This is a bit strange as I've seen the exact opposite speed results. Apps start much faster for me in Slack than Ubuntu.
 
Old 08-05-2006, 12:53 PM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
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.
 
Old 08-05-2006, 01:52 PM   #7
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware
Posts: 573

Rep: Reputation: 59
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.
 
Old 08-06-2006, 07:45 AM   #8
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
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
 
Old 08-06-2006, 08:51 AM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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
 
Old 08-06-2006, 08:51 AM   #10
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
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.
 
Old 08-06-2006, 01:03 PM   #11
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
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.
 
Old 08-06-2006, 03:19 PM   #12
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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...
 
Old 08-06-2006, 03:25 PM   #13
theoffset
Member
 
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211

Rep: Reputation: 31
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).
 
Old 08-06-2006, 03:33 PM   #14
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
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?
 
Old 08-06-2006, 04:02 PM   #15
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
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.
 
  


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
linux slow compared to windows? InsaneLampshade Linux - Newbie 11 09-17-2007 07:48 PM
Slow performance as compared to Windows! pburn Mandriva 6 07-05-2006 12:13 PM
slow startup times georgel12 SUSE / openSUSE 8 06-03-2006 07:30 PM
Fedora Core 3 - Slow Program Startup GAVollink Fedora 13 02-08-2005 06:44 PM
Slow startup on SlackWare. Replicated Linux - Software 1 04-15-2003 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:57 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