slackware 13.1 speeding up boot time
Just some things I changed to speed up the boot time.
In '/etc/rc.d/' rc.acpid Code:
echo "Starting ACPI daemon: /usr/sbin/acpid &" Code:
echo "Starting HAL daemon: /usr/sbin/hald --daemon=yes &" Note that commenting out some of these may mess things up, but you can run these commands manually. However, I don't see why this has to be done EVERY BOOT. Code:
# Update the X font indexes: Code:
# Mount non-root file systems in fstab, but not NFS or SMB Anyway, I'll be away on vacation for a while, so I'll see you later :) |
Have you tried initng?
|
This may come in handy... wanted to cut down on some of the "extra" stuff, but did not have time to look for them.
|
|
I moved the GTK immodules updating into a new file and named it rc.update-gtk, and added a call to it from rc.M. This means I just need to chmod it every now and then to run it.
What I would like to do, and it's a pound to a pinch of salt someone here will tell me how, is to run that script automatically, then to somehow have it tagged as having been run, and avoid running it fot the next X number of boots, where X=some arbitrary number I can assign, maybe via a .conf file of some sort. Anyone any suggestions? TIA |
Quote:
|
Quote:
Code:
#!/bin/bash Code:
/etc/rc.d/rc.boots /etc/rc.d/rc.update-gtk 20" |
Hi,
I've followed the suggestions pointed out in this thread, beside putting in background the start of some daemon I've put part of rc.M into an executable saved in cron.daily like explained by Woodsman obtaining a considerable reduction in boot time. Now I wander if there is a way of knowing if and when this cron's commands are executed … just to be sure that I've done everything properly. Can someone give me instructions? |
I cut down my boot time on slackware-13.0 by building a monolithic kernel with just the
built-in hardware that's part of my laptop so much so that lsmod returns a blank screen until I plug something in to a usb port |
I just buy a faster machine.
|
Quote:
|
Works for slack too.
|
I just go make coffee while it boots.
|
Quote:
|
Quote:
|
man crontab
Quote:
Quote:
Code:
man crontab ;) |
Quote:
I guess I could do that as well and put all of this in cron daily or weekly, but I can also just run it when it is needed. |
Does anyone have ever tried upstart or some thing like that?
|
No I don't like the Upstart concept. Event driven with rules based on dependencies! I'll pass.
I don't care for the possibility of manually shutting some service down and then finding that it triggers Upstart in to ending something else I didn't necessarily want to stop. The risk and complexity it introduces are simply not worth the 20-40 seconds or so it might save on a boot. Interestingly, I was just reading about systemd on lwn.net It seems very clever, but again, perhaps a little too clever. I'll take slow and reliable. |
It seems most slack people don't like dependencies. However, there is dependency in our init system. For example, you cannot run rc.M before rc.S. The root cause we have sequence is dependencies between each component.
But I totally agree that introduce a complex core component in order to save 20~30 sec boot time may not be a good trade. Especially for the one who once boot system up would keep it going for days untill *have* to shut it down. ;) But I think for the people who really seeking for extreme boot up time, you can give upstart a try. (BTW, the boot time of Ubuntu *really* impressed me a lot. It feels only seconds to be into a ready desktop) For systemd, I heard it has been put off untill FC15. Even Fedora people does not accept it, what else can we do? ;) |
If the tips from here are correct, why don't Pat use it in Slackware by default?
|
I have used that house-cleaning stuff. However, there are times when new libs are newly installed but still the system cannot load that shared lib because the updating takes place once a day - if you set the house cleaning daily.
I have rebooted several times but then I discovered that all I need to do is run ldconfig. It may be annoying to others when it is included in Slackware by default. |
All of this work just to shave 30 seconds off the boot time? Unless you're rebooting a couple of dozen times a day at the minimum, is it really worth it? Seriously? Bragging rights for the fastest boot time hardly seems to justify the effort.
|
I don't know what my boot time is, but it's fast enough for me :) It was excessively long tho, before I tweaked it.
|
I almost never boot. I suspend to RAM whenever I leave the computer for more than 3 minutes, and the wake-up time is about 5 seconds. For me, there's no need to change the init sequence when there are other more useful facilities in modern computers.
|
I've done a couple of those modifications to shorten boot time but decided it's just not worth it. It is usually an after the fact issue that I remember I have to manually update things that should have been accomplish at boot time.
Besides I like watching the boot messages as they go by. :) |
I haven't timed my boot-up, but it's fast enough for me. I'm not working against the clock, I had enough of that crap when I was working in machine shops on piece-work.
|
Why brianL, nice to hear you were a machinist -as I once was myself.
|
Quote:
|
The TuxOnIce kernel patch has sped up hibernate quite a bit for me.
http://tuxonice.net/ It only takes about 10 seconds to resume on my netbook with 1 GB ram (it takes about 30 seconds when using the default 'swsusp') |
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.
|
I was just taking a look at the rc.M script and I noticed this
Quote:
|
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...
|
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 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 |
If it's a desktop then you probably won't need rc.pcmcia anyway. chmod -x it and you'll not hit that sleep.
|
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
|
Quote:
|
Quote:
Thanks for your reply |
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 02:34 PM. |