~/lightning

Lightning Talk: Understanding Memory Allocation Management in Envoy. Current an...

Lightningat EnvoyCon 2025 Europe · on Tuesday, 2025-04-01· [networking]
links:none on file
slides:none on file

Explains Envoy’s four allocation classes (static, thread‑local, stack, heap), how tcmalloc vs gperftools implement per‑thread/per‑CPU caching, and why fragmentation and allocator ABI differences matter; describes the shrink heap resource monitor and periodic-release feature and why released bytes are non‑deterministic; shows using the admin memory endpoint and patched TCM stats plus a heap profiler (pprof) to find a leak that retains ~84% of heap in a connection code path; proposes adding a fragmentation‑aware allocator and cgroup‑aware monitoring.

AI-written summary · about

  1. 0:00Envoy memory management intro
  2. 0:42Thread local storage in Envoy
  3. 1:47Heap allocations challenges
  4. 2:29Custom allocators in Envoy
  5. 3:12TC Maloc vs Gerf Tools
  6. 4:35TC Maloc architecture
  7. 5:18Memory fragmentation types
  8. 6:00Prevent memory exhaustion
  9. 7:47Troubleshooting memory leaks
  10. 9:10Debugging with TCM stats
  11. 10:14Heap profiling for leaks
  12. 11:16Future memory improvements
  13. 12:19Acknowledgements
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.