OpenBSD is slow to boot - any way to speed it up? reddit / BSD ---------------------------------------------------------------------- bitmadness · 2015-08-15 10:04 Compared to Fedora, which boots in about 5 seconds on my SSD-equipped machine , OpenBSD is extremely slow; it takes almost 20-30 seconds! Upon boot, I see a long list of drivers and devices being identified (the output of dmesg, I assume). IDK what that all means. Any way to improve that? ---------------------------------------------------------------------- rhabarba · 2015-08-15 10:57 [Try this.](http://smarden.org/runit/replaceinit.html) ---------------------------------------------------------------------- localtoast · 2015-08-15 12:21 That's not going to help drivers be recognized any faster, and now makes your install extremely non-standard ---------------------------------------------------------------------- lookindandy · 2015-08-15 23:59 Fedora most likely uses systemd which boots processes in parallel making it much much faster. OpenBSD uses the old sysv style way and boots processes one after the other making booting quite slow. ---------------------------------------------------------------------- notaplumber · 2015-08-16 01:57 This is a non-issue IMHO. The boot messages are part of the kernel autoconf(4) process, detecting and enumerating devices takes time. It may be possible to optimize, but it is literally still taking *seconds* to boot. If you had to experience boot times on older systems, you would honestly not be complaining. That all said, there have been changes in -current/5.8 that make some parts faster.. but some of those delays are literally specified by the devices manufacture so things can settle. Once you've booted your first time, perhaps you'll prefer ACPI suspend/resume. So just close your lid, or type `zzz`. ---------------------------------------------------------------------- notaplumber · 2015-08-16 02:03 OpenBSD doesn't use "sysv style" anything. This is BSD. Also, kernel device probing happens way before the userland init(8) process starts rc(8). ---------------------------------------------------------------------- bitmadness · 2015-08-16 04:02 Yeah, I'm kinda suspicious of such intrusive methods. Anything beyond editing a config file is out... ---------------------------------------------------------------------- lookindandy · 2015-08-16 10:00 bsd was a clone of unix, so yes it kind of is sysv style on everything. ---------------------------------------------------------------------- localtoast · 2015-08-16 11:37 init is one of the ways BSDs and SysVs differ ---------------------------------------------------------------------- ben_bai · 2015-08-16 16:10 create /etc/boot.conf with set timeout 1 this will shave off 4 seconds of waittime from the bootloader. Other than that there is no easy way to speed things up. ---------------------------------------------------------------------- Freeky · 2015-08-16 21:26 A [custom kernel](http://www.openbsd.org/faq/faq5.html#Why) may help a bit. If it's spending a lot of time attaching drivers to devices you don't use, you can disable them. ---------------------------------------------------------------------- anikom15 · 2015-08-16 23:00 Don't shutdown your machine. You should never have to. ---------------------------------------------------------------------- TreeFitThee · 2015-08-17 03:33 Not sure what platform you're using but on my laptop I disable all network devices at boot. This shaved several seconds off the boot time when I was not connected to network and manually connecting to networks does not take long if necessary. Not to mention (for wifi networks) auto connect can be a security risk. ---------------------------------------------------------------------- ben_bai · 2015-08-17 07:28 dmassage(1) from ports can help doing so. Tried it, it did save a few seconds. Next thing would be a custom rc(8). Now I feel dirty writing this, because "If you have to ask, you better not do this!" Also who cares about boottime? OpenBSD is about uptime!