142 points · by vermaden · 3y ago · 97 comments
- https://wiki.freebsd.org/EnterpriseWorkingGroup
From what I have seen on Twitter - the CUDA works in Linux Binary Compatibility layer on FreeBSD currently.
Native CUDA support doesn't seem to be on NVidias roadmap for FreeBSD, unfortunately.
https://github.com/freebsd/freebsd-src/commits?author=mjguzi...
This latest round involved NFSv4.2 and that FreeBSD to be enrolled into RedHAT IDM for auth. It was dog slow like I could not believe, and kept spewing a slurry of errors. Without having the luxury of time to solve all the issues, we ended up going with RedHat EL 9 purely to avoid the slowness from IDM integration.
I hope someone else has the time to figure out the issues with IPA integration in FreeBSD.
Have a look at what it means to get FreeIPA client running on FreeBSD. https://vermaden.wordpress.com/2022/11/17/connect-freebsd-fr...
:-(
I know I sound entitled expecting a pkg install ipa-client Without doing any of the work. But, my point of writing here is merely to highlight a problem that others who are in much better position that I am to fix it can take a look.
It's easy to change the package settings anyway. You can do this if you manually build them yourself using something like portmaster for a one-off server, or run your own package and build server with poudriere, if its for a cluster of servers.
It felt like we were in uncharted waters with the IPA client and gave up instead of fixing the problems.
I wish there was Pkg install ipa-client
As an application developer, I probably wouldn't choose to design a system that needed it.
However there are lots of good reasons why a company in 2023 might decide to use this NFS based product: https://cloud.google.com/filestore?hl=en
Beneath the layers of containers, rest-api's, js frameworks and web interfaces, there's someone that makes use of serious stuff.
What do you suggest as an alternative? SMB/CIFS was -- when I last looked, which was a while back -- much slower for this use case.
Small services, and object file storage can get away with other solutions.
Like any tool, it has its appropriate uses.
Why would you exclude a useful tool from your arsenal because of perceived downsides that are easy to hide from the layer above with appropriate system design?
Call me a boomer, but I still think "containers"/Docker is not a solid, simple and robust solution for isolation.
Nix is a great way to jump over docker entirely. You can then output a container from Nix if you need it, but you aren't limited by them at all.
Can you explain why? It's not something I know a lot about so I'd be interested to learn about
It's similar under Linux's CGroups. You fire the binary inside another CGroup and, that application thinks that it's the only thing on the machine, and may feel a little lonely, with its own IP and isolated network stack and such.
There has not been a lot of documentation on how to do service jails. Maybe because a full jail (with a full and reasonably sized OS) is so trivial to setup.
But there is no denying that Docker have had great marketing and a good use case.
I do however think the real reason no matter how much of a FreeBSD Jail or Solaris Zones fan boy you are - you know that Linux is the elephant in the room. That brand name alone without arguing distributions.
Linux already had a huge market and mindshare compared to FreeBSD or Solaris. And when Linux got CGroups you had (within reason) feature parity. For anyone who are not daily distro switchers changing your base OS is no minor feat. So even if CGroups was not perfect the incentive to switch is not huge.
But it does make me sad that Docker has become so prevalent that a Docker image is the only way some projects make releases. All too commonly without documenting the build steps. Do not be so hard on your posix friends, please!
Docker, as you know better than me, is just a wrapper over CGroups, nothing else, plus a container image format, basically.
In the end, CGroups provided what jails provided with the same and better performance, and someone leveraged that subsystem with a tool, before everyone else.
I have no qualms with neither Linux nor CGroups. Great technology in itself. No reason to spread FUD.
1. The ability to create services in a clean slate environment. Unix processes tend to inherit by default most environment attributes--working directory, open file descriptors, etc.--and having a way to create a process (or group of processes) without inheriting all of that stuff is easy.
2. Virtualization/isolation in a lighter weight solution than a full virtual machine.
3. Checkpointing that allows you to consistently restart an image with a given configuration, even if you go on to horribly destroy it in tests or whatnot.
4. A language for designing how to construct these images (the Dockerfile).
I suspect the popularity of Docker mostly comes from the latter, and I'd definitely like to see something like that but utilizing jails and ZFS features instead.
Docker minus the giant well-populated well-maintained image library would be almost useless to me.
[edit] one daemon improved immeasurably by Docker is Samba, of all things. The invocations are a little arcane, but once you’ve got them figured out it’s one extra option line to add a user, one line to add a share, repeat as needed. So very much better than relying on distro-magic to make it work, or, god forbid, trying to configure it manually with some config file that ends up inexplicably having no portability, or is silently ignored despite the claims of the docs, or doesn’t work at all because there’s some option commented out by default that definitely shouldn’t be. Docker forced them to finally make the “I just want to share a damn directory, to these users, either read only or read-write” use case, which is probably the vast majority of use of Samba, straightforward, concise, and reliable to configure.
I’m not a boomer, but I’m considered old in this industry.
I know there was ghostBSD and desktopBSD for this in the past, but I am not sure what is recommended today?
ThinkPad T14 for example:
- https://vermaden.wordpress.com/2023/05/14/freebsd-13-2-on-th...
More laptop models:
- https://wiki.freebsd.org/Laptops
Being on you place I would try GhostBSD or NomadBSD - DistroWatch just made a nice review:
- https://distrowatch.com/weekly.php?issue=20231127#ghostbsd
Regards.
> NomadBSD is a persistent live system for USB flash drives, based on FreeBSD®. Together with automatic hardware detection and setup, it is configured to be used as a desktop system that works out of the box, but can also be used for data recovery, for educational purposes, or to test FreeBSD®'s hardware compatibility.
Though I am not sure when/if it will be rebased to this new release of FreeBSD.
>> [0] https://www.nomadbsd.org/
> Current Version
> 140R-20231121
Seems to be on 14?
This. I've been using Linux as a primary OS across all my devices for about twenty-five years. This comprises half a dozen Raspberry Pi 4s, two laptops and a monster workstation (AMD|Intel x86_64; ASUS, Dell, and ASUS, respectively.)
I used to have enormous linux compat problems with laptops as a matter of course, and I earned my stripes doing custom kernel compiles with patches, etc. The last time I had to do this was, I think, 2016 or so.
In particular, the past half-decade's worth of installs have all Just Worked -- at least, after I turn off Secure Boot.
I'd recommend using *BSD with a VM on top of Linux.
I would also love a similar setup with OpenWRT as it comes with a familiar configuration & UI.
What are the most popular markets for the BSDs today? Anything outside of research/edu?
- https://papers.freebsd.org/2019/fosdem/looney-netflix_and_fr...
Serving Traffic at 800Gb/s and beyond
http://nabstreamingsummit.com/wp-content/uploads/2022/05/202...
and the HN discussion
There recently was a vendor summit (which happens regularly: every year (?) in November):
> Join us for the November 2023 FreeBSD Vendor Summit. The event will take place November 2-3, 2023. The Summit provides commercial FreeBSD users with the unique opportunity to meet face-to-face with developers and contributors to get features requested, problems solved, and needs met. It also opens up discussion on improving and enhancing the operating system. Registration is now open. The program includes talks from NetApp, Netflix, ARM and more! Register today!
* https://freebsdfoundation.org/news-and-events/event-calendar...
* https://wiki.freebsd.org/DevSummit
Presentations:
* https://www.youtube.com/playlist?list=PLugwS7L7NMXzSalaF4l_7...
Lots and lots of use in proprietary appliances. NetApp, Dell/EMC (Isilon), Juniper used to use it on their qfabric network switches, etc.
It’s a solid starting point if you don’t want to have to worry about GPL in a product you don’t intend to open source.
Specifically if you don't want to worry about 'contamination' between your secret sauce and the open source bits.
It's generally a good idea to upstream as much as you can so you're not carrying custom patches internally when you don't have to. See "The Value of Upstream First":
* https://www.youtube.com/watch?v=h5C97dwIjM8&list=PLugwS7L7NM...
Not because Linux is better, but to fit better within Facebook's operations[1], and Erlang runs on many platforms, so it was a much smaller effort to get our code running on Linux than to get FB's server management software to work for FreeBSD. Server hardware was quite a bit different, so we had no apples to apples comparisons of which OS was more efficient or whatever else. During initial migration, BEAM support of kqueue was much better than epoll, but that got worked out, and I feel like Linux's memory usage reporting is worse than FreeBSD's, but it's a weakness of both. I was never comfortable in the FB server environment, so I left in late 2019, when the FreeBSD server count was reduced to a small enough number that I ran out of things to do.
[1] Much of the server team had experience with acquisitions at Yahoo! and the difficulties of making an operations team focused on one OS support acquired teams on another OS. With the many other technical and policy differences between WA and FB, eliminating the OS difference was an easy choice to reduce friction. Our host count, which was large at SoftLayer, was small at Facebook, even after factoring in increased numbers because the servers were smaller and the operations less stable.
Macs and iPhones maybe?