There are a lot of issues here that should eventually be lower hanging fruit, but required some infrastructure. EARLY_AP_STARTUP which gets SMP in order a lot sooner should allow for drivers to attach earlier. I vaguely recall some idea on deciding what and when to initialize being the next big opportunity.
EARLY_AP_STARTUP is enabled by default… Is anyone working on enumerating all buses in parallel?
If you have to start several jails upon init, each running its own rc.d start sequence, it can easily take more than a minute. Heaven forbid if you have something like tomcat that takes ages to start, you might be looking at much more.
Don't do that on a desktop maybe?
(Also for apps on servers, I use runit to start services in jails directly like `exec jail -c ... command=/path/to/app/command`.)
Re:Improving TrueOS: OpenRC
by stefantalpalaru on Saturday January 21, 2017 @05:43PM
(#13452503)
OpenRC can parallelise the service start - I use it on Gentoo ~amd64 and despite warnings it can "potentially lock the boot process" I never had any problems. The speed gain is significant.
that's… odd. Pretty much all my FreeBSD machines spend more time before init, enumerating devices and stuff. rc doesn't take much time. Unless it's doing DHCP without a network connection :D