A year of funded FreeBSD development
89 comments
·June 6, 2025AndyKelley
xedrac
Zig's cross compilation is awesome, and it's nice to see FreeBSD on the supported target list.
msdrigg
There are some hilarious tidbits in here
> Starting in the first week of 2024, the FreeBSD boot process suddenly got about 3x slower. I started bisecting commits, and tracked it down to... a commit which increased the root disk size from 5 GB to 6 GB. Why? Well, I reached out to some of my friends at Amazon, and it turned out that the answer was somewhere between "magic" and "you really don't want to know"; but the important part for me was that increasing the root disk size to 8 GB restored performance to earlier levels.
xandrius
Now I really want to know though.
cperciva
My understanding is that EBS has some heuristics for deciding whether to keep data cached; an AMI which has a cached snapshot as its root disk will boot much faster than an AMI where all the data needs to be pulled from S3.
JoshTriplett
What's the smallest size for which those heuristics keep the snapshot cached?
(I'm currently using 1GB snapshots, because my actual disk image is a tiny fraction of that size. But if bumping that to 2GB or 4GB would make it faster, that's a small price to pay.)
tedunangst
Some huge customer chunked their data into 5GB pieces so now there's a "if size == 5GB" in the cache code.
jeffbarr
The original object size limit for S3 was 5 GB, as noted in my 2006 blog post:
https://aws.amazon.com/blogs/aws/amazon_s3/
I do not know if this has anything to do with the cliff that you saw.
cperciva
Pretty sure that's not related. For one thing I don't think EBS snapshots are stored in S3 as 5 GB segments.
polskibus
I wonder how long did it take to bisect such issue. Build image every time and reboot a vm?
cperciva
I can't remember exactly but it was a few hours. I already knew which week the issue arose (from comparing weekly snapshots) so that gave me a head start.
But yes, I built a lot of AMIs. And launched new EC2 instances for each of them -- it wasn't just a matter of rebooting since the first time an AMI launches there's different behaviour (both from FreeBSD, e.g. growing the root disk, and from EC2, e.g. disk caching).
net01
There is also a lot of work on the laptop front, I read that the BSD foundation invested $750k for this implementing: (S0ix Sleep State, etc )
you can find the project laptop here https://github.com/FreeBSDFoundation/proj-laptop
cperciva
Yep there's a lot of work going on. I was just writing about the work I was doing. ;-)
xedrac
I wanted to use FreeBSD for my home gateway/firewall/dns/dhcp server, but unfortunately my 10 GbE NICs didn't seem to have drivers, so I ended up going with Nix instead. I used FreeBSD many years ago as a workstation, and found the experience to be quite memorable. It's nice to see that it's still chugging along.
dazzawazza
I use FreeBSD for all my (and my companies) infrastructure. I only use hardware with Intel NICs because they are 100% reliable on FreeBSD. Anything with Realtek seem to crap out under load despite the hard work of the FreeBSD engineers who maintain the drivers (I'm not complaining and I respect their efforts).
It's a small price to pay and it stops me having to install less stable operating systems.
tiffanyh
Lots of respect for cperciva.
Don’t know how he manages all of this + Tarsnap.
cperciva
It turns out that at a certain point, money can buy time. Do I fix the leaky tap myself, or hire a plumber? After electricians rip up my basement drywall (perfectly reasonably -- I was getting solar panels installed and the electrical panel needed to be upgraded) do I fix it myself or do I hire a professional drywaller?
To be fair, some of the time I spent on this came away from Tarsnap. But less than you might imagine.
Alupis
> or do I hire a professional drywaller
When it comes to drywall, always hire a professional. Learn from other's mistakes... it's not as easy as you think and it won't turn out well.
firesteelrain
It’s really not hard. I added onto a house I owned back in 2009 after returning from Iraq and saving a bunch of money. IRS also gave me a huge refund that year. Something with GWOT vets and taxes with combat pay. Anyhow, converted a covered porch to a room, had permits, raised the floor, added electric, energy efficient Argon gas windows, etc. You give 84 lumber the blue print plans from the architect and they tell you how much material you need. After I got to the stage to add furring strips for the concrete block part and insulation (which is easy too), I was ready to add the dry wall. Just lift it up to the wall then screw it in. Dry wall tape, corner bead, and mud to cover the seams. Orange peel can hide imperfections. Then paint. Pretty straightforward
cperciva
True. In this case it was drywall in a poorly lit basement, so I wasn't all that concerned about it turning out perfectly -- but it absolutely did turn out much better than it would have if I tried to do it myself.
bluGill
I know how to do drywall as well as a pro - it just takes me 6x as long. It is easy to do, but you can't do what the pros do without a lot of practice. By planning on 6x longer you can slow down, do thiner coats and such (pros do 3 coats of mud, I do 6 for the same thickness). Which falls into the do or hire.
jonhohle
Dry wallers are amazing. As a diyer, it’s one of the few things I can never seem to get right. I’m happy to put holes in it, but seeing professionals patch it is another level.
pokabul2
[dead]
AlienRobot
At a certain point money can even buy money.
The other day I had the opportunity to get a 10% discount on a fridge if I could pay the whole thing in one payment. If I didn't have the money I wouldn't get the discount, so in a way being poor means everything is more expensive.
phonon
"The reason that the rich were so rich, Vimes reasoned, was because they managed to spend less money. Take boots, for example. ... A really good pair of leather boots cost fifty dollars. But an affordable pair of boots, which were sort of OK for a season or two and then leaked like hell when the cardboard gave out, cost about ten dollars. ... But the thing was that good boots lasted for years and years. A man who could afford fifty dollars had a pair of boots that'd still be keeping his feet dry in ten years' time, while a poor man who could only afford cheap boots would have spent a hundred dollars on boots in the same time and would still have wet feet. This was the Captain Samuel Vimes 'Boots' theory of socio-economic unfairness."
naikrovek
Being more poor is always more expensive than being less poor.
All poor people know this in their bones because they face this every day of their lives.
wkat4242
[flagged]
77pt77
[flagged]
tedunangst
A fourteen year old bug is relevant how?
cypherpunks01
If you've found a method to write software that is 100% bug-free, we're all ears.
77pt77
There are bugs and then there are BUGS!
DoctorOW
[flagged]
ksec
I was rather hoping Amazon would spend and contribute more. But it seems they basically only want to pay for the minimum FreeBSD support.
Amazon isn't even on FreeBSD sponsors [1]. And Google only sponsored $9K last year. Apple isn't there. Edit: And Credit to Microsoft being at least on the list! And forgot to mention Meta / Facebook missing from it as well.
I would have expect them to sponsor FreeBSD and OpenBSD annually by default given they use and continue to benefits the work out of both.
[1] https://freebsdfoundation.org/our-donors/donors/?donationYea...
cperciva
I'd love to see Amazon contribute more, of course; but the fact they don't show up as donors to the FreeBSD Foundation doesn't mean they're not supporting FreeBSD. The money they paid me didn't flow through the Foundation, for example; I'd guess that Foundation-funded development is maybe 10% of all corporate-funded FreeBSD development. (It's an important 10%, especially because it can be focused on "what does FreeBSD need" rather than "what does company X need" -- but it's still a small minority.)
vitorsr
This comment does not present the full picture.
First, it presents the snapshot of donations within a given year to the Foundation. The history of donations is not represented by definition.
Second, it does not present contributed development. Those are typically summarily available on the release notes of each release [1].
hackernoops
Has Amazon donated more to FreeBSD than Notch the Minecraft guy?
p_ing
I wonder for what reason Microsoft funds them. Their Hyper-V extensions are not as complete as Linux. There's no Microsoft-supported port of .NET. I can't think of any services that run on *BSD from Microsoft, cloud or otherwise.
voidfunc
There are customers that run FreeBSD on Azure and Microsoft officially supports it: https://learn.microsoft.com/en-us/azure/virtual-machines/lin...
cperciva
I don't know, but Microsoft has some developers working on Hyper-V for FreeBSD. They've even come to FreeBSD developer summits.
ksec
My thought process was that it is such a small amount of money for Advertisement or marketing to have your logo on some prominent Open source project to at least try and redeem / make themselves look good.
petesergeant
I wonder if this is a very, very, very long-term holdover from the Hotmail team having some expertise, and Microsoft wanting to be able to offer something a bit nix-y that wasn't Linux
oblio
Amazon does the least for FOSS out of the FAANGs.
OsrsNeedsf2P
[flagged]
rfrey
Oh for heaven's sake. Why do we say "lie" every time we correct someone nowadays? What's wrong with "I think you're mistaken"?
Another gift of polarized politics I guess.
wkat4242
They probably didn't see it but for qac company worth billions contributing under $999 is basically just nothing. It's like me contributing one cent, I'd be spending the same kinda size of my net worth as Apple is doing. I'm in the $50-$99 category however. Still not amazing but dollars are not cheap where I live.
paxys
It’s easy to miss when bunched together with names of hundreds of people who donated $500–$999. That’s the limit to what Apple could afford I guess.
eredengrin
> That’s the limit to what Apple could afford I guess.
I never thought about this before but is it possible that there was an employee who donated, and the $500-$999 was just the portion that Apple gave as the employee charity match? It would make a lot of sense, but it does make the donation look kind of hilarious.
commandersaki
Out of curiosity, who are the top users of FreeBSD/EC2?
cperciva
I have no clue. Seriously, the users who talk to me are maybe 0.1% of the total FreeBSD/EC2 user base.
I would love to know who is using FreeBSD in EC2.
broken_broken_
I can tell you some financial services I have worked for do use FreeBSD on EC2 as well as on the metal in data centers to do millions of transactions a month. I like the OS, thanks for your work.
johnnyjeans
Can someone who uses FreeBSD fill me in on the niche that it fills in the Unix space? Why not use OpenBSD or NetBSD, which are far simpler and coherent? If the answer is support for stuff like ZFS, Nvidia drivers, ELF, etc. why not Linux? I'm well aware of the problems with GNU, but do you have problems even with something like Musl Void?
I'm genuinely actually curious. FreeBSD exists in kind of a shadow realm for me where I've never been quite able to pin down the soul that keeps it chugging, but I know it exists somewhere in there.
broken_broken_
I have worked for financial services companies that used FreeBSD both in EC2 and on the metal in data centers (self managed). The two features we used all the time were zfs and jails. Each service ran in its own jail for isolation. One (not even beefy) server could run all the services which was insanely cost efficient. A cloud migration was undertaken at some point to have a hybrid setup, using a mix of Linux (k8s) and FreeBSD, and costs skyrocketed. It’s a trade off because in the data center we had to buy and replace our own disks, react to fires taking place, being only in one country etc. AWS gives you multi region, and tons of good stuff, and that has a price.
ZFS was not leveraged that much but it saved our beacon once when a table in the production database was accidentally dropped and we could instantly rollback to the previous zfs snapshot (there was a tiny bit of data loss as a result but this did not matter too much for this application - uptime was more important). ZFS was also used for backups I believe.
A few times I used dtrace in production to troubleshoot.
When we introduced Linux to our fleet of FreeBSD servers, every team picked a different distro organically so it was a bit of a zoo. With FreeBSD on the server you only have the one variant.
I still use and like both, but I must say I really like that FreeBSD is a kernel+OS integrated together.
AdieuToLogic
> Can someone who uses FreeBSD fill me in on the niche that it fills in the Unix space? Why not use OpenBSD or NetBSD, which are far simpler and coherent? If the answer is support for stuff like ZFS, Nvidia drivers, ELF, etc. why not Linux?
My experience with FreeBSD is that it provides a nice balance of the concerns OpenBSD and NetBSD specifically address. Historically, FreeBSD prioritized Intel CPU's (where NetBSD had greater portability) and had solid security (where OpenBSD had more of a focus on it).
The FreeBSD ZFS support really is a game changer. I believe Nvidia only recently has had native FreeBSD drivers - for a long time FreeBSD's kernel Linux support was required.
> I'm genuinely actually curious. FreeBSD exists in kind of a shadow realm for me where I've never been quite able to pin down the soul that keeps it chugging, but I know it exists somewhere in there.
Again, for me, FreeBSD has proven to be a nice blend of the features other BSD's provide as well as being incredibly stable on the h/w platforms I tend to use.
johnnyjeans
I figured the goldilocks metric might factor in. Are you dealing with non-x86 platforms? I've always been disappointed by the ARM experience on Linux. It always feels second-class.
yjftsjthsd-h
> If the answer is support for stuff like ZFS, Nvidia drivers, ELF, etc. why not Linux?
FreeBSD has better ZFS support than Linux, because it doesn't have the licensing issues.
toast0
FreeBSD is throughput oriented in a way that OpenBSD certainly isn't, and I don't think NetBSD is either (although, I haven't really looked, I feel like NetBSD competes on portability and doesn't spend a lot of time making sure networking throughput is high).
All of the BSDs tend to have a lot less churn, for better and worse; so IMHO, they make a nicer platform to integrate on.
johnnyjeans
Very interesting. Doing more reading on FreeBSD's presence in the HPC space. Thank you.
toast0
If you want a high profile example, look at what Netflix CDN does.
Could you do that work with Linux? Probably --- but nobody who does is talking about it as much.
This kind of high throughput service has been a FreeBSD niche since forever too. Walnut Creek CDROM, Inc ran what was reportedly the world's busiest ftp site, ftp.cdrom.com on FreeBSD in the early days of the internet.
Yahoo ran on FreeBSD (I worked there 2004-2011) WhatsApp ran on FreeBSD (I worked there 2011-2019) Both were leaving FreeBSD when I left, but sadly, I didn't leave to work somewhere else with FreeBSD :p
wkat4242
FreeBSD has a much bigger userbase than openbsd or netbsd. Not even comparable.
Its software catalog is also much bigger. It's a viable modern desktop daily driver and I can't say that for the other two.
As to why not Linux? I don't want Linux. It's too bogged down by corporate interests.
johnnyjeans
My impression is that FreeBSD is Apple's shadow in FOSS, they hold a lot of soft power over it. I know the kernels are different and obviously only part of the userspace is the same, but is FreeBSD actually far enough away from Apple to say it's not bogged down by corporate interests? I don't imagine it's the same as Linux at all, but it exists in a non-trivial way, no?
wkat4242
It's not. Apple (or rather NeXT) took some of the userland for macOS but it's not contributing back and it doesn't have much influence. It's more like a fork a long time ago.
A few companies do. Skype and Netflix did but hardly use it now (at least Skype left it, not sure about Netflix but I never hear about it from bsd devs). Ix systems and netgate do but they're tiny.. No, it's not influenced in a trivial way and certainly not by apple.
This is a huge difference to Linux where the vast majority of kernel commits come from big tech and have nothing to do with things end users care about. Also there's nothing in the FreeBSD world like the Linux Foundation which is basically a corporate lobby group.
AdieuToLogic
> My impression is that FreeBSD is Apple's shadow in FOSS, they hold a lot of soft power over it.
Apple has no influence over the FreeBSD project.
> I know the kernels are different and obviously only part of the userspace is the same, but is FreeBSD actually far enough away from Apple to say it's not bogged down by corporate interests?
Yes.
OS-X (now macOS) is based on XNU[0], which itself has roots in the Mach[1] microkernel. The Unix user-space programs distributed with OS-X/macOS are those found in FreeBSD distributions AFAIK. This is also conformant with FreeBSD licenses for same.
So there is no "soft power" Apple has over FreeBSD. And FreeBSD is not "Apple's shadow in FOSS".
> I don't imagine it's the same as Linux at all, but it exists in a non-trivial way, no?
No. It does not.
EDIT: Just in case you'd like to verify any of the above yourself, see here[2].
0 - https://en.wikipedia.org/wiki/XNU
cperciva
I'm not sure where you're getting the "Apple holds soft power over FreeBSD" thing from. Netflix is probably at the top of the list given all their performance and stability work -- and, you know, the fact they push a large chunk of all Internet traffic using FreeBSD -- and NetApp and Juniper are somewhere up there, but I'm not convinced Apple would even be in the top 10.
null
KlausWinter
[dead]
LAC-Tech
This does not paint a good picture for FreeBSD development. An operating system of that size and complexity surely needs someone company to sponsor the release manager full time, not part time for a year.
I don't say this to besmirch FreeBSD, FWIW. I think it's very important that Linux is not the only game in town.
alanpearce
40 hours/month. Not week.
SSLy
colin, fix your encoding
cperciva
Err, I'm happy to fix things, but can you elaborate on what is broken?
jonhohle
I may be wrong about OPs intention, but AFAICT, because no encoding is specified, the client gets to choose. For someone not using a default encoding that's a superset of ASCII (like ISO-2022-KR) the page appears as a �.
Current practice is to put a meta tag with your encoding, use a Unicode BOM, or less favorably, send the charset attribute in the Content-type header.
SSLy
The em-dashes were mojibaked. They seem fine now. Cheers.
Sweet! By the way we just added FreeBSD to the download page on ziglang.org (as of today), so FreeBSD users can grab master branch builds automatically built by the CI.
It's also now a first-class supported cross-compilation target, including when linking libc, so you can do stuff like `zig cc -o hello hello.c -target riscv64-freebsd`.
And then of course if you have any C/C++ dependencies, you can fetch and build them with the zig build system, so it should be possible to easily cross-compile even quite complex projects for FreeBSD now.
Hopefully that helps more projects decide to add FreeBSD support and respective testing to their CI!