News for hackers. Stuff that matters.
Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @06:55AM (#23819358)
Could be, could also be they did not understand how to configure Linux, would like to see something more concrete to back such a claim up. Personally I'm skeptical that it is the case.
Re:Tutorial sites treating FreeBSD like a Linux distro by dijit on Monday July 13, 2020 @06:57AM (#23819382)
Even if that’s true then it remains a failing of the Linux ecosystem that they were unable to understand how to configure it correctly or that the defaults did not work as well as the FreeBSD ones.

But I don’t think it’s the case as they’ve put a lot of work into hiring some of the brightest minds in OS development, including Brendan Gregg

http://www.brendangregg.com/

Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @07:42AM (#23819667)
> Even if that’s true then it remains a failing of the Linux ecosystem that they were unable to understand how to configure it correctly or that the defaults did not work as well as the FreeBSD ones.

Or alternatively they just did not put the time in. No defaults cover all use cases, almost all software I have ever used in high load applications needed some tuning, this includes Solaris, MySQL and MongoDB among others.

> But I don’t think it’s the case as they’ve put a lot of work into hiring some of the brightest minds in OS development, including Brendan Gregg

AFAIK Netflix has used FreeBSD since 2012[1] and Brendan Gregg only started working at FreeBSD in 2014[2]. So not sure this really shows they knew what they were doing when they made the choice to go with FreeBSD. It could be they did but I still would like to something more than just Netflix's choice to back the claim up. Many more companies choose Linux.

[1]: https://lists.freebsd.org/pipermail/freebsd-stable/2012-June...

[2]: https://www.linkedin.com/in/brendangregg/

Re:Tutorial sites treating FreeBSD like a Linux distro by effie on Monday July 13, 2020 @08:02AM (#23819816)
Interesting, according to this presentation from 2013 there were several reasons to use BSD, but network speed is not among them.

https://people.freebsd.org/~scottl/Netflix-BSDCan-20130515.p...

Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @09:03AM (#23820298)
This presentation also makes no indication that FreeBSD was chosen because it had better performance than Linux: https://youtu.be/KP_bKvXkoC4?t=732

Seems GPL already ruled Linux out.

Re:Tutorial sites treating FreeBSD like a Linux distro by hylaride on Monday July 13, 2020 @08:10AM (#23819866)
I think that the engineers at Netflix "could figure it out".

As a long time BSD fan (since 1998) who has had to accept the fact that Linux won out in the end, I can vouch that by far the biggest pain point on Linux is its networking stack. Whenever I have to do anything other than set an IP address I throw up in my mouth a little bit. Linux has/had its benefits (packaging, install base), but IPTables or its routing configuration isn't one of them. High performance is certainly achievable, but it has a lot of quirks.

BSD's networking stack has always been more robust. Anybody who's worked heavily with both will tell you that. It did not surprise me one bit that the primary reason they chose FreeBSD over Linux for their CDN was networking. Juniper came to the same conclusion, on top of licensing reasons.

Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @08:21AM (#23819950)
> I think that the engineers at Netflix "could figure it out".

And I would still like to see some evidence.

> Whenever I have to do anything other than set an IP address I throw up in my mouth a little bit.

Very compelling case you make there.

Re:Tutorial sites treating FreeBSD like a Linux distro by hylaride on Monday July 13, 2020 @10:02AM (#23820859)
> And I would still like to see some evidence.

There are plenty of talks, papers, etc from both Juniper, Netflix, etc on why they made their choices, but your response is merely "could also be they did not understand how to configure Linux" without any evidence. We're not going to do your googling for you.

> Very compelling case you make there.

https://www.dictionary.com/browse/hyperbole

Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @10:10AM (#23820945)
> There are plenty of talks, papers, etc from both Juniper, Netflix, etc on why they made their choices, but your response is merely "could also be they did not understand how to configure Linux" without any evidence.

Here are the only sources I could find that gave some reasons for Netflix's choice:

- https://people.freebsd.org/~scottl/Netflix-BSDCan-20130515.p...

- https://youtu.be/KP_bKvXkoC4?t=732

Neither of them suggest FreeBSD was faster than Linux in their tests.

From both of those sources I would say avoiding GPL was the primary consideration.

If there is something to back your claim up, link to it. If you cannot link to it then how the heck do you expect me to find it. I'm not the person claiming it exists.

Re:Tutorial sites treating FreeBSD like a Linux distro by hylaride on Monday July 13, 2020 @10:44AM (#23821289)
In the presentation they literally list the TCP stack as a technical advantage. In the video the guy literally says kqueue and sendfile as superior freebsd code for their use case.

Also, I never said it's "faster". Most modern OS's on modern hardware can saturate most networking links. I said robust. There's a difference in how much CPU will be uses as well has how stable and consistent it can be.

I'm also not claiming FreeBSD is a magical solution to everything. I've long switched to Linux for various practical reasons, but there are some areas it still shines.

Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @12:42PM (#23822734)
> In the presentation they literally list the TCP stack as a technical advantage.

At the timestamp I shared up to the next slide no comparison is made between Linux and FreeBSD.

And the thread we were in is about someone claiming the reasons why Netflix chose FreeBSD was performance and not licensing. In fact, here is a direct debunk of that claim:

https://youtu.be/vcyQBup-Gto?t=2739

Jonathan Looney, Engineering Manager at Netflix, claiming their primary reason for choosing FreeBSD was GPL avoidance and that subsequent performance testing (which was not the basis for their choice) is not exactly fair because they did not do the same amount of engineering work for Linux as they did for FreeBSD.

> I said robust.

And I said "And I would still like to see some evidence."

... that is more robust than your anecdotal reports of nausea, which I'm not sure really I can translate meaningfully to a measure of robustness.

To which you suggested I should do your work for you like I'm your slave or something. If you can't back claims you make, don't make them, simple.

Re:Tutorial sites treating FreeBSD like a Linux distro by gtirloni on Monday July 13, 2020 @06:57AM (#23819381)
> could also be they did not understand how to configure Linux

They hired Brendan Gregg [0] so I think they know what's going on.

0 - http://www.brendangregg.com/

Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @07:36AM (#23819624)
AFAIK Netflix has used FreeBSD since 2012[1] and Brendan Gregg only started working at FreeBSD in 2014[2]. So not sure what the point of your statement is.

[1]: https://lists.freebsd.org/pipermail/freebsd-stable/2012-June... [2]: https://www.linkedin.com/in/brendangregg/

Re:Tutorial sites treating FreeBSD like a Linux distro by doublerabbit on Monday July 13, 2020 @08:28AM (#23820010)
The telecommunications company I am currently employed for uses FreeBSD for the backhaul applied with CG-NAT. And this is for the simple reason that the Linux stack couldn't keep up with the load.
Re:Tutorial sites treating FreeBSD like a Linux distro by aduitsis on Monday July 13, 2020 @07:41AM (#23819657)
Don't be. You are talking about the folks that pulled this off: https://people.freebsd.org/~gallatin/talks/euro2019.pdf
Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @07:45AM (#23819692)
7 years or more after choosing FreeBSD. This in no way vouches for their expertise in 2012.
Re:Tutorial sites treating FreeBSD like a Linux distro by Annatar on Monday July 13, 2020 @08:44AM (#23820145)
If FreeBSD performed better out of the box without needing as much or no tuning at all, then it's the better tool for the job, specifically their job.
Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @08:53AM (#23820219)
Maybe, still no evidence to back the speculation up.
Re:Tutorial sites treating FreeBSD like a Linux distro by Annatar on Monday July 13, 2020 @09:05AM (#23820313)
They have both Linux and FreeBSD, yet FreeBSD is the one they still use for streaming. A Linux-biased and centric shop like Netflix would ditch FreeBSD the first chance they had if it weren't better at it than Linux.
Re:Tutorial sites treating FreeBSD like a Linux distro by jaekash on Monday July 13, 2020 @09:24AM (#23820469)
Both of these things suggest they had many other reasons to chose FreeBSD, and neither suggests FreeBSD was faster than Linux:

- https://people.freebsd.org/~scottl/Netflix-BSDCan-20130515.p...

- https://youtu.be/KP_bKvXkoC4?t=732

Seems GPL was a problem for them.

EDIT: another source suggesting GPL avoidance was the primary reason for choosing FreeBSD over Linux: https://youtu.be/vcyQBup-Gto?t=2731 - and the presenter also says that the performance comparisons they have done between Linux and FreeBSD is not exactly fair because they did not do all the engineering work on Linux that they did on FreeBSD.