151 points · by rsync · 4y ago · 177 comments
Looking at freebsd.org right now I see that my options for production, release systems are 12.3 and 13.0 ...
... which means that if 12.1-RELEASE came out at the end of 2019 and 13.0-RELEASE came out in April of 2021, you had all of 16 months to make investments in the 12 branch before it was hopelessly passe and all queries regarding it would be answered with:
"That's fixed in current ..."
The 4.x nostalgia is justified: it was polished and polished and polished over many years and many organizations were incentivized to invest in that branch
So basically the same as Debian and Ubuntu LTS? Debian releases every ~2 years with 5 years of Security+LTS support, which is the same as Ubuntu (LTS):
* https://en.wikipedia.org/wiki/Debian_version_history#Release...
* https://en.wikipedia.org/wiki/Ubuntu#Releases
From "Changes to the FreeBSD Support Model":
- Resolving our arbitrary (and unofficial) 5-year branch lifetime
guarantee. The support policy is that the stable/X branch will be
supported for 5 years (minimum) from the point X.0-RELEASE is released.
We now guarantee a 5-year lifetime on the branch, regardless of how many
releases are built from the branch. Additionally, a "last minute"
release from the stable/X branch does not constitute expanding the support
lifetime for the branch as a whole for an additional two years.
[…] - A new stable/ branch release will not occur before two years after the
X.0-RELEASE from the prior branch. This limits the number of
simultaneous supported branches, which will greatly reduce the overall
number of branches that must be maintained and build-tested for
Security Advisories and Errata Notices, reducing turnaround time.
* https://lists.freebsd.org/pipermail/freebsd-announce/2015-Fe...1. GP makes me wonder whether the FreeBSD definition of LTS is less than people expect.
2. Maybe to properly admin a modern FreeBSD box the admin is supposed to be making the underlying system version easily replaceable. i.e. Make the actual OS files changing have no effect upon hosted system/application stability.
This is how things worked at Yahoo and WhatsApp.
For the most part, a server kept whatever version of FreeBSD it was installed with, and the application logic lived in /usr/local/ or /home/y/ or /home/whatsapp/
Keep your 'build' machine to compile production executables on the oldest OS release of your fleet, and everything should run everywhere. (You'll need to use the compat-X stuff so your FreeBSD X+1 machines can run FreeBSD X binaries, but that's easy)
You can use stuff from the base system, but not if you expect recent changes.
I don't remember ever doing an OS upgrade at Yahoo, although it must have happened. In my group, we only got updates with new hardware; which was fine, hardware was changing rapidly.
At WhatsApp, I drove the OS updates towards the end of WhatsApp's use of FreeBSD. A fair amount was just not wanting to have 4 different major versions out there, but there were also forced updates to get important network bugfixes or performance improvements. Sometimes it was easier to find the handful of boxes that were too old to use something nice in a script and update them, rather than fixing the script to not use the nice feature.
When we ran into bugs on older versions, upgrading to a version that already had it fixed was sometimes an option, but sometimes it'd need to be backported, and sometimes the bug was still in -current. We didn't run into too many of those though, our local patch set was never more than about 10 patches.
- if you could start all over fresh, what OS (and why) would you run your business on?
- what’s your opinion about Dragonfly? Any experience with it?
- what are the things you love about FreeBSD, as well as what still needs improvement (besides release cycle topic)?
Since ZFS is now so core to what we do, it was a very natural evolution.
I have zero experience with Dragonfly BSD.
I love that FreeBSD is still a very simple UNIX without complications like systemd. I was recently tinkering with a raspberry pi and had to work out wifi connectivity and had to interface with ... what is that weird wifi subsystem that linux uses ? Supplicant ? Wow.
I just want to pipeline commands and edit config files. I don't care that it's inefficient or doesn't scale. It has scaled just fine for me.
OpenBSD has better integrations with ifconfig and wpa though, it’s possible they are ported over now, but wifi config is the same as in Linux (or had been for quite a significant amount of time) on freebsd.
Completely agree about the opaque and incidental complexity of the systemd ecosystem though, I’m glad people love it but it’s not for me.
Every foundation goals can be driven via sponsorship. At the end everything is simplify as who pays the bills at the end of the month?
This raises the old question: Who pays for the free in free software?
https://freebsdfoundation.org/our-donors/donors/?donationYea...
I don't know how many FreeBSD devs are paid full time and how much of it is voluntary, but this is the outcome that I would expect absent a traditional customer-vendor relationship. This is basically every open source project ever where most of the work being done is non-commercial.
Did anything come of it?
I'm curious: Why _shouldn't_ it be an OS primarily for its developers? Why should they focus on others when they're the one building it?
- They use a lot of code that they don't develop. If FreeBSD is not for others then those external projects and developers would be disinclined to make their stuff work on FreeBSD.
- Every new FreeBSD developer comes from a non-FreeBSD developer who is interested in FreeBSD and probably uses it. More developers ~= better FreeBSD for FreeBSD developers.
- More users (very roughly) means more money. Whether that's money to pay for more FreeBSD developers, or incentive to make your hardware work with FreeBSD or port your software to it, there are some positive effects on the system and possibly your wallet.
- Personal satisfaction to develop software lots of people use. Also the recognition that comes with that can get you a job or help you meet people and go places.
So lots of reasons. Even being purely selfish and hoping to extract the most from it, there are plausible reasons why some amount of focus on others might be the best way to go about developing a the project.
5.x had all kinds of problems and then 6.x was the first release that barely got out into public use before 7.x undercut it ... and that is the cycle we have been in ever since.
4.x had minor releases going all the way to 4.11. Nowadays, major versions generally stop at X.3 (for instance, 11.3).
There wasn't a "STABLE" release of it until FreeBSD 5.3 https://en.wikipedia.org/wiki/FreeBSD_version_history#FreeBS...
FreeBSD may not be a perfectly-run project but I honestly can't imagine using anything else :)
Discourse used to be a thing.
That person was Linus.
I've found my share of trolls and assholes, but likewise I've found that being forthright, polite and respectful tends to yield answers.
Imagine a term like "RTFM" being coined and used in popular tech formus today. Back in the days "RTFM" was a valid one-word response to any number of questions by a n00b; if said question was in an IRC channel you'd often get kicked or even kick-banned for good measure.
When I was learning to code in the late 90s early 2000s people seemed much nicer and more patient then than they do now… I try to avoid asking questions on SO because of the negativity there.
> Discourse used to be a thing.
That is adorable.
Fine by me, there's enough hatred in the world already, go express it to a shrink, instead :-)
A worst-case 16 months sounds like an absurdly long support window by the standards of most actively developed projects; anything but the largest and most corporate of projects is unlikely to do better than that.
And it seems contradictory to complain that stable releases aren't supported long enough but you're waiting too long for new functionality. Of course everyone wants daily releases that are supported forever, but realistically with finite development effort most projects have to settle on something equivalent to "you can run -CURRENT or you can run LTS, pick your poison".
The previous model where a major change could have support last for decades, where the system was modular in that patches could apply to any major version - that was gold.
Unfortunately today we have this "yesterday's tech is garbage" attitude, and honeslty it is mostly making all software garbage.
Do you ever think about your toaster? No of course you don't. It turns on when you need it, toasts the bread, and then turns off. It doesn't require your attention. Ever.
Then you look at your computer and wonder what buggy hell you'll end up with if you roll the dice with the latest updates.
Something is fundamentally wrong about how we are using computers.
Computers as appliances used to be more true than it is today on significantly worse hardware.
The “instant on”- of a commodore64 is a distant thing of the past but it needn’t be.
One of the major reasons for systemd coming to prominence was boot times, so people do care.
If your machine could start and stop in 500ms flat then it would fundamentally change the way you interact with it.
Here's a summary of what happened: Firefox got a new password database format. Originally, it would write the new database file and use it if present, but leave the old one there indefinitely. A little while later, people realized this was a security vulnerability: if you create or change your master password, the old database will still let attackers in without one or with the old one. The vulnerability was fixed by having Firefox delete the old database on startup.
The code to read and write the new password database was a new feature, so Red Hat deemed it unworthy to add to their "stable" distro. The code to delete the old password database was a security fix, so Red Hat cherry-picked it into their distro.
But now the problem should be obvious: Red Hat's version of Firefox now deleted the old password database on startup, but lacked the code to write out the new version of it. As a result, as soon as you started Firefox, your saved passwords would be completely wiped from disk. This problem was inherent to the "stable" model that RHEL uses, and would have never happened with distros that just take new upstream versions and avoid cherry-picking patches, like Arch.
One backwards compatible issue in how many years, builds and packages? I would say _often_ is highly exaggerated. I've had many more issues with rolling release distros than I've ever had with CentOS, I can basically do a yum upgrade and reboot with my eyes closed and not have any issues.
you bet this thing has some little RT-OS on it, like FreeRTOS maybe?
Btw, I'm an ex proprietary-solution-based-on-FreeBSD developer.
Wouldn’t it be great for FreeBSD to be the first OS to have a release that was actually, truly finished? At the moment, all OS releases are just waymarkers on an endless, goalless roadmap of perpetual development.
I don't mean this in a rude or dismissive way but these comments make me want to pull my hair out. Deciding your software has a fixed scope and is finished doesn't stop the wheels of progress from turning. Worst case, the rest of the world will decide the scope you chose was crap, for reasons beyond your control, and then your project is dead. I get that it is an engineer's fantasy to build a theoretically "perfect" system but such a thing can't exist in practice. I think you'd have a better chance of proving P=NP or something.
There is no good reason why one should strive for a piece of software to be eternal.
It would be much better to say, well this is what we wanted to accomplish. The program does a good job now.
Later it might be time to build something else.
You build a nice warm and cozy cabin in the woods, and you like it. Keeps you warm and dry. Success.
Now 15 years later, the area is no longer in the woods, rather it is now zoned within a city to have duplexes.
You can then think that you built such a great building that now you need to remodel it into a duplex, and then a quadplex and then a skyscraper.
I think saying "my cabin was very good, now I have to let go of it and and build something else" is a much better approach.
It is nearly delusional to think that you will write a program that will be good enough to be prepared for what the future brings.
We need ot let things die and build again.
Set some goals, release software that achieves those goals, and keep fixing bugs that are found.
If you have some new goals (support new hardware, add new feature), work on those in the next release. But don’t abandon the old release, because it still works to achieve the original goals.
What I’m suggesting to avoid is the situation where a bug is found and the user is told “it’s fixed in the next release”. If the bug compromises the goals of a release, it should be fixed in that release!
Sure you’d have to support old releases for much longer, but that’s not the hard part.
The hard part is deciding what the goals are in a precise and coherent way (for this purpose, goals should be the set of promises made to the user, which when broken give rise to a bug). I don’t think any large software project has good discipline here. I don’t think it’s been done before for an OS. But I’m talking about differentiation here.
There is a good reason for new features. But it might be nice if those features came as part of an official set of extensions around a stable core, to get the best of both worlds.
Kernel subsystem are written by a couple developers at most, in private, and submitted as a +20k/-5k single file diff on a public ML for "discussion".
Some developers I spoke with privately were able to make things move a bit by getting their commit bit and start making aggressive changes without discussions / consensus. That wasn't my style.
Hardware eventually fails. Replacement hardware is eventually incompatible with previous hardware. "Finished" would in this case be a synonym for "dead".
> Wouldn’t it be great for FreeBSD to be the first OS to have a release that was actually, truly finished?
By OS do you mean just the kernel or also the userspace?
Then I think the challenge is to determine what gets included under the purview of relentless polishing.
Assuming you mean just the kernel, then probably bug fixes are included. But what about drivers for new hardware? And when researchers at Stanford develop a new file system algorithm with foo bar baz properties? Or a new scheme for sandboxing user programs?
I don’t think I understand the (many) purpose(s) of OS versioning. Vendors use them to make specific maintenance commitments? “We will continue to make bug fixes for version XYZ until 2025.”
And if end users care about a particular program, “Okay, version XZY of my favorite OS supports programs A and B.”?
> But drivers should be buildable by the HW vendor right?
The vendor may not create a driver for this OS. “Only 10k people use this OS, therefore it’s likely not profitable for us to make a driver for it.”
Sarcasm aside, I agree, that lots of software could feel more "finished"/refined. I'm trying to think, which of the xkcd comics fits the best here...
Did you mean - MS DOS uses BIOS function calls for functioning?
I always assumed FreeBSD had a major release and then minor releases that were snapshots of CURRENT like Ubuntu's non-LTS releases were of Debian Unstable.
This chart attempts to draw the relationship in ASCII: https://github.com/freebsd/freebsd-src/blob/main/share/misc/...
After that, minor releases mostly contain backported material.
I am really asking as for what is the main use case of FreeBSD in 2022?
That's why this has been frustrating - we have a history of committing real money[2][3] to the project in an attempt to make investments ... but there is never a fixed target to make those investments in.
It is a matter of fact that our own use of FreeBSD - in live production for a business - is completely divorced from the experience and day to day usage of FreeBSD developers.
[1] rsync.net and, previously, JohnCompanies
[2] https://www.rsync.net/resources/notices/2007cb.html
[3] USD 50k donation offered - https://lists.freebsd.org/pipermail/freebsd-hackers/2012-Jan...
Cool to see people still building on FreeBSD, sad to see that it's an uphill battle to stay relevant with it.
That was 21 years ago ...
"Serving Netflix Video at 400Gb/s on FreeBSD" https://people.freebsd.org/~gallatin/talks/euro2021.pdf
I did find this benchmark which maybe helpful https://redbyte.eu/en/blog/postgresql-benchmark-freebsd-cent...
I use PG on both and have never had issues (systems only sorta busy (200 connections, less than 2TB on disk))
I think that only one or two of those environments were heavily used production instances, so if there is a serious gotcha here it might not have been apparent to me.
As for CoW, we just turn it off on the postgres config and rely strictly on ZFS. We also turned off checksumming and compression in postgres and use Zstd:3 on the file system. Beyond that we just followed your run of the mill tuning guide you’d find on Google.
But in reality there is a big risk of nobody putting money on the table for that maintenance. Am I right?
Openbsd makes no guarantee of a stable abi, and they are not shy about changing the abi. however the api is remarkably stable, that is, you have to recompile your projects every time you upgrade.
Openbsd sort of plays it's own game with regards to releases, they develop on "current" if you use this it is dynamic like arch. every 6 months(like clockwork literaly) they cut a release. if you use a release it's stable and out of date like rhel. Note that you can't make any assumptions about what changed from the release number, openbsd 6.8 to 6.9 to 7.0 was just three releases, nothing special changed between 6.9 and 7.0.
Personally I run my desktop on current and find it usually takes around 3 weeks before they break abi, at which time I upgrade to latest current. I run my servers on a release and update them every 6 months.
If you want to keep a stable system longer than a year, go for it, but it is up to you to make sure you have a copy of all the packages you may ever need, note that you will not find any security patches or sympathy online after two releases.
-Amazon
-Hetzer (HW and VM)
-Vultr
-Oracle (self build image based on RELEASE)
Yes amazon supports FreeBSD fully:
https://aws.amazon.com/marketplace/seller-profile?id=92bb514...