I built my own memory profiler (in Rust, on Linux) @fasterthanlime
I built my own memory profiler (in Rust, on Linux)  @fasterthanlime
Uploaded March 2023 | Updated September 2026, 3 weeks ago
To try everything Brilliant has to offer—free—for a full 30 days, visit brilliant.org/fasterthanlime
The first 200 of you will get 20% off Brilliant’s annual premium subscription.

This video was sponsored by Brilliant.

Follow me on Mastodon: hachyderm.io/@fasterthanlime
Support me on Patreon or GitHub: fasterthanli.me/donate
Source code for the memory visualizer: github.com/fasterthanlime/mevi
"The Linux Memory Manager" book (Lorenzo Stoakes): linuxmemory.org
(Reference continue below)

Contents

00:00 Intro
01:09 Memory fragmentation explained with cars
02:26 Virtual memory 101
06:10 Observing simple programs with mevi
10:30 Sponsored segment (real)
11:33 Why does this Rust program leak memory, visualized
13:30 mevi is Rust on the front & back
15:40 userfaultfd: the reason why mevi works (slowly)
18:13 The hard bits
21:06 Some bigger programs seen through mevi
22:15 Y'all are so good to me

More references

The Quest for Netflix on Asahi Linux (David Buchanan): da.vidbuchanan.co.uk/blog/netflix-on-asahi.html
Making our own executable packer: fasterthanli.me/series/making-our-own-executable-packer
Swiss Tables Design Notes (Abseil): abseil.io/about/design/swisstables
SwissTable CppCon talk (Matt Kulukundis): youtube.com/watch?v=ncHmEUmJZf4
Live migration: en.wikipedia.org/wiki/Live_migration
Chromium’s Zygote process: chromium.googlesource.com/chromium/src/+/HEAD/docs/linux/zygote.md
bytehound memory profiler: github.com/koute/bytehound
I built my own memory profiler (in Rust, on Linux)Program in C — The Memory Unsafety AnthemCarol & Chris chat about The Rust Book (3rd edition)Silly Fast Fresh Deploys with Rust (Part 1)Engineering a Rust optimization quizPoland mentionedRust Live Coding: Advent of Code & HTTP/2HTTP/2 in Rust with io_uring: the road to h2specHighlighted code in slidesWhy you always write a scriptAll color is best-effortThe case for sans-io
fasterthanlime |

I built my own memory profiler (in Rust, on Linux)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER