by mapgrep · 7y ago · 0 comments
Things like ZFS, Zones, DTrace, SMF, and Crossbow were locked up inside Sun Solaris for many years because it was proprietary. The effort to open source it took a long time and because of how Solaris was built (with various third party things) Sun essentially had to release under a slightly odd license, the CDDL.
Meanwhile Linux, which had ascended to dominance post dot com bubble, solidified its lead as the defacto default server operating system, a fairly well earned dominance built on being the first truly free Unix available for x86/PC hardware, and at a time when that was a truly lesser tier of hardware (unlike today).
But today I worry we've settled into a mindset of "the linux way is best because it is dominant" - if you use linux you can google your stack traces, you know that even if the tech is inferior (coughbtrfscoughsystemtapcoughsystemdcoughepoll*cough) many other people are in the same boat and in theory hordes of developers will -- might? -- make patches to fix the problem. No one ever got fired for choosing linux, basically.
I've migrated a bunch of personal projects to a server I own running SmartOS, an Illumos derivative. One thing I've learned is that it's actually really viable and nice these days to use an alternative operating system. I imagine it's similar with FreeBSD, OpenBSD, vanilla Illumos, etc. These systems run on a pretty impressive array of hardware and are able to leverage the near total standardization of the hardware/bios stack and the inroads made by other projects to bootstrap to viability. E.g. SmartOS uses pkgsrc from the netbsd project for packaging, took some boot technology from FreeBSD, and in general is able to tap into the universe of "unix like" tools, even if many of those tools are most often used on linux.
Anyway if you get a chance give this stuff a spin, it's pretty eye opening what you can accomplish. Zones, to me in particular, feel like a game changer.
Bit of a bad cough you have there! Need a lozenge?
With regard to technology, Solaris/Illumos went through the same init system battle with their next-gen init system SMF as GNU/Linux did with systemd. They had their share of hard-nosed refuseniks who vowed to remain on Solaris 9 forever rather than embrace the new. Lennart Poettering said that systemd was inspired in part by SMF[1].
However the problem most people have with systemd is the massive (growing) scope. So because it keeps growing and changing the "resistance" people have towards it gets refueled all the time.
However, SMF is actually very well designed and this makes it very powerful: I can for example declare configuration files as my dependencies in the XML manifest and when I import it, SMF will know to watch those files. If they change, SMF will call the manifest's refresh method, whatever it is. That's barely scratching the surface. What I think no one on the outside realized when SMF came out is that it was part of FMA, the fault management architecture, which makes Solaris and his derivatives be able to heal themselves provided the system is configured with enough redundancy, even on really unreliable shitty hardware like intel / AMD based systems. Nowadays SMF is well regarded and well understood, but the engineers rightly regret making it use XML, and it took years for the documentation to reach that expected level of high quality which we're so spoiled with in the rest of Solaris and illumos manual pages.
Small historical timeline correction though:
> Things like ZFS, Zones, DTrace, SMF, and Crossbow were locked up inside Sun Solaris for many years
Solaris 10 (which contained the bulk of these) came out in 2005 and Open Solaris open sourced the code also in 2005. The timeline is more complex because not everything came in Solaris 10 at once and not everything open sourced at once... but at a high level, most of these technologies were open sourced relatively soon after initial release.
(I was at Sun back then and involved with Open Solaris effort.)
I think the thing I miss most about the 90s and early 00s was that different unix-like systems took big, bold, and divergent approaches. Computing felt less “nailed down”... like there were more possibilities.
As long as BSD stays with BSD license, it won't happen.
Users really only care about cost of ownership, ease of use, support, etc. which is to say, they want to use what everyone else is using.
Many embedded systems and such use BSD because they don't have to release their changes as open source, which pretty much forbids their use of Linux.
If you meant by "servers" such on clouds, maybe it's already Linux only.
I finally switched it to Ubuntu Server with ZoL, and the hot-swap woes went away completely.
As for systemd vs. SMF, I'd take systemd any day over the crawling XML horror of SMF. :)
> coughbtrfscoughsystemtapcoughsystemdcoughepoll
Btrfs is not as mature but design wise it is competitive with ZFS. Pool resizing is actually a lot nicer in Btrfs.
SystemTap was not as good as Dtrace but Bpftrace is ihmo better than both.
Event ports remain better than epoll but as a user that's not particularly significant.
Systemd is ihmo better than SMF was.
The combination of Linux namespaces and cgroup allow you to do everything zones can but are more flexible.
(To be clear, I don't think Solaris is the best platform to run ZFS today.)
Ahm, what? SLES provides Btrfs as the default choice.
> With SUSE Linux Enterprise 12, we went the next step of innovation and started using the copy-on-write file system Btrfs as the default for the operating system, to support system snapshots and rollback.
Also Facebook [1].
And yes, I use it everywhere.
Oh, and ZFS is full of bugs as well, it's far from done and being actively fixed and improved by ZoL people, that's why freebsd people are switching to ZoL.
I've never heard much arguments why ZFS is better than Btrfs, I would like to hear some (safe for RAID6).
[1] https://www.linux.com/news/how-facebook-uses-linux-and-btrfs...