Yeah, but still it requires quite some effort to get it that fast. I've got an SSD myself and it still takes over 20 seconds due to some slow-starting daemons (and a stupid piece of hardware which wants its firmware sent over a slow 1wire bus every time I boot... here's hoping for fast systemd adoption with its socket activation).
How do you eliminate time spent in the BIOS? Mine takes forever to do hardware initialization.
3 points
unknown author1 hidden
2 most effective ways - Most BIOS have settings for 'quick' or 'quiet' boot that skips things like memory checking. also, ensure that your main boot device is first on the list -- no point in having network and CD above your built in drive if you don't boot from either, and it's easy to temporarily circumvent that.
This would be really nice... My laptop won't hibernate with Arch, and when it used to hibernate it was really slow to load the state. A quick boot would be awesome! I don't think there is any room inside to install a compact flash drive, but I'm thinking maybe a broken USB thumb drive stuffed into the case or something as /boot
Use systemd and you might shift some more off. Sped the boot on my laptop up with 'bout 5 seconds (on a total of 25-30). e4rat also reduced it a bit, but I doubt that would help you since you have a solid-state boot medium.
3 points
unknown author5 hidden
i'll look into it. arch doesn't use sysvinit though.
Nice to see. I should invest in a CF card for my old x60 too.
Are you just using standard packages (kernel in particular)?
Suggestions to speed up things more: compile your own kernel where the modules required for boot are compiled in (modules for yor CF card and controllers + filesystem). Then you should be able to boot without an initrd. This should save you at least a second.
Secondly, install systemd and systemd-arch-units from [community] and use that instead of initscripts. This should save you more than a second too. The main reason for the speed up is that you no longer have to wait for udev to initialize all your hardware. You will also save some time due to parallelization, of daemon start-up, but I guess you are not starting many daemons anyway?
There are also tricks you can enable once you have systemd up and running to get things even faster. Firstly, it has readahead support to greatly optimize the IO. Secondly, you can use the nifty automount support. This will allow you to start your WM before fsck has finished on /home.
Overall I expect you to be up and running in well under 10 secs. ;-) When that's done you can use cool tools like "systemd-analyze plot" to figure out where else to optimize.
Happy booting ;-)
3 points
unknown author
almost completely standard packages. i have a number of AUR packages installed but only if the package is not available in a more vanilla/stable state in the repos.
i'm really not interested in systemd until it's more stable. i'm a debian user using arch :P i don't believe i'd see much parallelization on a single-core processor unless systemd uses some fancy magic I've never heard of (extremely likely).
startup timing is fun, but I don't actually shut this machine off that often. boot + xfce start takes more time than waking from sleep, even at this point.
i am pretty interested in systemd but since i dont have a testing box, i'm really not willing to put my main personal machine on the until i have a few days off (honestly it wouldn't take me that long to just slap it on the box, but i want to learn all about it and take breaks in between :P).
no. i haven't done enough research on it yet. i've heard it's not really ready for primetime but not much else about it.
edit: no separate /usr? i don't have multiple partitions on my CF for wear-leveling, but come on.
2 points
unknown author1 hidden
Too bad my 2 year-old desktop takes about 4 minutes just to POST. Granted, I have eight HDDs, but still.
2 points
unknown author
wtf kind of raid card are you using? even enterprise RAID cards don't take that long. i have a machine at work with 2 RAID controllers and a total of 11 drives and it takes less than 2 minutes from power-on to prompt.
Got mine down to 13 seconds =) It's not on 6yo hardware, but shit, that's still quite fast =)
2 points
unknown author
neat video (i've got a t42 myself), but the one of the great things about linux is the uptime, so boot time doesn't really matter.
1 points
unknown author5 hidden
Yet another useless feature brought to you by... Arch.
Because turning your computer on once every 10 days is actually a significant time commitment.
-11 points
unknown author2 hidden
you're totally right. i dont know why you're getting downvoted.
honestly this took me about 20 minutes of configuring my install correctly and then upgrading to 3.0 recently. 3.0 cut about 2 or 3 seconds off my boot.
51 comments
Test system:
Uh.. that compact flash is going to make a big difference.
Yeah, especially since booting up is mostly hard drive limited, not CPU.
It's still cool, what's your point?
total $250 investment for the entire machine. it's still 6 years old and using CF over PATA.
Yeah, but still it requires quite some effort to get it that fast. I've got an SSD myself and it still takes over 20 seconds due to some slow-starting daemons (and a stupid piece of hardware which wants its firmware sent over a slow 1wire bus every time I boot... here's hoping for fast systemd adoption with its socket activation).
How do you eliminate time spent in the BIOS? Mine takes forever to do hardware initialization.
2 most effective ways - Most BIOS have settings for 'quick' or 'quiet' boot that skips things like memory checking. also, ensure that your main boot device is first on the list -- no point in having network and CD above your built in drive if you don't boot from either, and it's easy to temporarily circumvent that.
This would be really nice... My laptop won't hibernate with Arch, and when it used to hibernate it was really slow to load the state. A quick boot would be awesome! I don't think there is any room inside to install a compact flash drive, but I'm thinking maybe a broken USB thumb drive stuffed into the case or something as /boot
Which daemons did you start during boot?
According to bootchart2 my laptop takes almost a minute until X is started. I don't think that a i7 laptop with 7200rpm hdd should take that long.
What SLiM theme is that? I havent seen one like that....
i made it. it's based off the DWM slim themes.
http://seth.nvsbl.org/projects/themes/slim/login
edit: fixed URL
I'm using your theme. Good job!
Use systemd and you might shift some more off. Sped the boot on my laptop up with 'bout 5 seconds (on a total of 25-30). e4rat also reduced it a bit, but I doubt that would help you since you have a solid-state boot medium.
i'll look into it. arch doesn't use sysvinit though.
What do you mean, arch doesn't use sysvinit?
Nice to see. I should invest in a CF card for my old x60 too.
Are you just using standard packages (kernel in particular)?
Suggestions to speed up things more: compile your own kernel where the modules required for boot are compiled in (modules for yor CF card and controllers + filesystem). Then you should be able to boot without an initrd. This should save you at least a second.
Secondly, install systemd and systemd-arch-units from [community] and use that instead of initscripts. This should save you more than a second too. The main reason for the speed up is that you no longer have to wait for udev to initialize all your hardware. You will also save some time due to parallelization, of daemon start-up, but I guess you are not starting many daemons anyway?
There are also tricks you can enable once you have systemd up and running to get things even faster. Firstly, it has readahead support to greatly optimize the IO. Secondly, you can use the nifty automount support. This will allow you to start your WM before fsck has finished on /home.
Overall I expect you to be up and running in well under 10 secs. ;-) When that's done you can use cool tools like "systemd-analyze plot" to figure out where else to optimize.
Happy booting ;-)
almost completely standard packages. i have a number of AUR packages installed but only if the package is not available in a more vanilla/stable state in the repos.
i'm really not interested in systemd until it's more stable. i'm a debian user using arch :P i don't believe i'd see much parallelization on a single-core processor unless systemd uses some fancy magic I've never heard of (extremely likely).
startup timing is fun, but I don't actually shut this machine off that often. boot + xfce start takes more time than waking from sleep, even at this point.
i am pretty interested in systemd but since i dont have a testing box, i'm really not willing to put my main personal machine on the until i have a few days off (honestly it wouldn't take me that long to just slap it on the box, but i want to learn all about it and take breaks in between :P).
do you use SystemD?
no. i haven't done enough research on it yet. i've heard it's not really ready for primetime but not much else about it.
edit: no separate /usr? i don't have multiple partitions on my CF for wear-leveling, but come on.
Too bad my 2 year-old desktop takes about 4 minutes just to POST. Granted, I have eight HDDs, but still.
wtf kind of raid card are you using? even enterprise RAID cards don't take that long. i have a machine at work with 2 RAID controllers and a total of 11 drives and it takes less than 2 minutes from power-on to prompt.
Got mine down to 13 seconds =) It's not on 6yo hardware, but shit, that's still quite fast =)
neat video (i've got a t42 myself), but the one of the great things about linux is the uptime, so boot time doesn't really matter.
Yet another useless feature brought to you by... Arch.
Because turning your computer on once every 10 days is actually a significant time commitment.
you're totally right. i dont know why you're getting downvoted.
honestly this took me about 20 minutes of configuring my install correctly and then upgrading to 3.0 recently. 3.0 cut about 2 or 3 seconds off my boot.
Silly question, but do you use stock kernel? On mine minimal .config, I get from grub to init in less than 2 seconds.
You do realize this is /r/archlinux right?
If you don't like tinkering why do you bother wasting your time in /r/archlinux?