LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 with KDE 4.8.5
Posts: 300

Rep: Reputation: 35
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: 237

Rep: Reputation: 58
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
Senior Member
 
Registered: May 2008
Posts: 3,324

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
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
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Original Poster
Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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
Location: Riga, Latvia
Distribution: AVLinux 6.0
Posts: 124

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


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
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


All times are GMT -5. The time now is 07:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration