News for hackers. Stuff that matters.
Re:FreeBSD has serious problems with focus, longevity and li... by shimont on Monday January 24, 2022 @05:53PM (#30065235)
Who uses FreeBSD those days? As a company that runs on the cloud, AWS/GCP/Azure you run windows/linux, and on desktop people mainly run MacOS/Windows/Linux.

I am really asking as for what is the main use case of FreeBSD in 2022?

Re:FreeBSD has serious problems with focus, longevity and li... by rsync on Monday January 24, 2022 @06:00PM (#30065325)
We[1] have our entire infrastructure on FreeBSD - and always have.

That's why this has been frustrating - we have a history of committing real money[2][3] to the project in an attempt to make investments ... but there is never a fixed target to make those investments in.

It is a matter of fact that our own use of FreeBSD - in live production for a business - is completely divorced from the experience and day to day usage of FreeBSD developers.

[1] rsync.net and, previously, JohnCompanies

[2] https://www.rsync.net/resources/notices/2007cb.html

[3] USD 50k donation offered - https://lists.freebsd.org/pipermail/freebsd-hackers/2012-Jan...

Re:FreeBSD has serious problems with focus, longevity and li... by bojo on Monday January 24, 2022 @08:38PM (#30066754)
Whoa, I recall spinning a box up on JohnCompanies back when you guys first popped onto the scene.

Cool to see people still building on FreeBSD, sad to see that it's an uphill battle to stay relevant with it.

Re:FreeBSD has serious problems with focus, longevity and li... by rsync on Tuesday January 25, 2022 @02:36AM (#30069216)
Did you learn about us from our kuro5hin ads ?

That was 21 years ago ...

Re:FreeBSD has serious problems with focus, longevity and li... by bojo on Tuesday January 25, 2022 @10:37AM (#30072963)
That must have been it, used kuro5hin quite a bit back then.
Re:FreeBSD has serious problems with focus, longevity and li... by cerved on Monday January 24, 2022 @06:28PM (#30065639)
there's a small startup called Netflix that does some internet thing with it
Re:FreeBSD has serious problems with focus, longevity and li... by belter on Monday January 24, 2022 @06:55PM (#30065900)
Yeah, they are small but growing...

"Serving Netflix Video at 400Gb/s on FreeBSD" https://people.freebsd.org/~gallatin/talks/euro2021.pdf

Re:FreeBSD has serious problems with focus, longevity and li... by andai on Monday January 24, 2022 @10:08PM (#30067412)
Also WhatsApp, Yahoo!, and many others [1] including Sony (playstation's OS), Apple (macOS) and Microsoft (Azure).

https://freebsdfoundation.org/freebsd/

Re:FreeBSD has serious problems with focus, longevity and li... by edgyquant on Tuesday January 25, 2022 @01:13AM (#30068744)
MacOS isn’t FreeBSD. I believe they forked the FreeBSD userland a long time ago but used GNU for their shell and toolchain (and the kernel etc is completely different.)
Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Tuesday January 25, 2022 @03:58AM (#30069752)
MacOS is mostly a FreeBSD-Kernel plus a MACH-Kernel together called XNU, and most "core"-utils are still from FreeBSD:

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

https://en.wikipedia.org/wiki/Darwin_(operating_system)#/med...

Re:FreeBSD has serious problems with focus, longevity and li... by andai on Tuesday January 25, 2022 @11:00AM (#30073304)
https://wiki.freebsd.org/Myths#FreeBSD_is_Just_macOS_Without...

>FreeBSD is Just macOS Without the Good Bits

>This is as much a myth about macOS as about FreeBSD; that macOS is just FreeBSD with a pretty GUI. The two operating systems do share a lot of code, for example most userland utilities and the C library on macOS are derived from FreeBSD versions. Some of this code flow works in the other direction, for example FreeBSD 9.1 and later include a C++ stack and compiler that were originally developed for macOS, with major parts of the work done by Apple employees. Other parts are very different.

>Darwin - which consists of the XNU kernel, IOkit (a driver model), and POSIX compatibility via a BSD compatibility layer - makes up part of macOS (as well as iOS, tvOS, and others) includes a few subsystems (such as the VFS, process model, and network implementation) from (older versions of) FreeBSD, but is mostly an independent implementation. The similarities in the userland, however, make it much easier to port macOS code to FreeBSD than any other system - partially because a lot of command-line utilities were imported along with the BSD bits from FreeBSD. For example, both libdispatch (Grand Central Dispatch in Apple's marketing) and libc++ were written for macOS and worked on FreeBSD before any other OS.

>Apple's kernel programming guide goes into more extensive detail about the similarities and differences.

https://developer.apple.com/library/archive/documentation/Da...

>The BSD portion of the OS X kernel is derived primarily from FreeBSD, a version of 4.4BSD that offers advanced networking, performance, security, and compatibility features. BSD variants in general are derived (sometimes indirectly) from 4.4BSD-Lite Release 2 from the Computer Systems Research Group (CSRG) at the University of California at Berkeley.

Re:FreeBSD has serious problems with focus, longevity and li... by oblio on Tuesday January 25, 2022 @04:28AM (#30069949)
And those core utils are generally seen as a hindrance by developers using it.

Plus how long did MacOS diverge from FreeBSD? 20+ years ago? Does it even resemble current FreeBSD enough that this observation makes sense, except from a software history perspective?

Edit: Actually, considering that the divergence started with NextStep in 1988, from 4.3 BSD and not FreeBSD, and that Unix was created in 1969, this becomes a bit like comparing Unix 1969 to Linux 1999... so not really relevant anymore.

Re:FreeBSD has serious problems with focus, longevity and li... by ayushnix on Tuesday January 25, 2022 @04:53AM (#30070107)
> Plus how long did MacOS diverge from FreeBSD? 20+ years ago? Does it even resemble current FreeBSD enough that this observation makes sense, except from a software history perspective?

You'll always find people who'll say that Android and ChromeOS are Linux distributions and MacOS is based on FreeBSD. I guess it makes them feel good.

Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Tuesday January 25, 2022 @05:07AM (#30070177)
>Android and ChromeOS are Linux distributions

They are, but they are not GNU/Linux...Alpine is not Gnu/Linux too, but BusyBox/musl/Linux, maybe it makes others sad that you don't know the difference.

>MacOS is based on FreeBSD. I guess it makes them feel good

For years exactly that was written on Apples own macOSX page, but you know it better right?

https://web.archive.org/web/20090207062005/https://www.apple...

>>Mac OS X Server is based largely on the FreeBSD distribution and includes the latest advances from this development community.

https://web.archive.org/web/20090205151917/http://images.app...

>> Kernel based on FreeBSD and Mach 3.0

https://web.archive.org/web/20081230112742/http://images.app...

>>The Mac OS X kernel at the heart of Darwin is based on FreeBSD 5 and Mach 3.0

Have Fun :)

Re:FreeBSD has serious problems with focus, longevity and li... by ayushnix on Tuesday January 25, 2022 @10:52AM (#30073178)
> Alpine is not Gnu/Linux too, but BusyBox/musl/Linux, maybe it makes others sad that you don't know the difference.

I'm more concerned with the practical significance of calling Android or ChromeOS a Linux distribution than being pedantic for the history books.

Sure, Alpine doesn't use the usual userland you'll find on most Linux distributions but it isn't an alien experience and you can use it mostly like any other Linux distribution out there. You'll still find a POSIX shell and a package manager to install packages. There's Xorg or Wayland for the GUI and you'll find familiar desktop environments and window managers.

Unlike Android, you won't find absence of root access on Alpine. There's no restriction on placement of data on directories like /usr and /var. You won't find dozens of UIDs for different processes running at the same time on a single user system. You can't just slap Android on any hardware x86_64 hardware you want and expect it to work fine. Hell, you can't even do that on ARM devices if you're not using out-of-tree patches and firmware blobs. The bluetooth and audio stack on Android is completely different than what you'll use on any Linux distribution.

So yeah, if we're being pedantic, sure, Android is a Linux distribution because it uses the Linux kernel. Good luck using it like a typical Linux distribution though.

> For years exactly that was written on Apples own macOSX page, but you know it better right?

What I wrote above. Sure, pages written decades ago indicate that the Apple used FreeBSD as its base for its kernel but I doubt their kernel is anything close to upstream FreeBSD at this point. The same goes for their userland and graphics stack. Would you call OrbisOS, used by PS4, a distribution of FreeBSD? Can you do anything meaningful with it like you can with FreeBSD?

Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Tuesday January 25, 2022 @01:19PM (#30075670)
>>Would you call OrbisOS, used by PS4, a distribution of FreeBSD?

No one said that, and no one said MacOS is a FreeBSD distribution, you where wrong an now you try too put your half-knowledge into other mouths.

You can stop now.

Re:FreeBSD has serious problems with focus, longevity and li... by ayushnix on Tuesday January 25, 2022 @10:49PM (#30081445)
> >>Would you call OrbisOS, used by PS4, a distribution of FreeBSD?

> you where wrong an now you try too put your half-knowledge into other mouths.

> You can stop now.

Nice job being condescending and rude.

Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Wednesday January 26, 2022 @06:10AM (#30084109)
Congratulation for still not understanding what a distribution is.
Re:FreeBSD has serious problems with focus, longevity and li... by Dylan16807 on Tuesday January 25, 2022 @07:47AM (#30071172)
> You'll always find people who'll say that Android and ChromeOS are Linux distributions and MacOS is based on FreeBSD. I guess it makes them feel good.

A "linux distribution" just requires the kernel, and the version they use isn't that modified.

If you want a wrong statement, it would have to be more like saying they're the same distribution as the internal builds used by Android Inc. in 2005.

Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Tuesday January 25, 2022 @07:08AM (#30070900)
https://en.wikipedia.org/wiki/MacOS#Mac_OS_X_10.5_Leopard

>>It was also the first BSD-based OS to receive UNIX 03 certification

Re:FreeBSD has serious problems with focus, longevity and li... by edgyquant on Tuesday January 25, 2022 @11:22AM (#30073687)
Yes Mac is a BSD but isn’t FreeBSD as it was forked two decades ago and has a completely different architecture. You wouldn’t say Dragonfly is FreeBSD, why would MacOS be?
Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Tuesday January 25, 2022 @01:12PM (#30075543)
>Yes Mac is a BSD but isn’t FreeBSD

No one said that ever....

Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Tuesday January 25, 2022 @04:57AM (#30070125)
>And those core utils are generally seen as a hindrance by developers using it.

I don't like Mac nor do i like gnu-coreutil...but that's my personal taste, and not my problem.

>Plus how long did MacOS diverge from FreeBSD? 20+ years ago? Does it even resemble current FreeBSD enough that this observation makes sense, except from a software history perspective?

I said what kernel it uses (FreeBSD and Mach) and i don't know if Apple re-bases their code on current FreeBSD-Code...you can look that for for yourself. Don't start twisting facts because you didn't knew better, at least now you know.

Re:FreeBSD has serious problems with focus, longevity and li... by oblio on Tuesday January 25, 2022 @05:29AM (#30070280)
> I don't like Mac nor do i like gnu-coreutil...but that's my personal taste, and not my problem.

Well, it's not your problem, but when millions of developers like GNU coreutils over BSD coreutils, then it kind of becomes everyone's problem :-)

There's a reason GNU became popular when there were other tools available before it appeared.

Re:FreeBSD has serious problems with focus, longevity and li... by nix23 on Tuesday January 25, 2022 @05:34AM (#30070302)
>but when millions of developers like GNU coreutils over BSD coreutils

I don't care if they cannot install Gnu/Linux on their machine, but being forced to use a proprietary system like Mac. Not my problem. Don't want bsd-core-utils? Don't buy apple, it's so easy.

>There's a reason GNU became popular when there were other tools available before it appeared.

That's not the reason and you know it, stop with that half-knowledge you think you have.

Something to read for you:

https://en.wikipedia.org/wiki/UNIX_System_Laboratories,_Inc.....

Re:FreeBSD has serious problems with focus, longevity and li... by oblio on Tuesday January 25, 2022 @06:00AM (#30070475)
> Don't buy apple, it's so easy.

And yet they do, by the millions :-) Anyway, I don't really have a bone to pick on this topic.

However:

> That's not the reason and you know it, stop with that half-knowledge you think you have.

Yes, it is. They were full of features and that's why they became popular.

Please enlighten us with your rest-of-half-knowledge, otherwise.

Re:FreeBSD has serious problems with focus, longevity and li... by robbomacrae on Monday January 24, 2022 @06:44PM (#30065791)
It's funny you wrote that because when browsing HackerNews, for me the 3rd item above this was: We're migrating many of our servers from Linux to FreeBSD (dragas.net)

[1] https://news.ycombinator.com/item?id=30057549

Re:FreeBSD has serious problems with focus, longevity and li... by stragies on Monday January 24, 2022 @07:02PM (#30065961)
The (currently) top-voted comment of that thread is somebody describing, how they went back to Linux after the honeymoon-period with FreeBSD, among others because of systemd.
Re:FreeBSD has serious problems with focus, longevity and li... by bojo on Monday January 24, 2022 @08:39PM (#30066767)
I imagine rsync posted this as a reminder to what's in store. There were roughly 4-5 FreeBSD related posts which hit the main page on HN today.
Re:FreeBSD has serious problems with focus, longevity and li... by LeoPanthera on Monday January 24, 2022 @05:58PM (#30065298)
Domain-specific derivatives of FreeBSD are still very popular, such as TrueNAS, pfSense, OPNsense, and so on.
Re:FreeBSD has serious problems with focus, longevity and li... by yyyk on Monday January 24, 2022 @08:44PM (#30066825)
The BSDs always had a following in network-related roles, since Linux has had some issues in the past (e.g. accept filters used to be useful, iptables more complicated than pf), and OpenBSD cultivated a security-minded reputation.
Re:FreeBSD has serious problems with focus, longevity and li... by rubyist5eva on Monday January 24, 2022 @06:19PM (#30065524)
We run everything on Linux except our PostgresSQL database which is FreeBSD and ZFS. Have nothing but good things to say.
Re:FreeBSD has serious problems with focus, longevity and li... by mulmen on Monday January 24, 2022 @06:37PM (#30065723)
Have you done any writing about that experience and setup? Both Postgres and ZFS are COW, I seem to recall some warnings back in the day about conflicts between the two systems but I have no first hand experience.
Re:FreeBSD has serious problems with focus, longevity and li... by djbusby on Monday January 24, 2022 @07:12PM (#30066046)
I've been told (in like 2006) that PG is "best" on FreeBSD - but I don't have a link to that IRC channel log.

I did find this benchmark which maybe helpful https://redbyte.eu/en/blog/postgresql-benchmark-freebsd-cent...

I use PG on both and have never had issues (systems only sorta busy (200 connections, less than 2TB on disk))

Re:FreeBSD has serious problems with focus, longevity and li... by mulmen on Tuesday January 25, 2022 @01:33PM (#30075918)
Best on FreeBSD is one thing but best on ZFS on FreeBSD? IIRC the (oldschool?) guidance was UFS for Postgres.
Re:FreeBSD has serious problems with focus, longevity and li... by caffeinated_me on Monday January 24, 2022 @07:19PM (#30066123)
I've seen ZFS being used with Postgres in a few different environments. Seems to work fine for the most part- surprisingly good compression (~8X in one case, usually lower), with the major downside being increased CPU usage when taking advantage of said compression.

I think that only one or two of those environments were heavily used production instances, so if there is a serious gotcha here it might not have been apparent to me.

Re:FreeBSD has serious problems with focus, longevity and li... by rubyist5eva on Monday January 24, 2022 @07:23PM (#30066167)
No we’re kind of a lean shop so we don’t do much tech blogging - it’s something we’re thinking of doing soon though.

As for CoW, we just turn it off on the postgres config and rely strictly on ZFS. We also turned off checksumming and compression in postgres and use Zstd:3 on the file system. Beyond that we just followed your run of the mill tuning guide you’d find on Google.

Re:FreeBSD has serious problems with focus, longevity and li... by heavyset_go on Monday January 24, 2022 @08:46PM (#30066836)
It's used to build and distribute closed source operating systems and devices to users. Every Mac and iPhone user has a little bit of 2003-era FreeBSD running that provides XNU its BSD "flavor".
Re:FreeBSD has serious problems with focus, longevity and li... by accrual on Monday January 24, 2022 @07:56PM (#30066450)
Nintendo Switch
Re:FreeBSD has serious problems with focus, longevity and li... by edgyquant on Tuesday January 25, 2022 @01:16AM (#30068758)
SwitchOS is not based on FreeBSD. It has a net stack forked from FreeBSD code but if that makes it a FreeBSD than Windows and Linux are both BSDs I guess.
Re:FreeBSD has serious problems with focus, longevity and li... by astrange on Monday January 24, 2022 @08:59PM (#30066941)
And PS5, FreeNAS and some smaller appliances, and macOS uses some of the userland.