LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-08-2008, 01:04 PM   #16
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190

I believe Pat has modified the behavior of some of these startup scripts in -current (see early August changelog entries). So, another option is to check out what he did and see if you can manually backport similar changes to your 12.1 install.
 
Old 10-07-2008, 02:23 AM   #17
ActiveMan
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Hello, Slackware has this boot up problem because it doesn't take advantage of multitasking. I have solved this issue regarding this command (and others) by appending an & at the end of these slow update commands. Just edit rc.M and change it:

/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 2> /dev/null &

Be careful, if, for instance, you append and & at the end of the commands in rc.inet1, subsequently networks services could fail.
 
Old 10-07-2008, 08:01 AM   #18
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Keep in mind that disc head seeks and processor task swaps don't come for free. If you try and run too many things at once (especially on a uni-processor), you can actually make them take longer than if they'd been run in sequence because of the overheads.

Personally, I've never found the boot up time of slackware to be an issue worth worrying about. One of the biggest speed-ups I've noticed was when I switched to jfs filesystems, as it doesn't require deep fscks to check the filesystems out during the boot.
 
Old 10-07-2008, 09:38 AM   #19
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Thumbs up

Quote:
Originally Posted by GazL View Post

Personally, I've never found the boot up time of slackware to be an issue worth worrying about. One of the biggest speed-ups I've noticed was when I switched to jfs filesystems, as it doesn't require deep fscks to check the filesystems out during the boot.
Agreed. I'm not worried about how fast Slackware boots up. Yes. I've also noticed a significant performance boost after switching to the JFS.
Works for me.
 
Old 10-08-2008, 02:36 PM   #20
ActiveMan
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by GazL View Post
Keep in mind that disc head seeks and processor task swaps don't come for free. If you try and run too many things at once (especially on a uni-processor), you can actually make them take longer than if they'd been run in sequence because of the overheads.
That is just theory. Actually, the sh routines are not optimized. What happens when a command like dhcpd is blocked waiting for a time out? In addition several startup routines in /etc/rc.d poses wait calls.
 
Old 10-08-2008, 03:13 PM   #21
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Another slowdown that nobody has mentioned is the "huge" kernel. With 12.1 and the SMP kernel (not sure about the non-smp as I haven't ran it), it dumps a lot of useless info (for my computer at least), such as RAID. IIRC it was the same with 12.0. I ended up rebuilding my kernel (same version), but removed a lot of the features that I wouldn't use on a laptop. Now granted this won't cut your boot time in half, but any gain is a worthwhile gain.
 
Old 10-09-2008, 06:53 AM   #22
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by ActiveMan View Post
That is just theory. Actually, the sh routines are not optimized. What happens when a command like dhcpd is blocked waiting for a time out? In addition several startup routines in /etc/rc.d poses wait calls.
Don't be so quick to dismiss it. Performance tuning is an involved process and very dependent on the specifics. I/O contention is a reality, not a theory. Head seek (thrashing) is just part of it which I cited as an example.

Now, in the particular case of the slackware's startup scripts, you may be able to gain the odd second or two here and there, but you do this at the risk of breaking something.

Take your dhcpd example. As it blocks waiting for an external response, it seems an ideal choice to run in the background: it won't contend for resources with anything else while it waits. However, you may have some later steps of the startup that require all the network interfaces to have their addresses assigned before they run. By putting the dhcp startup in the background it's possible that they may start before the system is ready for them. It looked like an ideal candidate initially, but it turns out to be not so good an idea on reflection. You don't want your database starting before you've synchronised your system time with ntpd, you can't start ntpd before your network interfaces have been setup by dhcp, and so on. When you start adding parallelisms you have to think very carefully about the consequences.

My personal view is that I'd happily trade the 20 seconds or so off the startup time, for knowing that everything will run in exactly the right order every time. 'Keep it simple' it's the slackware way.
 
Old 10-09-2008, 07:02 AM   #23
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I often noticed users complain about boot duration but then they happily waste their time on internet forums!

(yeah, I am kidding of course)
 
Old 10-09-2008, 10:09 AM   #24
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Yeah, chill out. Give up this obsession with speed. Remember the "Slack" in "Slackware".
 
Old 10-09-2008, 10:18 AM   #25
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Try turning off some of the startup scripts, other options I might have listed here:
http://www.linuxquestions.org/questi...ml#post2921723

Really, there are 3 things to do:
1) Look in /etc/rc.d and make unexecutable any scripts that you don't need, for example if you don't have a PCMCIA card, then make unexecutable rc.pcmcia the command would be 'chmod a-x /etc/rc.d/rc.pcmcia'. If you know what you are doing you can also change things in rc.M and rc.S to speed things up slightly more, but it can cause problems if you don't know what you're doing.

2) Build your own kernel, this is a good resource:
http://www.kroah.com/lkn/

3) Use grub or lilo 'compact' option, this can sometimes halve the boot time.
 
Old 10-09-2008, 11:16 AM   #26
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
As long as the thing boots faster than the time it takes me to make a cup of coffee, then as far as I'm concerned it's within acceptable tolerances.
 
Old 10-09-2008, 02:55 PM   #27
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
I haven't seen it mentioned unless I have missed it, but Slack was always very fast to boot for me until I started using it my laptop. At first, while I was using Ndiswrapper, I had assumed it loading that when I got:

Quote:
Triggering udev events: retry=failed
It hangs there for about 30-40 seconds before continuing on with booting. This really slows down the boot time. I am now using the 2.6.27.rc9 kernel (as I do no longer need Ndiswrapper), and still get this message. So, obviously it was not Ndiswrapper causing it. I have read this:

http://www.linuxquestions.org/questi...ng+udev+events

So I am not the only one experiencing this. Slack is the only distro that issues this message. Never have figured it out.
 
Old 05-11-2010, 03:46 AM   #28
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by reddazz View Post
If I remember correctly Slackware used to run updatedb at boot up which sometimes could slow a system down. This is one of the things you could check and disable.
I had problems with a fast running Slackware 12.2 system. After I changed the hostname from 'hydrogen' into 'nitrogen' the system got sluggish. It turned out to be that nitrogen was not listed in /etc/hosts so the boot process could not determine the IP address and hence slowed down on
Code:
 - cupsd
 - apache
 - alsaconfig
After adding
Code:
192.168.56.7 nitrogen.fruttenboel  nitrogen
to /etc/hosts, the problem was solved.
 
Old 05-11-2010, 06:18 AM   #29
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by gnashley View Post
...
ldconfig should really be run at startup -otherwise it makes no sense to run it -except when libraries are installed or removed.
The database updates are mostly in the same category. What I'm getting at is that these are all sanity checks which are done on each boot in case you or some installer forgot to do these things the last time the machine was running.
...
It's easier to have the sys admin / package maker do the right thing than to remedy their mistakes on every startup.
 
Old 05-11-2010, 05:46 PM   #30
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by guanx View Post
It's easier to have the sys admin / package maker do the right thing than to remedy their mistakes on every startup.
Sure. Do you boot your machine every 5 minutes or so?

When your uptime is in weeks, who gives a rat's ass how long the boot takes?
 
  


Reply



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
Long KDE boot time (~10 mins) on Debian Etch alyoshak19 Linux - Software 8 11-09-2007 08:09 AM
Green Screen at Debian Sarge First time boot...NEWBIE jkcoutel Linux - Newbie 3 08-21-2005 08:05 PM
Green Screen at Debian Sarge First time boot...NEWBIE jkcoutel Linux - Laptop and Netbook 2 08-20-2005 03:32 PM
Second time i boot X on slackware 10.1 it gives a blank screen Occulum Linux - Software 3 08-16-2005 10:48 PM
Slackware 10.1 freezes at boot time without an error penguin_asylum Slackware - Installation 1 03-13-2005 01:55 PM

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

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