~/talk

What Programmers Should Know About Memory Allocation

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
links:none on file
name:H. Sowa
links:none on file
name:P. Khuong
links:none on file
slides:none on file

Shows that swapping allocators changes real performance: MySQL scales differently across allocators and Firefox cuts memory by 20% reduction switching to jemalloc and another 16% with mesh. Measures allocation/free pair costs from ~50 ns down to 17 ns with thread caches. Demonstrates pathological cases: producer→consumer frees cause 1.4 μs per item due to ownership transfer, and a 16M-node linked list shows huge cache-line differences between slab and bump-pointer placement. Recommends using allocator hooks, arenas, region allocators, and measured tests in production-like environments.

AI-written summary · about

  1. 0:00Introduction to memory allocation
  2. 3:17Challenges in allocator design
  3. 7:14Fragmentation and compaction
  4. 8:18Multi-core scaling issues
  5. 11:51Validation in production
  6. 13:19Security and memory errors
  7. 15:45Common allocator design patterns
  8. 20:58Anti-patterns in allocation
  9. 22:26Segregated free lists
  10. 25:37Slab allocations explained
  11. 28:49Optimizing access patterns
  12. 30:14Growing memory regions correctly
  13. 32:23Detecting fragmentation
  14. 35:10TLB and memory locality
  15. 38:01Allocator bleed in multi-threaded apps
  16. 41:50Arena management and wasted memory
  17. 43:20Non-uniform memory access
  18. 45:51OS memory boundaries
  19. 47:15Overcommit in operating systems
  20. 49:41Debugging memory allocators
  21. 54:23Custom allocators: pros and cons
  22. 56:52Region allocators and use cases
  23. 58:57Q&A session
~/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.