Reproduce “Mesh: Compacting Memory Management for C/C++ Applications” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Bobby Powers, David Tench, Emery D. Berger, Andrew McGregor
Mesh introduces a memory allocator for C/C++ applications that automatically compacts physical memory without requiring code modifications or relocating objects. The system achieves significant memory savings, such as 16% for Firefox and 39% for Redis, by combining virtual memory remapping with randomized allocation and search algorithms.
Key insights
- Memory compaction can be safely and efficiently achieved in unmodified C/C++ applications by maintaining virtual addresses while remapping physical memory.
- Randomized allocation strategies are crucial for ensuring a high probability of finding meshing opportunities, effectively breaking classical worst-case fragmentation bounds.
- By leveraging properties of randomized allocation, the complex problem of optimal meshing can be approximated efficiently through maximum matching algorithms.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.