arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.16971cs.PL
收藏

Nofl:一种精确的Immix

Nofl: A Precise Immix

Andy Wingo

AI总结:

针对Immix收集器内存回收粒度粗导致空间浪费的问题,提出精度更高的Nofl布局,可回收对象间所有空闲空间,实验证明其在不同堆大小下性能优于传统收集器。

摘要:

内存管理器能否同时实现快速的碰撞指针分配、单遍堆追踪,以及较低的内存开销上限?Immix收集器在前两点上给出了肯定答案,但它回收内存的粒度意味着,在最坏情况下,一个微小对象就能导致两条128字节的内存行无法被重新用于分配。\n本文将Immix推向精度的极致,允许回收对象之间的所有空闲空间,直至分配器最小对齐的极限。我们提出了这种Nofl布局的设计,围绕它构建了一个收集器库,并搭建了一个新的Scheme-to-C编译器作为测试平台。我们将基于Nofl的以标记为主的收集器与标准复制式和标记-清扫收集器进行了首次评估,在一组有限的微基准测试上运行,结果发现在堆大小从紧张到充足的场景下,Nofl的性能均优于其他收集器。

英文摘要:

Can a memory manager be built with fast bump-pointer allocation, single-pass heap tracing, and a low upper bound on memory overhead? The Immix collector answered in the affirmative for the first two, but the granularity at which it reclaims memory means that in the worst case a tiny object can keep two 128-byte lines of memory from being re-used for allocation. This paper takes Immix to an extreme of precision, allowing all free space between objects to be reclaimed, down to the limit of the allocator's minimum alignment. We present the design of this Nofl layout, build a collector library around it, and build a new Scheme-to-C compiler as a workbench. We make a first evaluation of the Nofl-based mostly-marking collector when compared to standard copying and mark-sweep collectors and run against a limited set of microbenchmarks, finding that Nofl outperforms the others for tight-to-adequate heap sizes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑