News for hackers. Stuff that matters.
Re:NetBSD 10: Thirty Years, Still Going Strong by hiAndrewQuinn on Monday February 05, 2024 @01:19AM (#39257960)
I get the feeling I should really take the plunge and start using one of the BSDs, at least as a web server or something. I rarely see them mentioned in job postings compared to Linux, but everything I hear about them as servers sounds so much less painful.

Turn as to whether Free vs Open vs Net makes the most sense. My very uncertain guess is Free is the easiest to get used to, and that you can't really go too wrong with any of them without a specialized use case.

Re:NetBSD 10: Thirty Years, Still Going Strong by mlyle on Monday February 05, 2024 @01:28AM (#39257998)
> everything I hear about them as servers sounds so much less painful.

It's a different kind of pain.

The entire "distribution" is cohesive and clean in a way that no Linux distribution manages. A lot of duplication of effort and ugliness is avoided.

But everyone develops for Linux, and you run into places where things don't work. And performance doesn't come close to Linux on the top end or even high middle end.

Re:NetBSD 10: Thirty Years, Still Going Strong by BSDobelix on Monday February 05, 2024 @04:00AM (#39258876)
>And performance doesn't come close to Linux on the top end or even high middle end.

It's a mixed bag, a not so good benchmark:

https://senioradmin.de/BenchmarkBSDLinux.html

And a little better one (with FreeBSD13 but 14 is already out and it's much faster[1]):

https://www.phoronix.com/review/bsd-linux-eo2021

[1]https://www.phoronix.com/review/freebsd-14-epyc

Re:NetBSD 10: Thirty Years, Still Going Strong by roydivision on Monday February 05, 2024 @03:11AM (#39258521)
> And performance doesn't come close to Linux on the top end or even high middle end.

The Playstation System software (Orbis OS) is a fork of FreeBSD:

https://en.wikipedia.org/wiki/PlayStation_4_system_software

I'd guess performance was pretty high on Sony's list of priorities.

Re:NetBSD 10: Thirty Years, Still Going Strong by znpy on Monday February 05, 2024 @04:23AM (#39259063)
Your guess is mostly wrong.

The playstation runs freebsd rather than linux licensing reasons, not for speed.

Re:NetBSD 10: Thirty Years, Still Going Strong by roydivision on Monday February 05, 2024 @04:52AM (#39259268)
Sure, Sony chooses a crap preforming OS just because it can't license the most popular. That makes sense.
Re:NetBSD 10: Thirty Years, Still Going Strong by skissane on Monday February 05, 2024 @05:39AM (#39259609)
It’s a gaming console. A lot of performance issues which could occur with e.g. a server OS aren’t going to happen.

And the bits that are most performance critical (primarily graphics) are very custom and likely have little in common with vanilla FreeBSD

So how well it performs for Sony says very little about how well it will perform for you - since your use cases have a high chance of being very different from theirs

Re:NetBSD 10: Thirty Years, Still Going Strong by roydivision on Monday February 05, 2024 @06:47AM (#39260182)
Yeah, I can see that. Fair enough. Thanks.
Re:NetBSD 10: Thirty Years, Still Going Strong by znpy on Monday February 05, 2024 @06:03AM (#39259794)
> That makes sense.

you'd be surprised how many nice things we don't get because of licensing.

dumb example: magsafe. it'd be nice and cheap to have it on all laptops, but laptop manufacturers can't license it (because apple won't sell licenses) so they have to go with other routes.

Re:NetBSD 10: Thirty Years, Still Going Strong by BSDobelix on Monday February 05, 2024 @06:26AM (#39260006)
But we got BSD, Linux and GNU because of Licensing ;)
Re:NetBSD 10: Thirty Years, Still Going Strong by mlyle on Monday February 05, 2024 @11:55AM (#39263388)
> > And performance doesn't come close to Linux on the top end or even high middle end.

> I'd guess performance was pretty high on Sony's list of priorities.

Do you consider the Playstation 4 hardware "top end"? I'm mostly thinking about SMP and IO performance.

See the geometric mean results here: https://www.phoronix.com/review/3990x-freebsd-bsd/5

"At 16 cores, RHEL8-based CentOS was about 17% faster than FreeBSD 12.1 while at 128 threads the lead expanded to 28% based upon the geometric mean or 21% when comparing the GCC9 results on FreeBSD 12.1."

It's my understanding that FreeBSD 13 has narrowed the gap a little bit. I was a total NetBSD fanboy at the beginning of my career, but was eventually forced to move away when Linux's momentum inexorably made running NetBSD (and FreeBSD) harder.

Re:NetBSD 10: Thirty Years, Still Going Strong by jjav on Monday February 05, 2024 @01:47AM (#39258087)
> And performance doesn't come close to Linux on the top end or even high middle end.

There are presentation about how Netflix uses BSD for video delivery for its performance, so it can't be that bad.

Re:NetBSD 10: Thirty Years, Still Going Strong by xyproto on Monday February 05, 2024 @02:05AM (#39258176)
Unless Netflix compares the performance with Linux and publishes the results, it's hard to know if it's a great idea or just based on the whims of the most senior sysadmins.
Re:NetBSD 10: Thirty Years, Still Going Strong by belgesel on Monday February 05, 2024 @03:04AM (#39258484)
IIRC the main reason to use FreeBSD instead of Linux was BSD being a lot simpler and have a lot more room to optimize their specific use case.
Re:NetBSD 10: Thirty Years, Still Going Strong by King1st on Monday February 05, 2024 @03:44PM (#39266894)
BSD is really do for companies that want to keep their code closed, but not start from scratch. I see this as a large reason why Netflix uses them and Sony uses BSD on playstations.
Re:NetBSD 10: Thirty Years, Still Going Strong by BSDobelix on Monday February 05, 2024 @06:14AM (#39259906)
I went full in on FreeBSD, it just has the most features and biggest community. I have pf (the firewall), zfs or ufs(the real one :) ), HAST, two supported versions FB13/14, packages or ports (both available as head or quarterly), MAC, Jail's, Bhyve, Security Event Auditing, Secure-levels, Capsicum, File-flags etc etc. [1]

And one really important point for me, one can work ~instantly on the project:

-Read https://docs.freebsd.org/en/books/porters-handbook/

-Open an account at https://bugs.freebsd.org/bugzilla/

-Send in patches and have fun.

-Search for outdated ports https://portscout.freebsd.org/

-Send in another patch.

[1] https://docs.freebsd.org/en/books/handbook/security/