Ask HN: Technical reasons to favor FreeBSD over Debian for servers?

FreeBSD used to be very performant compared to most Linux distros when it comes to things like file and web servers, but I've gotten the impression that this technical advantage dried up or even inverted given several more years of rabid development on the Linux kernel.

Is this true? Am I missing something?

5 comments

I recommend FreeBSD-based OPNSense to anyone wanting a capable router for a small to medium size wired network.

Also, I feel like FreeBSD will eventually enter the "immutable server distro" space. ZFS boot environments have had 1st class support for over a decade already. New container advancements are being made on FreeBSD every year. I really believe it could compete hard with Fedora Atomic and OpenSuse MicroOS.

I have found some informative comparisons on https://www.unixsheikh.com/index.html.

As always, to accurately answer your question, you would need to benchmark your specific circumstances and workload.

Personally I use Debian Bookworm as my desktop. But prefer to use Alpine Linux for servers with external access. I have tried various BSDs, but I find the cognitive load of remembering two different ways of doing many sysadmin tasks an unnecessary burden.

Big fan of UnixSheikh!

Yeah, I might just have to spin up a couple of $4 DigitalOcean servers and profile them against an actual running e.g. PHP web app, file server, Django app, etc.

The fact that there doesn't seem to be an overwhelming "Of course X is better than Y" consensus suggests that the differences are within an OOM of each other in nonspecialist cases, though.

No, FreeBSD is performant as ever.

How did you get that impression? By using it, or just reading about it, in benchmarks by moronix et al.?

If using it, did you tune it, or the Linuxen, or let them be at their defaults, more or less?

How do you expect/want to use it?

Would 'less churn' be of value to you?

Just by reading about it. I've used FreeBSD some as well, I know what knobs and sysrc and the like are about etc., but only as a fun hobby, to see what 'the other side' is like. I walked away feeling the system is if anything closer to Linux than I would have expected.

I am most interested in the out of the box experience. If we're going to compare tuning for maximum performance, we probably need someone who has experience tuning both kinds of boxes for that, to get a minimally biased read.

"Less churn" is always a valuable property, and one the BSDs are famous for, but at least personally I experience manageably little churn on Debian servers as-is. Churn and its consequences seems to come down more to personal familiarity than anything, and so I don't really include it under the banner of technical reasons per se.

[deleted]