Live data from Hacker News

How Does FreeBSD Compare to Linux on a Raspberry Pi?

m.slashdot.org

1–10 of 27 posts

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#2
Mildly offtopic:

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"

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#3

Mildly offtopic: 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 har…

> “You can browse a modern web, have things scroll smoothly, watch videos and even play some 3D games like Quake with it“

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.

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#4
> But what about all that lackluster driver support? WiFi drivers still on the 802.11g standard and all? Surely you can't be serious about it when Linux offers all that support out of the box, right? Wrong, actually. For starters, the drivers provided for the Pi's hardware are often half-assed proprietary blobs... I no longer think FreeBSD is really at fault if the driver support for the hardware is not helpful to begin with.

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

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#5
I’m interested in this because lately I’ve been using an rpi4 with Surge XT, a great open source softsynth. The sound engine itself is not cpu bound in most scenarios. The pi can be brought to its knees with a lot of voices and effects but that is to be expected.

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?

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#6

Mildly offtopic: 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 har…

Obviously, if you run some computational benchmark the difference between operating systems should be minimal.

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.

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#8
post #7

Commenting to something said within the linked article: 32-bit Devuan (with Trinity Desktop aka KDE3.5 on maintenance) is still available at http://exegnulinux.net/ with Devuan/Debian repos. I'm happily running that on a Core2 Duo laptop.

I'm always curious - what do you use that machine for? I'm imagining most of the modern web is unusable.

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#9
post #3

Mildly offtopic: 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 har…

> “You can browse a modern web, have things scroll smoothly, watch videos and even play some 3D games like Quake with it“ 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.

Right. The job of an OS is to mostly stay out of the way of running code, until there is a system call or context switch.

Re: How Does FreeBSD Compare to Linux on a Raspberry Pi?

#10
post #7

Commenting to something said within the linked article: 32-bit Devuan (with Trinity Desktop aka KDE3.5 on maintenance) is still available at http://exegnulinux.net/ with Devuan/Debian repos. I'm happily running that on a Core2 Duo laptop.

IIRC correctly from my Late 2007 Intel Core 2 Duo MacBook days, that cpu can handle a 64 bits OS (although in my case the EFI could not so you had to modify it in order to be able to boot a 64bits OS)
Post reply on HN