How Does FreeBSD Compare to Linux on a Raspberry Pi?
m.slashdot.org
m.slashdot.org
I installed FreeBSD on a raspberry pi a few years ago, and I don’t think I ever got WiFi working. No FreeBSD is not “at fault” for not being popular enough on the desktop to receive proprietary drivers, but as a user it sure is frustrating to struggle to get such a basic function working
It runs a jail with my single user GoToSocial ActivityPub server [2] reasonably well with cloudflared [3] handling incoming traffic and acting as CDN to take some of the load. Originally it was only using an SD card, but there was too much IO contention so a USB-SSD adapter is used to offload the IO.
I choose FreeBSD over Linux since I have other Rpis with Linux already and wanted more experience with *BSD, jails, and ZFS. Unfortunately ZFS wasn't the best choice on an Rpi since it's more cpu intensive and switched back to UFS.
Overall it's been solid, multiple GTS updates and have it on my list to update to FreedBSD 14 but not really in a rush.
1. https://social.ecliptik.com/@micheal/statuses/01GP860MYM2CGH...
And I have not even touched "kern.sched.preempt_thresh" as this is not a desktop system.
What also impresses me is that you can load a FreeBSD system to 5x maxload (or much more) and it's still usable, with Linux you have horrible stuttering (on a desktop system).
I've always thought of distributions (whether they are BSD or Linux) as:
bootloader
kernel/initrd of some sort
/sbin/init
libc
shell / userspace tools
package manager
I think a lot of "noise" is made off of such slight distinction between these
Back on topic:
From the article
> Nope, no match — FreeBSD's performance on the Pi is still way better, even without overclocking
How? Like, it's the same hardware, the same processor executing instructions. The Linux kernel/Linux compiled applications are that much slower? That's surprising. I wonder if that could be fixed easily with some kind of config tweaks somewhere. That would strike me as "something is broken" if the performance isn't within 1-3% of each other Linux vs BSD
I find it hyperbolic/probably untrue to say "oh, I ran Linux on my RaspberryPi, it was so slow I couldn't use the web browser. I switch to FreeBSD and it was so much faster it was usable"
However, what was described in the linked article were the snappiness of an Internet browser and of a graphical desktop and the USB and audio performance.
Those may depend a lot on the operating system support, so they may vary noticeably between operating systems.
While I am using both Linux and FreeBSD on x86, I have not tried FreeBSD on Arm, mainly because it has official support only for a few SBCs. Because Linux on RaspberryPi felt quite slow, I would not be surprised if a FreeBSD desktop feels snappier.
In general, Linux has support for a much greater variety of hardware than FreeBSD, but among those kinds of devices that are supported by both it cannot be predicted which of the two operating systems will have a better performance for a certain application.
So it sounds like the alleged difference in performance is subjective based on interactive use, not benchmark numbers. Just speculating here but I would guess this comes down to differences in CPU scheduling algorithms. Last I checked, Linux and FreeBSD used very different scheduling algorithms.
I would like to have a comparison with DietPi running the Pi, but so far with a few optimisations the performance has been great. Granted that the Radius server serves 2 ubiquity APs in a SOHO with a handful of WiFi connections and it's nowhere near a full-blown "campus" level deployment - that would require a huge mysql server.
However, even the specs for the freeradius server + SQL were something like 2GB IIRC, the combo runs fine.
I have a 2007 MacBook and it runs 64 but EndeavourOS no problem but I have 8 GB in it.
Use-cases? Remote and while-you-wait work, RS232 and ethernet test console. It's bigger than a netbook but it's what I've got, so I lug it around.
It was not comfortable but definitely usable (unlike a 2005 Imac G5 for example).
A 2013 4th gen i5 laptop with a SSD (major difference in trems of experience) and 8GB Ram remains totally usable for regular stuff (watching movies, Youtube, browsing the web, basic dev work) The plastic body is generally what fails before everything else.
As long you have at least four cores, 4GB Ram, linux and above all a SSD you should be fine
What baffles me is that it randomly drops a ton of UDP packages, fails to read/write disk and randomly experiences high load only to quiet down later. Basically it seems like it really sucks at i/o. Might there be a benefit to using FreeBSD in this scenario?
That’s with a high quality SD card, too. I don’t have it nearby at the moment, but it was one of the ones the RPi website recommended.
A note for when you have problems: that’s the cause.
Name brand, high quality USB SSDs are the way to go.
While Linux is way more popular because of hardware support, lxc/lxd/Docker and various user friendly features, FreeBSD performs considerably better in my experience for heavy processing workloads.