Just installed my first copy of Arch on my machine. I am loving it so far, especially Pacman, however I would like to see about speeding up the boot time of the machine. This is sort of a generic question but what tips/tricks do you have to speed up boot times on Arch? I'm all about speed and efficiency and it seems like it is taking a little bit longer than it should. I have already skimmed down on interfaces loading on start up, modules that are not really necessary, and killed most of my scripts that run after boot. Suggestions?
Last edited by Morfir (2011-12-10 18:01:15)
Buy an SSD, try systemd maybe.
Edit: How long does it take exactly? Use bootchart to see why is it taking so long.
Have a peek https://bbs.archlinux.org/viewtopic.php?id=55302
Last edited by karol (2011-12-10 18:20:13)
Have you read this page in the wiki?
If you are using a DE look at the session/startup settings and remove any unneeded items, background daemons in rc.conf (you might have to experiment with this, backgrounding certain daemons can cause issues. With my system I was able to background everything but dbus fine though)
The biggest improvement in boot time for me is using readahead-fedora or e4rat. e4rat will probably give you bigger improvement, but it isn't as easy and automatic as readahead fedora. A light login manager really helps too, I found GDM added quite a few seconds to my boot, using LXDM shaved quite a few seconds off. I'm able to get to a usable XFCE desktop in about 17 seconds now on a 5400rpm drive.
Build yourself a custom kernel, build in all of the modules you need to boot. Set yourself up to not use an initrd.
Mind you, keep the stock kernel and initrd on the boot partition and keep an entry for them in your /boot/grub/menu.lst. Add the custom kernel to the boot partition and make a new entry for it in the menu.lst file.
If you do this, make sure you set it to optimize for your specific processor.
also, if you have never compiled a kernel, take a look at:
http://www.gentoo.org/doc/en/handbook/ (No I am not joking -- Gentoo documentation on kernel compilation is unsurpassed)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence. You must not work with the public much. -- Trilby
How to Ask Questions the Smart Way
@karol just ordered a ocz vertex about 3 days ago so well see how that works out.
@bwat47- Thanks this looks really interesting, I think I am going to give e4rat a go... The whole reason why I wanted to do this is so I could learn more about the system processes upon boot so I think this would be better.
@ewaller- I have never looked into building a custom kernel for myself, I am reading up on it right now and will let you know how it goes.
I actually timed my to test it to get a data table:
Trial 1- 1m 48s
Trial 2- 1m 33s
Trial 3- 1m 21s
We will see how it effects this constantly over a minute time. Thanks for all of the feedback.
If you use LILO add compact to the global section