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

分布式数据处理系统中基于生命周期的存储管理

Lifetime-Based Memory Management for Distributed Data Processing Systems

Lu Lu, Xuanhua Shi, Yongluan Zhou, Xiong Zhang, Hai Jin, Cheng Pei, Ligang He, Yuanzhen Geng

摘要:

中间数据的内存缓存和洗牌缓冲区中数据的急切组合已被证明在最大限度地减少Spark和Flink等分布式数据处理系统中的重新计算和I/O成本方面非常有效。然而,也有广泛报道称,这些技术会在堆中创建大量的长期数据对象,这可能会使垃圾收集器迅速饱和,特别是在处理大型数据集时,因此会限制系统的可伸缩性。为了解决这一问题,提出了一种基于生命周期的存储管理框架,该框架通过自动分析用户定义的函数和数据类型,获得数据对象的预期生命周期,然后相应地分配和释放存储空间,以最小化垃圾回收开销。特别是,我们提出了Deca,这是我们在Spark之上的建议的具体实现,它透明地将具有相似生命周期的对象分解和分组到字节数组中,并在它们的生命周期结束时完全释放它们的空间。一项使用合成数据集和真实数据集的广泛实验研究表明,与Spark相比,Deca能够1)将垃圾回收时间减少高达99.9%,2)在没有数据溢出的情况下,执行时间加速高达22.7倍,在有数据溢出的情况下加速41.6倍,3)消耗的内存减少高达46.6%。

英文摘要:

In-memory caching of intermediate data and eager combining of data in shuffle buffers have been shown to be very effective in minimizing the re-computation and I/O cost in distributed data processing systems like Spark and Flink. However, it has also been widely reported that these techniques would create a large amount of long-living data objects in the heap, which may quickly saturate the garbage collector, especially when handling a large dataset, and hence would limit the scalability of the system. To eliminate this problem, we propose a lifetime-based memory management framework, which, by automatically analyzing the user-defined functions and data types, obtains the expected lifetime of the data objects, and then allocates and releases memory space accordingly to minimize the garbage collection overhead. In particular, we present Deca, a concrete implementation of our proposal on top of Spark, which transparently decomposes and groups objects with similar lifetimes into byte arrays and releases their space altogether when their lifetimes come to an end. An extensive experimental study using both synthetic and real datasets shows that, in comparing to Spark, Deca is able to 1) reduce the garbage collection time by up to 99.9%, 2) to achieve up to 22.7x speed up in terms of execution time in cases without data spilling and 41.6x speedup in cases with data spilling, and 3) to consume up to 46.6% less memory.

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

↑