Hacker News new | ask | show | jobs
by dead_hn_theory 10 days ago
Any serious advantages nowadays running BSD over Linux (desktop or server)? I seem to remember once upon a time BSD networking being way ahead of the pack but it seems like Linux has caught up in a major way, and honestly running BSD-linux-ports to get up-to-date drivers and a desktop environment running is just f'ing ugly.
6 comments

It is largely what you are used to. But I really like openbsd as a desktop system, I run it as a slim no-frills traditional unix desktop(lots of terminals, simple tiling WM) everything is simple(not user friendly, but simple) and I feel I understand and am ahead of the system at all times. Heavy desktop environments and linux are fine, they are still good guys compared to windows, but the complexity starts making me feel like I am losing control of my system.

Aside from my weird fetish for how I like my desktop. I think where openbsd really excels is in the boring infrastructure department, minor low intensity services that keep stuff running in the background with no surprises, this is nothing that linux can't do, and if you are more familiar with linux go with that, but for stuff like a departmental or home level name servers, web servers, routers, mail servers, etc openbsd has close to zero fuss and drama and is fairly pleasant to sys-admin the old-fashioned way.

> It is largely what you are used to

... or for what devices you need drivers. Linux here is simply top-notch and I see no way the BSDs might achieve the same level.

> where openbsd really excels is in the boring infrastructure department

Maybe not only that. They also excel into insisting using bad software for dogmatic reasons. I mean, a Linux has no qualms using a BSD licensed software, see BSD SSH -> OpenSSH -> Linux. But there are many others. But for dogmatic reasons, the BSDs won't really embrace GPL licensed software. And that limits the usefulness of BSD inherently.

Where BSD parhaps excel is at the API level. I heard several times that some APIs are better designed than their Linux counterparts were. And/or that it took Linux a long time to come to similar levels. E.g. like BSD jails vs. the Linux namespaces. Or when Linux only had ipfilter and I heard people saying that BSDs firewall is better.

> minor low intensity services that keep stuff running in the background with no surprises, this is nothing that linux can't do

If you really claim this then perhaps you don't know Linux.

For about 3 decades I have been using both Linux and FreeBSD.

I use Linux on all my desktop and laptop computers. Besides personal computers, I use Linux on some computational servers with GPUs, which have adequate software support, e.g. CUDA, only for Linux.

In the past the main advantage of Linux was in supporting a much greater range of hardware devices, but in recent years Linux has introduced more and more features that are much better than what POSIX specifies, for instance io_uring, so if you write Linux-specific programs you can get much better performance than with generic UNIX programs.

I use FreeBSD on my servers that have networking or storage functions (e.g. I have my own routers/firewalls and e-mail/web/DNS/NTP servers). In the now distant past, FreeBSD had much better performance than Linux, but then it lost several years with a very slow transition from single-threaded CPUs to multi-threaded CPUs, during which Linux leaped ahead, and then FreeBSD never recovered completely the lost advantage.

Nonetheless, I still prefer FreeBSD in many servers, because it requires much less administration work than Linux (i.e. there are better default configurations and many of the administrative utilities are simpler and more logical, so you get done faster any management work; sometimes years may pass during which I do nothing else for the FreeBSD servers, except reading the periodic automatic e-mail reports from the servers about significant events and statistics).

Moreover, while Linux supports many peripherals that are not supported by FreeBSD, there still are some peripherals that have better support in FreeBSD, e.g. tape drives and other SAS/SCSI peripherals.

So in my opinion it is better to be familiar with both Linux and FreeBSD and use whichever is more appropriate for a given application.

For someone without experience in server administration, installing and configuring one of the *BSD operating systems is much more likely to result in a server with acceptable performance and safety, than when installing some Linux distribution, where one would need to be much more knowledgeable to make the correct choices.

On the other hand, installing a *BSD on a modern laptop is much less likely to work immediately, without fiddling for hours or even days with various options, until making most of the peripherals to work.

OpenBSD feels like a much more coherent operating system, and makes Linux feel like a Rube Goldberg machine in comparison.

Also the docs (man pages, mostly) are top notch.

Plenty advantages for Apple, Sony, Nintendo and Netflix, in what they take and what they give back.
For those companies it was all about the license.
*BSD are normal unix-likes and majority of desktop environments will just work on them natively; I don't know why you think we need to port things from */Linux.

To your actual question: For licensing reasons, ZFS is nicer to work with on FreeBSD than on Linux.

Lower attack surface, lower CPU usage, lower RAM usage.
> lower CPU usage, lower RAM usage

Is this backed by proof?

I'm asking because Linux runs on amazingly small devices, like WIFI routers via OpenWRT. Or in Germany on all Fritz Boxes (copper DSL, glass fiber, LTS etc)

Are there devices "out in the wild"?

I actually don't mean things the recent "Linux running on an ESP32", because that is mostly just a proof of concept, not real work.

> Lower attack surface

You understand that Linux has a ton of entries in .config that you can turn off??? What you know as "Linux Kernel" from your general Linux distribution like Debian or Fedora isn't "the" Linux kernel.

Embedded Linux like OpenEmbedded/Yocto uses that "Darling, I shrinked the kernel" approach a lot!

> Lower attack surface

Once you install all the crap you need, it doesn't matter.

> lower CPU usage, lower RAM usage

Irrelevant for actual working loads which dwarf whatever the kernel/OS require.

> Once you install all the crap you need, it doesn't matter

It does matter though. Have you not seen all the critical exploits in the Linux kernel these days?

> Irrelevant for actual working loads which dwarf whatever the kernel/OS require.

That depends on the workload. What if you're on an embedded system where CPU/RAM resources are scarce? Or what if your machine is a server host and you want to run hundreds or even thousands of lightweight VMs?

> Irrelevant for actual working loads which dwarf whatever the kernel/OS require.

The ability to cut down on overhead so that you have more resources available for your workload is hardly irrelevant.