LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware 13.1 speeding up boot time (https://www.linuxquestions.org/questions/slackware-14/slackware-13-1-speeding-up-boot-time-820654/)

folkenfanel 12-14-2010 08:11 PM

I move all the stuff I don't need, like updating the icon cache, out...
 
My standard boot time is about 20-25 seconds. I have achieved booting in 14 seconds but then I needed to reload rc.inet1 manually.

retrodanny 02-12-2011 08:35 PM

I was just taking a look at the rc.M script and I noticed this

Quote:

if [ -x /etc/rc.d/rc.pcmcia ]; then
. /etc/rc.d/rc.pcmcia start
# The cards might need a little extra time here to initialize.
sleep 5
fi
is that sleep necessary there? or could I just comment that out without harming the system? It would cut 5 seconds right off

smoooth103 02-12-2011 08:43 PM

How much time does this actually save? like maybe 2-3 seconds? versus the time to actually "make the changes" and make a post about it ;) .. Also, how many times do you reboot?! Typically my uptime is ATLEAST weeks or months...

retrodanny 02-12-2011 09:38 PM

I turn my computer off at night everyday, and I like to see it boot up fast ;) (it's a desktop running on old hardware.. I wouldn't bother if it was brand new.. or if it was a server)

Here's another tip:

The DHCP client daemon takes a little while to get an IP lease from your gateway.. so if you're running a desktop computer I would suggest setting up a static IP address instead. If you don't know what to enter for IPADDR, NETMASK, or GATEWAY in your /etc/rc.d/rc.inet1.conf you can just enter the same that you got from dhcp.. view your IP and subnet mask with
$ ifconfig
you'll see something like this:
Code:

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx 
          inet addr:192.168.2.100  Bcast:192.168.2.255  Mask:255.255.255.0

my current ip is 192.168.2.100 (inet addr: ) and my subnet mask is default (255.255.255.0)
view your default gateway by doing a traceroute to any site you want (the default gateway will be your first hop, example:
Code:

$ traceroute linuxquestions.org
traceroute to linuxquestions.org (75.126.162.205), 30 hops max, 60 byte packets
 1  DD-WRT (192.168.2.1)  0.601 ms  1.343 ms  1.601 ms

mine is 192.168.2.1

GazL 02-13-2011 05:45 AM

If it's a desktop then you probably won't need rc.pcmcia anyway. chmod -x it and you'll not hit that sleep.

retrodanny 02-13-2011 12:16 PM

Thanks GazL, that worked out nicely. I have a way faster boot time after all these tweaks... I don't see it lag on any process on while booting anymore

H_TeXMeX_H 02-13-2011 12:27 PM

Quote:

Originally Posted by retrodanny (Post 4256614)
I was just taking a look at the rc.M script and I noticed this



is that sleep necessary there? or could I just comment that out without harming the system? It would cut 5 seconds right off

It may be necessary, but you can try it with less and see if it still works. This is assuming, of course that you have PCMCIA devices and rc.pcmcia is executable.

retrodanny 02-13-2011 12:38 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 4257047)
It may be necessary, but you can try it with less and see if it still works. This is assuming, of course that you have PCMCIA devices and rc.pcmcia is executable.

I ran chmod -x on rc.pcmcia like GazL suggested and I rebooted.. It does still work for me.
Thanks for your reply

splintercdo 02-15-2011 09:41 AM

hmm...
1. why putting proccesses in background with &,
is faster, I tried to do that and I don't see any difference in boot speed


2. yeah second advice about commenting out cache update
and advice from http://humanreadable.nfshost.com/sdeg/boot_time.htm about commenting
mime database seems to be logical to increase loading speed, but the funny thing was that after commenting these blocks out my slackware started to boot a bit slower :S I thought about using these advices and if use house cleaning script from link above, it would be cool solution, except the fact that it doesn't work.

May be that is because I did these things in Virtual Box on absolutely newly installed system :S


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