Wherefore FreeBSD? reddit / BSD ---------------------------------------------------------------------- edthesmokebeard · 2018-11-07 03:49 (or any \*BSD) I've got some LAMP boxes running as VMs on a CentOS host right now, and I'm getting frustrated with a few things, systemd related, memory usage related. Also, been there, done that, looking for a new challenge. For a machine running a webserver, db and mail server, is there an advantage to FreeBSD? Lower system requirements? Easier management? ​ ---------------------------------------------------------------------- icantthinkofone · 2018-11-07 04:27 FreeBSD. 1) No systemd 2) Complete system unto itself. 3) Stable as a rock 4) Package manager for binary packages. Ports for custom builds. 5) Fast and good enough for Netflix. Good enough for you. ---------------------------------------------------------------------- name_censored_ · 2018-11-07 04:53 IMHO, FreeBSD has much cleaner and better defined underlying architecture (network, disks, memory, processes, base system, etc) than Linux. For example, a `ps auxf` on a vanilla FreeBSD install fits in an 80x24 terminal (*including* kernel processes), but a `ps auxf` on a vanilla Linux install is several pages long. But it's also got a smaller ecosystem than Linux. For example, the handbook and man pages are top-notch as definitive references, but there's fewer user-made tutorials. And running unsupported programs or exotic configurations can be more difficult (a bit like Linux from 10-20 years ago). Basically, Linux is to FreeBSD as Fedora is to CentOS. ---------------------------------------------------------------------- [deleted] · 2018-11-07 04:54 [deleted] ---------------------------------------------------------------------- [deleted] · 2018-11-07 04:57 [removed] ---------------------------------------------------------------------- [deleted] · 2018-11-07 07:32 [deleted] ---------------------------------------------------------------------- Xerxero · 2018-11-07 08:54 Well most get fooled by the absents of any tuning and conservative default settings. One has to manually change quite a lot of settings to get the most out of the system. ---------------------------------------------------------------------- FUZxxl · 2018-11-07 10:31 Can you give me some examples for these settings? ---------------------------------------------------------------------- Xerxero · 2018-11-07 10:41 https://www.c0ffee.net/blog/freebsd-server-guide/ is a nice reference (see section about Tweaking Network Performance) Also https://calomel.org/freebsd_network_tuning.html ---------------------------------------------------------------------- icantthinkofone · 2018-11-07 13:59 FreeBSD is pretty good out of the box and needs no tuning for most users. Your calomel link says as much. > The default install of FreeBSD and TrueOS is quite fast and will work well the majority of the time. ---------------------------------------------------------------------- Xerxero · 2018-11-07 14:11 And after installing chrome you get a list of things that need changing already. ---------------------------------------------------------------------- icantthinkofone · 2018-11-07 14:19 That's a Chrome issue, not a FreeBSD issue. Google and chromium don't support FreeBSD so you have a couple of guys working on a Linux program, one of the most complicated programs in the universe...and they made it work. ---------------------------------------------------------------------- one_is_the_loneliest · 2018-11-07 15:29 OP is looking for a server, which is where FreeBSD excels. Why bother with Chrome? ---------------------------------------------------------------------- qci · 2018-11-07 15:38 1. ZFS is great, but likes to eat up memory, too. One of the things OP complained about. 2. The FreeBSD devs are not conservative, but rather slow. There is not much happening, like it was at time of 5.0. The ports team is still strong, but it's slowly getting worse there. Many ports are unmaintained and dangerous to use. I like FreeBSD because it's not fragile when updating and upgrading. I always managed to solve problems with the system, no matter at what level/stage they occured. It's nice not to be afraid running a system. ---------------------------------------------------------------------- Xerxero · 2018-11-07 15:44 It was an example on top of my head which requires some settings to be changed. ---------------------------------------------------------------------- Y3808 · 2018-11-07 18:07 Embrace ZFS and jails as a replacement for containers and VMs. They are what Docker and VMs wish they could be (system-mobile containers with direct but controlled access to the kernel, and zero overhead). By getting rid of the VM overhead you can have that performance back for free, all while simplifying your life (one less middleware). There are no gotchas, caveats, or oh-by-the-ways waiting to bite you as there are when you adopt some sort of container or VM platform. You're using the bare metal. So you use that time saved not having the hassle of a container or VM middleware to built your own bare metal tools (jail templates, firewall rules, etc). If all of that sounds appealing FreeBSD is great. ---------------------------------------------------------------------- shastybsd · 2018-11-08 00:56 Try this solution : https://github.com/cullum/dank-selfhosted . I don’t test, but read and like. ---------------------------------------------------------------------- [deleted] · 2018-11-08 01:20 [deleted] ---------------------------------------------------------------------- edthesmokebeard · 2018-11-08 01:41 The ansible part is certainly cool. ---------------------------------------------------------------------- qci · 2018-11-08 06:45 You can see in the metadata the who is responsible. But on the other hand, even someone is responsible, you find very old versions with many CVEs mentioned. ---------------------------------------------------------------------- WeaklyConsistent · 2018-11-08 17:15 >The FreeBSD devs are not conservative, but rather slow. There is not much happening, like it was at time of 5.0. That's kind of meaningless without further qualification. There's a ton happening, even if it's not happening in areas that you care about. ​ ---------------------------------------------------------------------- geezerblab · 2018-11-08 17:55 FreeBSD is simpler, and that in and of itself means it is better for servers and things where simplicity and reliability are important. I've also seen the load avg punched up into the double digits, and it's still usable enough to regain control, while others would have needed a reboot. FreeBSD has very excellent memory management. But it can throw newcomers off. It's aggressive, I set mine as aggressive as possible. This means it will swap entire processes out to free up memory that may not even be needed. I find this helpful, but I think it's counterintuitive to many. I think the biggest advantage for you might be the simple, efficient jail implementation. Disadvantage: I don't think FreeBSD is all that great in a corporate environment. I say this just from observing the culture(s) and it seems Linux is more accepted by big biz. Java stuff is a good example. I've never had any luck convincing someone to switch to FreeBSD unless the individual was genuinely interested in Unix. Corporations are mostly interested in liabilities. FreeBSD is, frankly, a lot if fun and it's enjoyable. ---------------------------------------------------------------------- qci · 2018-11-08 18:35 There is lots of missing things since years, from drivers to docs. You need to pick hardware very carefully by now to have the most important things working. Especially when buying PC parts. ---------------------------------------------------------------------- edthesmokebeard · 2018-11-08 19:56 Great writeup, thanks. When you say load was double digits, is that impressive because it was a single core machine? I've seen plenty of double digits load on 16 & 32 core Linux machines and they're fine. ---------------------------------------------------------------------- geezerblab · 2018-11-08 20:58 It was a number of years ago, I think it may have been a quad. I just remember being impressed by how responsive it was under the load. ---------------------------------------------------------------------- illumosguy · 2018-12-08 14:15 BSDs are generally simple, lightweight, consistent, and bring with them the power of a very featured native userland, which in many case, is enough to buidl a minimal server already ​ For AMP or Mail server on VM literally any BSD is very good. You may want to attempt using OpenBSD's httpd over Apache, and OpeSMTPd instwead of Postfix. BSD is not easier to manage at first from a Linux user point of view bit \*it shall become, feel and look a lot easier\* once you learn how it works, and it doesn't take too much time. Just stay \~6 months on your BSD of choice and I dare you tell me I was wrong :) If you want containers FreeBSD is an obliged choice with its jails. If you want snapshots, checksums, compression deduplication, again FreeBSD with ZFS is the best choice. NetBSD has ZFS too, it works, but it's a relatively recent addition and it hasn't been even remotely as much tested as FreeBSD ZFS has. LVM on NetBSD is another solution If your target is security and homegrown software, get OpenBSD No proprietary database support is available