LinuxQuestions.org
Visit Jeremy's Blog.
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 03-01-2015, 08:13 AM   #1
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Rep: Reputation: 65
Slow boot up...


Can someone help me to improve my boot time?

Code:
cd /etc/rc.d
bash-4.3# ls --color
init.d        rc.cgconfig.orig  rc.lxc              rc.syslog
rc.0          rc.cgred          rc.mcelog           rc.sysstat
rc.4          rc.cgred.orig     rc.messagebus       rc.sysvinit
rc.6          rc.consolekit     rc.modules          rc.udev
rc.6.orig     rc.cups           rc.modules-3.10.17  rc.ulogd
rc.K          rc.dnsmasq        rc.modules-3.14.33  rc.wicd
rc.K.orig     rc.font           rc.mysqld           rc.wireless
rc.M          rc.fuse           rc.networkmanager   rc.wireless.conf
rc.M.orig     rc.gpm-sample     rc.nfsd             rc.yp
rc.S          rc.httpd          rc.ntpd             rc0.d
rc.S.orig     rc.inet1          rc.pcmcia           rc1.d
rc.acpid      rc.inet1.conf     rc.php-fpm          rc2.d
rc.alsa       rc.inet2          rc.rpc              rc3.d
rc.alsa-oss   rc.inetd          rc.samba            rc4.d
rc.atalk      rc.ip_forward     rc.saslauthd        rc5.d
rc.autofs     rc.keymap         rc.sendmail         rc6.d
rc.bind       rc.laptop-mode    rc.serial
rc.bluetooth  rc.local          rc.snmpd
rc.cgconfig   rc.loop           rc.sshd
I think I have some wrong ...

tia!
Attached Thumbnails
Click image for larger version

Name:	Screenshot - 03012015 - 02:11:27 PM.png
Views:	90
Size:	55.3 KB
ID:	17699  
 
Old 03-01-2015, 08:33 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
SSD
 
Old 03-01-2015, 08:40 AM   #3
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by Didier Spaier View Post
SSD
???

http://lmgtfy.com/?q=SSD

!!!
 
Old 03-01-2015, 08:48 AM   #4
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
Could you perhaps quantify your current boot time, and your hardware setup (cpu speed, number cpus, memory and hard disk size and type)? You might already be as fast as it can go. And how often do you really boot up ? I have a laptop, which boots in about 3 seconds - how ? - simply because it practically never actually boots, but just comes out of suspend mode. Do I care how long it would take to actually boot on the rare occasion that I switch it off - not a chance in hell !
 
Old 03-01-2015, 08:48 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
http://en.wikipedia.org/wiki/Solid-state_drive
 
Old 03-01-2015, 08:51 AM   #6
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Original Poster
Rep: Reputation: 65
I suspect 'modules' ...
 
Old 03-01-2015, 09:03 AM   #7
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by Mark Pettit View Post
I have a laptop, which boots in about 3 seconds - how ? - simply because it practically never actually boots, but just comes out of suspend mode. Do I care how long it would take to actually boot on the rare occasion that I switch it off - not a chance in hell !
...
 
Old 03-01-2015, 09:06 AM   #8
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by Didier Spaier View Post
SSD
thx dude! I'll think about it >>> € $ ¥ <<< ...
 
Old 03-01-2015, 10:03 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Don't forget to use JFS with TRIM, and try to shift the maintenance commands into a runscript to fork to the background, or drop them into a cronjob.

Someone here posted a tip on how to do such things, try the Search feature and search GazL's(?) posts for the script hint. It works very well.

rc.modules is needed to load several hardware setups in the background. Don't thinker with it. You should however delete the older rc.modules-3.10.7 and relink the rc.modules symlink to the newer 3.14.33 version.

You should keep rc.syslog enabled though in case of application problems.

You could also install runit from SlackBuilds and run it through inittab and create runscripts to replace the bsdinit service scripts used by Slackware though it will take some work to get dependencies checked and corrected, it can be done very well.

But yes, hibernation and sleep modes help too, otherwise don't worry about it.
 
Old 03-01-2015, 10:52 AM   #10
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
For the fastest boot up you could just suspend your system instead of shutting down.

For increasing boot speed without suspending, just disable (chmod -x) scripts in /etc/rc.d that you don't need running. You can also edit 'rc.M' and comment out some of the slower parts or add an '&' after them to background them. You can also rewrite the rc.d scripts in ash, which I have done. This should cut the boot time in half. If that's acceptable try it, I can post my ash scripts, I believe there are also some posted by others if you search this forum.
 
Old 03-01-2015, 11:28 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I'm interested to see your ash init scripts, metaschima.
 
Old 03-01-2015, 01:09 PM   #12
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I've attached the scripts that I converted. Some things in rc.M are commented out, but can be uncommented and they should work. I removed the LUKS code that used arrays in rc.S. I don't even use LUKS, so someone will have to write that without arrays if they need it. Or it can be written in a separate bash script.

Rename the file to .txz instead of .log
Attached Files
File Type: log rc.log (34.8 KB, 30 views)
 
Old 03-01-2015, 03:14 PM   #13
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by metaschima View Post
I removed the LUKS code that used arrays in rc.S. I don't even use LUKS, so someone will have to write that without arrays if they need it. Or it can be written in a separate bash script.
http://www.linuxquestions.org/questi...ng-4175522498/
 
Old 03-01-2015, 03:18 PM   #14
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by titopoquito View Post
It doesn't seem to be attached or linked anymore.
 
Old 03-01-2015, 03:39 PM   #15
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by metaschima View Post
It doesn't seem to be attached or linked anymore.
Yes, I noticed that, too. But if you ask, I think you might be able to get hold of a copy of the source. Maybe I still have a copy on m own laptop, but I cannot check it right now
 
  


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
slow boot 10.04 wb8nbs Ubuntu 9 10-18-2010 01:54 PM
Slow boot SavoTU Slackware 9 03-14-2010 03:02 PM
slow to boot, slow dns resolution after host name change FC5 edavis6678 Linux - Newbie 3 01-03-2007 06:26 PM
windows boot slow on dual boot machine fobster Linux - Newbie 4 04-21-2006 07:58 AM
Slow Boot / klatu Slackware 7 03-24-2004 09:22 PM

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

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