Developer Builds 12 Generations of Custom Memory Allocator, Documents Speed-RSS Tradeoffs
A developer has released the 12th generation of Hakozuna, a personal research memory allocator project, publishing findings on Zenodo in both English and Japanese. Each generation targets a specific aspect of memory management, including malloc/free throughput, Resident Set Size, and remote-free operations. The latest research branch, HZ11, achieved up to 6x the throughput of tcmalloc in certain remote-free benchmarks on Linux x86-64, though it underperformed in broader multi-threaded tests. A key challenge with HZ11's ownerless recycling design was the difficulty of safely decommitting empty memory spans without costly per-operation tracking. HZ12 addresses this by treating ownership as a hint rather than a guarantee, deferring full validation to a cold path to keep the high-performance malloc/free hot path lightweight.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in