LinuxQuestions.org
Review your favorite Linux distribution.
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 12-14-2010, 08:11 PM   #31
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Wink 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.
 
Old 02-12-2011, 08:35 PM   #32
retrodanny
Member
 
Registered: Jun 2009
Location: México
Distribution: Slackware
Posts: 38

Rep: Reputation: 2
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
 
Old 02-12-2011, 08:43 PM   #33
smoooth103
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware (64 bit)
Posts: 242

Rep: Reputation: 62
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...
 
Old 02-12-2011, 09:38 PM   #34
retrodanny
Member
 
Registered: Jun 2009
Location: México
Distribution: Slackware
Posts: 38

Rep: Reputation: 2
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

Last edited by retrodanny; 02-12-2011 at 09:42 PM. Reason: (inet addr: ) was showing as addr*happyface*
 
Old 02-13-2011, 05:45 AM   #35
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
If it's a desktop then you probably won't need rc.pcmcia anyway. chmod -x it and you'll not hit that sleep.
 
Old 02-13-2011, 12:16 PM   #36
retrodanny
Member
 
Registered: Jun 2009
Location: México
Distribution: Slackware
Posts: 38

Rep: Reputation: 2
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
 
Old 02-13-2011, 12:27 PM   #37
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by retrodanny View Post
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.
 
Old 02-13-2011, 12:38 PM   #38
retrodanny
Member
 
Registered: Jun 2009
Location: México
Distribution: Slackware
Posts: 38

Rep: Reputation: 2
Quote:
Originally Posted by H_TeXMeX_H View Post
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
 
Old 02-15-2011, 09:41 AM   #39
splintercdo
Member
 
Registered: Feb 2011
Posts: 141

Rep: Reputation: 11
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
 
  


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
Speeding up LiveDVD boot, is it possible to get a list of files access on boot? MikeyCarter Linux - Software 1 11-17-2009 02:38 AM
Speeding up boot time with Ubuntu Netbook Remix callumacrae Linux - Laptop and Netbook 2 11-02-2009 10:59 AM
Speeding up compile time? Method9455 Linux - Kernel 1 07-01-2007 07:59 PM
Need help speeding up my boot NonSumPisces Linux - General 2 09-05-2004 04:42 PM
Speeding up Linux (Slack) boot pandasuit Slackware 19 08-28-2004 12:46 AM

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

All times are GMT -5. The time now is 12:26 AM.

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