HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

FreeBSD optimizations used by Netflix serving at 800Gb/s - Drew Gallatin - EuroBSDcon 2022

EuroBSDCon2 HN recommenders · recommended in 2 months, 2022-2025
YouTube
28K views · 4 years ago · talk · dated

Netflix engineer Drew Gallatin's EuroBSDcon 2022 talk quantifies the older FreeBSD optimizations that let Netflix serve web traffic at 800Gb/s, including TSO, LRO, VM page cache zones, asynchronous sendfile and unmapped mbufs.

HN points to it as the recorded talk behind the Netflix 800Gb/s slides and as a deep look at kernel-level optimizations for high throughput.

Operating systems & kernelsNetworking & internet infrastructureSoftware performance & optimization#freebsd#netflix#ktls#tcpoffload#performance#sendfile

5 comments from Hacker News

@craftkiller2025 · in “Linux Performance Analysis (2015)”

Netflix discusses their reasons starting at 18:20: link tl;dw: the performance, the efficiency of development, the community, FreeBSD is a complete operating system, the code base is smaller, the ports system, and the license. and this video covers the optimizations Netflix has made to FreeBSD: ▶ this video Also potentially a reason: According to drewg123, Linux's kTLS was broken. Which I see drewg123 also commenting in this thread. Is he the "Drew on my team" mentioned in the first video? Is he the speaker in the 2nd video? Idk link

CitesView on HN
@thomasjudge2023 · in “Video Streaming at Scale with Kubernetes and RabbitMQ”

OP mentions that "I would love to be a little mouse and peek at YouTube’s complete architecture to see how far we are from them." You can occasionally find posts -often linked here- from another player in streaming video which you might have heard of, discussing technical architecture. For example, this might be a little lower level that you may be interested in as it relates to kernel optimizations to jack bit throughput rates, but I dig this sort of thing - ▶ this video

RecommendsView on HN
@throw0101c2023 · in “Happy 50th Birthday, Ethernet”

> Ethernet is stuck on 1500 byte frames, with the result of limiting TCP as well. That's just nuts on 100G or 400G networks, even on 10G it's a bit of a stretch already. How limiting is 1500 for the end-nodes for most people? For access-, distribution-, and core-layer switches the ASICs process things at wire speed, so does it matter what the frame size is? I can see some server applications, but we've had offloading for years now: * link Netflix is hitting (encrypted) 800 Gb/s: * ▶ this video * link > TCP is also sticking around for too long. Almost nothing wants a stream these days, lots and lots of applications reinvent datagrams on top of it. Tallk to the vendors of middleware boxes (e.g., (CPE) firewalls): we've had (say) SCTP and DCCP for twenty years that offer variations, but they're never allowed to pass through. No new Layer 4 can really be allowed through because of ossification, and so kludging everything to TCP/UDP port 80/443 is what we're left with. NAT and a lack of end-to-end also doesn't help: one has to futz around with things like STUN and TURN.

CitesView on HN
@notaplumber12022 · in “FreeBSD optimizations used by Netflix to serve video at 800Gb/s [pdf]”

This talk was given at this years EuroBSDcon in Vienna, recording is up on YouTube. link ▶ this video Some really great talks this year from all the *BSDs, highly recommend checking a look: link

RecommendsView on HN
@drewg1232022 · in “FreeBSD optimizations used by Netflix to serve video at 800Gb/s [pdf]”

> How did you generate those flamegraphs and what other tools did you use to measure performance? We have an internal shell script that takes hwpmc output and generates flamegraphs from the stacks. It also works with dtrace. I'm a huge fan of dtrace. I also make heavy use of lockstat, AMD uProf, and Intel Vtune. > Did the graph show the bottleneck contention on aio queue? Did the graph show that "a lot of time was spent accessing memory"? See the graph on page 32 or so of the presentation. It shows huge plateaus in lock_delay called out of the aio code. Its also obvious from lockstat stacks (run as lockstat -x aggsize=4m -s 10 sleep 10 > results.txt) See the graph on page 38 or so. The plateaus are mostly memory copy functions (memcpy, copyin, copyout). We already use FreeBSD on our CDN, so it just made sense to do the work in FreeBSD. The talk is on Youtube ▶ this video

CitesView on HN
Serving Netflix Video at 400Gbps on FreeBSD by Drew Gallatin47:42

Serving Netflix Video at 400Gbps on FreeBSD by Drew Gallatin

EuroBSDCon
9K views • 5 years ago
Why We Run FreeBSD current at Netflix – Drew Gallatin40:20

Why We Run FreeBSD current at Netflix – Drew Gallatin

OpenFest Bulgaria
21K views • 2 years ago
NYCBSDCon 2014: Serving one-third of the Internet via FreeBSD1:01:39

NYCBSDCon 2014: Serving one-third of the Internet via FreeBSD

BSDTV
14K views • 12 years ago
AWS re:Invent 2017: How Netflix Tunes Amazon EC2 Instances for Performance (CMP325)56:55

AWS re:Invent 2017: How Netflix Tunes Amazon EC2 Instances for Performance (CMP325)

Amazon Web Services
18K views • 8 years ago
Why did Netflix use NGINX and FreeBSD to build their own CDN? by Gleb Smirnoff45:42

Why did Netflix use NGINX and FreeBSD to build their own CDN? by Gleb Smirnoff

NGINX
40K views • 11 years ago
Scaling ZFS for NVMe - Allan Jude - EuroBSDcon 202246:00

Scaling ZFS for NVMe - Allan Jude - EuroBSDcon 2022

EuroBSDCon
14K views • 4 years ago
June 2021 FreeBSD Developer Summit: Raid-Z Expansion35:31

June 2021 FreeBSD Developer Summit: Raid-Z Expansion

FreeBSD
4K views • 5 years ago
A Brief History of the BSD Fast Filesystem by Marshall Kirk McKusick56:53

A Brief History of the BSD Fast Filesystem by Marshall Kirk McKusick

EuroBSDCon
878 views • 6 years ago
Jordan Hubbard - FreeBSD: The Next 10 Years48:52

Jordan Hubbard - FreeBSD: The Next 10 Years

iX
24K views • 11 years ago
RIP Windows: Linux GPU Gaming Benchmarks on Bazzite48:13

RIP Windows: Linux GPU Gaming Benchmarks on Bazzite

Gamers Nexus
1.1M views • 11 months ago
Flex 170 GPU from Intel - Subscription Free GPU Accelerated VDI on Proxmox 8.119:25

Flex 170 GPU from Intel - Subscription Free GPU Accelerated VDI on Proxmox 8.1

Level1Techs
176K views • 2 years ago
36C3 -  A systematic evaluation of OpenBSD's mitigations53:02

36C3 - A systematic evaluation of OpenBSD's mitigations

media.ccc.de
18K views • 6 years ago
XFS: Recent and Future Adventures in Filesystem Scalability - Dave Chinner49:16

XFS: Recent and Future Adventures in Filesystem Scalability - Dave Chinner

Linux.conf.au 2012 -- Ballarat, Australia
29K views • 14 years ago
code::dive conference 2014 - Scott Meyers: Cpu Caches and Why You Care1:16:58

code::dive conference 2014 - Scott Meyers: Cpu Caches and Why You Care

NOKIA Technology Center Wrocław
231K views • 11 years ago
Bloat: How and Why UNIX Grew Up (and Out) - Rusty Russell,Matt Evans42:39

Bloat: How and Why UNIX Grew Up (and Out) - Rusty Russell,Matt Evans

Linux.conf.au 2012 -- Ballarat, Australia
21K views • 14 years ago
CppCon 2017: Chandler Carruth “Going Nowhere Faster”1:00:58

CppCon 2017: Chandler Carruth “Going Nowhere Faster”

CppCon
113K views • 9 years ago
User-level threads....... with threads. - Paul Turner - Google34:00

User-level threads....... with threads. - Paul Turner - Google

Linux Plumbers Conference
41K views • 13 years ago
The Tragedy of systemd47:18

The Tragedy of systemd

linux.conf.au
1.3M views • 7 years ago
Breaking the 1000ms Time to Glass Mobile Barrier45:49

Breaking the 1000ms Time to Glass Mobile Barrier

InfoQ
104K views • 13 years ago
Simple Code, High Performance2:50:14

Simple Code, High Performance

Molly Rocket
463K views • 5 years ago