~/talk

What’s Eating my RAM? - C++ Memory Management

Talkat CppCon 2024 · on Tuesday, 2024-09-17· at 09:00· Spruce 3/4, 6700 North Gaylord Rockies Boulevard· [rust]
links:none on file
slides:none on file

Service raises a 90% memory alarm and investigation finds both leaks and fragmentation: a long‑running stateless process holds ~214 MB total with ~10 MB free but largest allocatable block only 63 KB (fragmentation ≈ 0.95), and one service grows ~400 MB/day versus a sibling that grows ~200 MB over seven days. Detection uses test allocator, address saser, and a VR tool set (massif/dhat style) to get callstacks, snapshots over time, and allocation‑access heatmaps; fixes remove leaks but fragmentation requires allocator or code‑locality changes.

AI-written summary · about

  1. 0:00Memory management challenges
  2. 1:28Memory alarm urgency
  3. 3:40Memory usage and performance
  4. 5:03C++ to RAM basics
  5. 9:22malloc memory chunks
  6. 12:37Memory leaks identification
  7. 17:34Tools for leak detection
  8. 23:19Fixing leaks and growth
  9. 23:41Memory fragmentation issues
  10. 25:53Fragmentation formulas
  11. 28:23Analyzing fragmentation
  12. 30:53Evaluating fragmentation with Dhat
  13. 32:02Reducing fragmentation
  14. 34:15Code solutions for fragmentation
  15. 38:51Memory locality optimization
  16. 40:38Summary and recommendations
~/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.