7 ms·
One key impetus for Linux moving to systemd was faster boot time, parallelizing init tasks. Is FreeBSD looking at moving beyond traditional rc script boot?
by mapgrep 6y ago
One key impetus for Linux moving to systemd was faster boot time, parallelizing init tasks. Is FreeBSD looking at moving beyond traditional rc script boot?
- toast0 6y agoThere's no need to abandon rc scripts to get parallelism. It looks like there's some work in progress on this [1]. From what I can tell, the change to rcorder to generate parallel start info is there in 13.0, but the change in /etc/rc to request it and to use it is not. You would need to patch that in manually for now. [1] https://wiki.freebsd.org/unitrunker/rcorder https://wiki.freebsd.org/unitrunker/rcorder
- deleted 6y ago[deleted]
- tal8d 6y agoAs somebody who fled Linux to FreeBSD in order to avoid systemd, the prospect of that happening again makes me a little sick to my stomach. Running out of places to go that aren't controlled by people who are openly hostile to POSIX standards.
- mapgrep 6y agoWouldn’t have to be systemd, macOS has launchd for init, FreeBSD could come up with its own thing. This is a good talk I saw recently (by a FreeBSD contributor) on why these sorts of systems have become more common, and why they seem so sweeping in scope. https://youtu.be/o_AIw9bGogo https://youtu.be/o_AIw9bGogo (In fact systemd and launchd are so tailored to their respective operating systems that FreeBSD likely would have to do their own init replacement if they cared to.)
- tal8d 6y ago> This is a good talk That is not a good talk unless you already advocate for abandoning standards, and celebrate Linux's growing power to dictate how the shrinking number of remaining OSes design things. You might easily miss it if you're already onboard with systemd, but in his point by point address of systemd's shortcomings - he repeatedly handwaves and redirects. Systemd is a mess, which is an amazing accomplishment considering the fact that it is supposed to be this great unifying/simplifying layer. So awful that the DoD held out for the longest time in formalizing any kind of baseline security audit procedures that address it. Compare that to something like Solaris SMF. I've never had a problem with the rc system that made me blame the underlying design, but if I did - systemd would be at the bottom of a very long list of my potential solutions, right under 'Set the machine on fire and pickup a copy of "Industrial Society and Its Future"'. I really like the guy running the OpenZFS project, but it is painfully obvious that it is only going to increasingly cater to Linux - and coincidentally a lot of the really annoying aspects of the project are a result of that. For example: that Rube Goldberg build system, with massive amounts of code duplication... that wouldn't be there if not for autotools and gnu export symbol games.
- oblio 6y agoSys V init was not a standard. Is it in POSIX? I can't find it.
- tal8d 6y agoOne of these init systems is run by a guy that is openly hostile to POSIX, the other can be found on several different operating systems and has been around forever. hmmm...
- mapgrep 6y agoHonestly, what do we need POSIX for in 2020? As discussed in the talk, it traces to the age of the Unix wars, when there was a panoply of processors and Unix variants. POSIX is great if you’re concerned with recompiling some C so it works on SPARC and Alpha and POWER, on Solaris, Tru64, and AIX. That world is gone. Yes, I’m for abandoning pointless standards. There are concrete benefits to systemd - faster boot, comprehensive service management, power savings, memory savings, a consistent interface to changing system state. What is the benefit to sticking with an rc script architecture designed to run a handful of processes on a pdp?
- petre 6y agoHave you even used launchd? It's an XML based init system with inconsistent launchdctl directives. I'd even use systemd any day in place of it.
- stock_toaster 6y agoThere are a few Linux distros that use OpenRC with decent success. I run lots of FreeBSD servers, but I also run some Alpine servers, where openrc works well for me (with some s6 thrown in for a few services).
- rleigh 6y agoThat was one of the notional reasons, but I (and others) haven't noticed much of a speedup. If anything, it's slightly slower in my experience (though this obviously depends upon the specific configuration). It was also not unique in parallelising startup tasks. Even sysvinit can be configured to do that with insserv+startpar.
- michaelmrose 6y agoI would question whether boot time is such a meaningful target. It's trivial to leave a system up days or weeks relying on hibernation or suspend instead. This seems especially true given that freebsd is even more likely than Linux to see use as a server instead of a desktop. Besides boot time on any init system with a fast ssd seems to be pretty damn quick. Saving 10 seconds every month will take a long time to pay off.
- GordonS 6y agoNot so much on servers, but boot time is important on desktop, where most users will power it in only during the day.
- znpy 6y agoI generally agree on relying on suspend/resume, but keep in mind that doing so will greatly reduce your laptop battery lifespan. It's a toll that I decided to accept, but most people aren't aware of that.
- michaelmrose 6y agoYour drain over a reasonable period for example unplug your laptop and shove in into a bag and take it out 1-8 hours SHOULD be relatively small. For example this now admittedly dated review seems so suggest a drain of about 0.6% per hour. https://lifehacker.com/how-much-battery-life-does-sleep-mode-really-drain-5526542 https://lifehacker.com/how-much-battery-life-does-sleep-mode... However the internet is seemingly full of complaints that machines drain fast during sleep so your experience may not be unusual but it might pay to check if something is wrong or at least sub-optimal. For example GPU not actually turning off, usb device keeping it from sleeping, hardware or software waking up your machine.