69 points · by O_H_E · 8y ago · 116 comments
- BSD has ZFS (but so do some Linux distros)
- Linux bad because BTRFS, so it's bad (well, you don't have to use it)
- BSD jails > anything on linux (I was hoping to see a clear outline of pros/cons, but the author's reasoning is very hard to follow, and the tone is very combative instead of constructive)
The main difference then is usability, which is almost always the biggest security flaw in any piece of software (that the security isn’t “on” by default or has a prohibitive learning curve for the user).
When one talks about security, it's really hard for people to follow what she really means; the context has always been qualitative, but not quantitative.
I found the idea "Vertical/Horizontal Attack Profile" interesting, which may help measure security when people argues different container solutions or even VMs.
https://blog.hansenpartnership.com/measuring-the-horizontal-...
Do you think LXD gets closer to Zones in terms of security?
The point is that there are no good filesystem options for Linux. ext4 has various issues mainly due to being ext2 underneath, reiserfs is unmaintained, xfs and jfs have no recovery tools at all (and xfs additionally has the trailing zeroes problem), and all of those require you to use a separate system for RAID for which Linux has no good options (true hardware RAID is expensive, BIOS RAID (dm-raid) and software RAID (md) will kick out disks during a rebuild if they see a single bad sector, which per https://www.zdnet.com/article/why-raid-6-stops-working-in-20... is more likely than not with modern disk sizes. This risk is reduced (but not eliminated) by setting up regular scrubs, but tutorials and installation wizards don't always do that). BTRFS has issues up to and including data loss, userspace ZFS has major performance and reliability issues while in-kernel ZFS on Linux has substantial licensing concerns.
> - BSD jails > anything on linux (I was hoping to see a clear outline of pros/cons, but the author's reasoning is very hard to follow, and the tone is very combative instead of constructive)
Agreed that the writing is bad, but BSD jails do have a much higher level of maturity than linux containers. Linux is probably catching up now given the sheer weight of numbers of people using containers, but I still wouldn't trust them quite as much as BSD jails just yet; various kinds of flakiness and security vulnerabilities still seem relatively common.
It also badly requires editing
Hopefully someone has a better argument for FreeBSD than this... mess
I don't know about SmartOS, but on freebsd, linux compat is at version 2.6.38, and so most programs don't work.
A couple of small things - one is that entire distributions "just as they are" are unlikely to work, in much the same way as trying to boot a docker container doesn't. Lots of things rely on /proc and cgroups and these are big, ugly interfaces that are never going to see parity between the two OS's. /proc is (amusingly) built as a r/o filesystem that has an htop-esque thing writing state onto it constantly.
The big one is memory allocation. Linux will let memory allocations fail. It will also just shoot apps in the head if it wants to. Solaris does not do such shit and will return the malloc call when it has allocated some memory - even if it's next week some time. On more than one occasion I have been completely locked out of a SmartOS box because of this and one ends up having to be really, really careful with allocation strategies as a result.
If you are running open source, there are usually SmartOS packages in pkg src, which makes SmartOS zones a CPU/memory/security bargain. https://pkgsrc.joyent.com/
Could you give some of your personal reasons for saying so? So much online sources just say how great it is without any specific detail. It's not like XFS on Linux has some obvious problems - it is rock solid too.
Let's say I want to run several different operating systems simultaneously from a single big ass SSD. With Linux, XFS and Xen, I can try to set up LVM and coerce Xen to use those logical volumes for VMs, but it is pain to get there with the current state of XFS and Xen documentation. Is this possible/easier with FreeBSD and ZFS?
Context: I use XFS as the default file system on all HPC compute nodes, and few other servers that run CentOS7. I built a FreeBSD+ZFS backup server recently to mirror our primary NAS.
The experience with ZFS was so smooth and logical. All I needed was the ZFS section from the FreeBSD handbook, and I actually understood what was going on underneath to a reasonable extent. No magic - "run this command" without explanation. Once spools are set, ZFS datasets provide the equivalent of logical volumes you were asking for. You get a lot of tunables at that level, and they come with sensible defaults. The whole process is simple, heck you can even make a file act as a zpool for learning or testing purposes.
Once done, I was testing performance rudimentarily and saw that it was almost saturating the network pipes beating my expectations without any time spent on custom perf tuning.
And I get snapshots and online compression, SW RAID out of the box.
I may be able to achieve most of it with XFS, some specific hardware and lot of hours of tuning, but it will never match the experience with ZFS.
ZFS blog post: https://aravindh.net/post/zfs_fileserver/
Performance: https://aravindh.net/post/zfs_performance/
For one example, ZFS checksums spot all manner of erratic, intermittent idiocies--memory corruption, data bus corruption, disk controller corruption, etc.
No other filesystem even tries.
Aix shared objects had more in common with Windows world than with other UNIX variants.
Besides being a multi-role-somewhat-messy-blob, what are the grief points of systemd in 2018?
Edit: carified the question.
My biggest personal grievance is how it handles DNS or rather how unpredictable and undocumented the process is. If everything fails, e.g., they actually hard coded usage of 8.8.8.8. Not sure if that’s still there or configurable. The handling of actual security reports and CVEs is rather bad and you can see many examples of that on Github.
I’m not anti systemd and overall I welcome lots of contributions Lennard made in the past (pulseaudio, e.g.). With systemd it’s just too much functionality in one place. Do we really need an NTP alternative in systemd?
We'd really like to revive it, as there is demand for a lighter NTP client.
administration differences is the most direct effect of systemd, but after learning its various compatibility layers and watchdog functions, it can be tamed to a great helper.
not being designed according to UNIX principles (composition of single-role small applications, which are doing their jobs very very well) is also bothering me, but we need to be pragmatic here. inter-process-communication cannot replace in-memory-communication in all cases it seems.
The hate towards the developer(s) is stemming from his attitude, history (he's also developer of pulseaudio IIRC) and somewhat from his coding style. It seems like he's a kind of guy who can defend his work, do this in an unorthodox way, make it work and got it accepted. At the end of the day, the hate is a feeling and is personal. I think we need to be pragmatic here too. Not that better communication from both parties will benefit everyone and everything in the long run.
At the end of the day, we are using systemd, and it's working. If we want a better system, we need to improve it. systemd is the state of the art right now, and we should either write something better or improve it if we have any beef with systemd itself.
OTOH, Beef with developers is something that should stay out of software and community in general.
My original comment was trying to explore whether there are more reasons to dislike it besides the original points that I stated above.
It's also not 'the unix way' to have tightly bound, large blobs, and the team behind it seemed to take pains to say that lots of other things would rely on it, like udev, so there really was no choice.
So the hate comes from the idealogical side, largely.
Personally, having worked with it, I've rather liked writing service files and timers to get stuff done, it's much quicker to get something up and running than the old system.
otherwise i don't care what's under the hood.
[1] https://www.reddit.com/r/linux/comments/2nhkx9/freebsds_jord...
Personally, I never found startup time to be much of a problem, on any OS. But having an init system that automatically restarts crashed services and is able to properly shutdown services including any child process they might have spawned sounds nice.
One thing I do like a lot about the BSD init system is that the interface is a text file with a simple format. I hope when they replace good old rc, they keep the interface as simple as that.
Well, start up problem is a matter of convenience, it's not a fatal problem, but I just like that my laptop with arch+systemd+systemd-boot starts instantly (3 seconds + 6 seconds for firmware), while bsd on my other laptop starts soo damn slow. (btw slow shutdown pisses me off even more)
Though the real issues with rc are much more serious, and eloquently described here (aka you don't have proper login management, service management, device and policy management, and better in a unified way):
* https://lists.debian.org/debian-user/2018/11/msg00616.html
> Docker on FreeBSD is experimental.
https://wiki.freebsd.org/Docker
I don't want to run yet another operating system just to have to run VMs on top of it...
* Because you can't orchestrate jails with Kubernetes, and that's what my company uses.
Docker won over the industry, jails and friends did not.
Software developers are an incredibly easy demographic to influence with marketing. There is an industry of startups that have been minting money on this for a long time. But it's important to know that a lot of software development tools we use are just fashion statements.
But, last time I checked NVIDIA didn't have the right CUDA drivers for BSD. Is there any improvement on the status quo yet?
FreeBSD was my primary OS, both at work and at home.
To fast forward a bit I handed over my last BSD environment around 2012, last Solaris environment around the same time. After that I only had Linux responsibilities. Around 2014 I was running Debian as my primary OS and sent on a RHEL course in Stockholm.
The course leader sold RedHat to me so well that the very first night at the hotel I reinstalled my laptop from Debian to Fedora. Haven't looked back yet.
Been professionally building systems on Linux since before that. So I'd like to say my perspective spans over both sides of this argument. I've tried to summarize why I'd rather use Linux and why you might consider using BSD.
The only reason I can justify to use BSD is that the open source world needs competition. It would be dangerous if we only had one OS.
But all my professional sense of getting things done and keeping them stable tells me not to use it. Correction, I use OpenBSD on my router at home but that's it. OpenBSD has a reputation of being very secure (perhaps earned in part by having a relatively small user base) and I rarely need to login to make changes. Because the user space tools are horrible compared to Linux.
And I believe most of that stems from the community being much larger and therefore the software better tested and more mature.
I'm talking mainly about operational security and stability. I believe Linux does this much better than any BSD.
Less critical bugs, less issues with package management, better maintained packages and more binary packages available that don't require source building. Pretty much all things very reliant on a strong community.
More programmers available to fine tune user space tools and make them hum. A lot more docs available from hobbyists and officials.
Some of my friends today are hardcore BSD geeks and they often have to deal with system breaking bugs, kernel panics even. I can't remember the last time I saw a kernel panic in Linux. Almost every day I can see at least one issue in our chats dealing with package management or kernel and system bugs. Bugs in jails for example, or network management related to jails. They're often following the latest releases to remedy these but that's even worse than using Fedora on servers imo. Bleeding edge software just to avoid the bugs and be able to use the latest so called virtualization technology available.
Because the things like that not even considered bugs, not to say critical?
Very rarely I've had to install Fedora on some intranet to get a specific feature but I can count the times on one hand.
P.S when I say lagging behind I don't mean the server things but rather on the developer side.
The base is either stable/LTS (~5 years support) or rolling if you track -CURRENT.
For the 3rd party software it is either rolling or stable in short lived quarterly branches.
Most server side software is usually pretty up to date but some desktop-related tools can be outdated for a while. You might want to take a look at [0] and especially at the commit history of some fairly popular desktops like Gnome3 [1] or KDE5 [2]. They got updated recently but it took quite a while.
[0] https://www.freshports.org/
I've seen attempts at bringing the Linux ABI to FreeBsd, including the familiar and popular apt package manager. If and when it's as easy to "sudo apt-get install package" on FreeBsd as it is on Ubuntu, it will see an increase in adoption in both the sever-production setting, and as a development environment.
That's ridiculous. `pkg` on FreeBSD is a thousand times more consistent and user friendly. Perhaps you are talking about the days before pkg-ng (next generation) became the default, but now installing anything is as easy as `pkg install foo` and it just works. It even updates automatically so URLs aren't out of date.
When used with aptitude, it's very easy to use, extremely powerful and flexible. Also, it has the most extensive knowledge on details of packages in terms of dependency graphs and modification of files which belongs to packages.
At least, that's what I saw in 14 years.
Apt is certainly the best package manager in my opinion. I haven't used rpm based package managers in a while, but I doubt they don't have feature parity at this point.
I think the magic ingredient of apt that makes it work so seamless is the thousands of diligent maintainers behind it. That's the "feature" that none of the other packaging systems have at the moment.
I also have a deep respect for the raw no-nonsense approach of the various BSDs, but every time I try running it in a professional capacity, the apt eco-system lures me back.
While there is certainly some Linux-specific software which doesn't work on FreeBSD (and vice versa to a smaller extent), this is a tiny fraction of the total amount of portable free software packaged for both.
None of these are usually much work to correct. But they can creep in without you realising if your CI isn't testing on multiple platforms.
The most annoying I had recently was a service using PAM for authentication/authorisation. Linux-PAM is both Linux-specific and subtly incompatible with Solaris PAM (the original implementation) and OpenPAM on FreeBSD. This means you have to have three sets of ifdefs for the different implementations, which is annoying. But if you developed for Linux and never tried building or testing on the other platforms, you would never appreciate the problem even existed!