~/talk

Mesh: Automatically Compacting Your C++ Application's Memory

Talkat CppCon 2019 · 2019-09-15..09-20· [security]
links:none on file
slides:none on file

A plug-in malloc replacement that compacts C/C++ heaps without source changes or pointer-fixing, enabled by an environment variable, claims provable fragmentation reduction using user-space virtual memory remapping. It uses per-page randomized allocation with a shuffle vector randomized offsets and a simple pairing algorithm to find mashable pages, cutting compaction work (5x less copying) and matching allocator speed while shrinking Firefox memory by ~16% and Redis by ~39%. plug-in malloc replacement

AI-written summary · about

  1. 0:00Introduction to fragmentation
  2. 3:58Why compaction is hard
  3. 8:34Mesh without code changes
  4. 10:00Virtual relocation trick
  5. 13:10Randomization in mesh
  6. 16:37Finding meshable pages
  7. 20:07Efficient mesh candidate search
  8. 21:10Implementation with key players
  9. 22:54Performance results
  10. 23:36Other projects and tools
  11. 24:40Q&A: Handling page faults
  12. 25:23Q&A: OS overhead and page merging
  13. 26:26Q&A: Determining page occupancy
  14. 27:31Q&A: Windows compatibility
  15. 28:13Q&A: Windows resources
  16. 29:37Q&A: Virtual address space
  17. 30:40Q&A: Randomization and locality
  18. 31:23Q&A: Latency spikes
  19. 32:47Q&A: Triggering compaction
  20. 33:49Q&A: Disabling async operations
  21. 34:11Q&A: Windows memory mapping
  22. 35:15Q&A: Competing projects
~/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.