makalu · research · also Makalu allocator

Makalu

Makalu is a persistent-memory allocator that combines protected heap metadata with recovery-time garbage collection.

Scope: Makalu manages allocation, not application transactions. Its runtime must recover the user's data, or the programmer must supply that recovery when using it alone. [2]

Mechanism: Core metadata is protected; reconstructible auxiliary metadata can be persisted lazily. Recovery-time tracing reduces online persistence work. Collection starts from registered persistent roots after application recovery, with no running mutator. [1]

Deallocation: A transactional free may need to be deferred because recovery logs can still refer to the object. Reuse must wait until those references cannot become live again. [1]

API versions: Table 1 in the paper names MAK_collect, MAK_set_free_cb and MAK_safe_free. The pinned public header instead declares MAK_collect_off, MAK_set_defer_free_fn and MAK_free_imm. These are source-version distinctions, not interchangeable names to paste into code. [1] [3]

Example: A synthetic executable three-object graph shows why collection before root recovery can reclaim a subsequently restored object. It also separates reachable storage from a correct payload; neither result is a Makalu implementation test. [4]

Relations

related
Persistent memory, Crash consistency, NV-Heaps, Mnemosyne, Write-ahead log

Advantages

  • Rebuilding auxiliary state moves some persistence cost from ordinary allocation to recovery. [1]

Limitations

  • Heap consistency does not establish application-data consistency. [2]
  • The paper uses conservative tracing, so pointer-like values can retain otherwise dead objects. [1]
  • Evaluation used DRAM-backed tmpfs and process crashes, not physical power-loss testing. [1]

Citations

  1. Bhandari, Chakrabarti and Boehm. Makalu. OOPSLA 2016, pp. 677-694; DOI 10.1145/2983990.2984019. Sections 3-4, 9-10 and 13. (accessed 2026-12-05)
  2. HewlettPackard/Atlas, makalu_alloc README at d4fd983322a4e247724aa636f380aa023b927e0b: allocator and application responsibilities. (accessed 2026-12-05)
  3. HewlettPackard/Atlas, makalu.h at d4fd983322a4e247724aa636f380aa023b927e0b: published API declarations. (accessed 2026-12-05)
  4. Hesela. Recover roots before collecting: executable synthetic counterexample, tests and provenance. (accessed 2026-12-05)
Sources & caveats
  • Full OOPSLA paper reviewed, including the recovery protocol, implementation interface and evaluation method; DOI verified against ACM metadata.
  • Public header and recovery example inspected at pinned HPE Atlas commit d4fd983322a4e247724aa636f380aa023b927e0b. Source API differs from the paper's terminology.
  • The companion is an original exact-reachability graph model, not a reproduction of Makalu, conservative pointer scanning, allocator metadata recovery or benchmark performance.

JSON: /data/terms/makalu.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Makalu. Hesela. 2026-12-05. https://hesela.dev/terms/makalu/