arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.16883cs.PL
收藏

垃圾回收虚拟机中的低开销分配采样

Low Overhead Allocation Sampling in a Garbage Collected Virtual Machine

Christoph Jung, C. F. Bolz-Tereick

AI总结:

本文提出一种深度集成于PyPy垃圾回收器的采样分配性能分析器,实现可调低开销,采样周期4 MB时最大时间开销25%。

摘要:

与更常用的基于时间的性能分析相比,分配性能分析为分配密集型动态类型语言的执行提供了另一种视角。然而,对程序中每一次分配进行性能分析是非常低效的。我们提出了一种采样分配性能分析器,它深度集成在PyPy(一个Python虚拟机)的垃圾回收器中。这种集成确保了分配性能分析器具有可调的低开销,我们对此进行了测量和量化。在我们的基准测试中,启用采样周期为4 MB的分配采样性能分析,相对于未进行性能分析的常规执行,最大时间开销为25%。

英文摘要:

Compared to the more commonly used time-based profiling, allocation profiling provides an alternate view of the execution of allocation heavy dynamically typed languages. However, profiling every single allocation in a program is very inefficient. We present a sampling allocation profiler that is deeply integrated into the garbage collector of PyPy, a Python virtual machine. This integration ensures tunable low overhead for the allocation profiler, which we measure and quantify. Enabling allocation sampling profiling with a sampling period of 4 MB leads to a maximum time overhead of 25% in our benchmarks, over un-profiled regular execution.

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

↑