arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.17119cs.PLcs.SE
收藏

重新审视定制内存分配

Reconsidering "Reconsidering Custom Memory Allocation"

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Amazon Web Services(亚马逊云服务)

Nicolas van Kempen, Emery D. Berger

AI总结:

该研究重新评估了25年前Berger等人关于定制内存分配的论文,通过现代硬件平台和通用内存分配器评估其结论是否仍然成立,并引入了新的方法来探讨内存碎片化对通用内存分配器局部性的影响。

摘要:

使用C、C++或Rust等原生语言的程序员可以实现自定义内存分配策略以提高执行时间。在25年前发表的题为“重新审视定制内存分配”的论文中,Berger等人表明,虽然按类分配器在性能上无法显著超越最先进的通用分配器,但基于区域的分配器可以通过批量分配和释放对象来提高执行时间。本文重新审视了该工作,以现代硬件平台和通用分配器为背景,评估其结论是否仍然成立。此外,本文还增加了两个大型真实世界应用(Clang和Blender)到基准测试套件中,并引入了一种方法来探讨内存碎片化对通用分配器局部性的影响。我们的结果支持并扩展了原始结论,证明了基于区域的自定义内存分配器在局部性方面的优势。

英文摘要:

Programmers using native languages such as C, C++, or Rust can implement custom memory allocation strategies to improve execution time. In their paper titled "Reconsidering Custom Memory Allocation" almost 25 years ago, Berger et al. showed that while per-class allocators provide no significant speedups over a state-of-the-art general-purpose allocator, region-based allocators can improve execution time by allocating and freeing objects in bulk. This paper revisits that work on a modern hardware platform with modern general-purpose allocators to evaluate whether their conclusions still hold. It also augments the benchmark suite with two large real-world applications (Clang and Blender), and introduces a methodology to explore the effect of memory fragmentation on locality in general-purpose allocators. Our results support and extend the original conclusions, demonstrating the locality advantages of region-based custom memory allocators.

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

↑