arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.01250cs.DBcs.AIcs.LG
收藏

DumpKV:面向LSM-tree键值分离的基于学习的生命周期感知垃圾回收

DumpKV: Learning based lifetime aware garbage collection for key value separation in LSM-tree

Microsoft(微软);Sun Yat-sen University(中山大学);Chongqing University(重庆大学)

Zhutao Zhuang, Xinqi Zeng, Zhiguang Chen

AI总结:

本文提出DumpKV,一种基于学习的生命周期感知垃圾回收方法,通过动态调整和轻量级模型预测键的生命周期,在LSM-tree键值分离中实现高效垃圾回收,显著降低写放大达38%-73%。

摘要:

LSM-tree中使用键值分离将大值存储在单独的日志文件中以减少写放大,但需要垃圾回收来清理无效值。LSM-tree中现有的垃圾回收技术通常采用基于静态参数的垃圾回收来清理过期值,这难以实现低写放大,且为垃圾回收触发寻找合适参数具有挑战性。在本工作中,我们引入了DumpKV,它引入了基于学习的生命周期感知垃圾回收,通过动态生命周期调整进行高效垃圾回收以实现更低的写放大。DumpKV利用基于键的过去写访问信息训练的轻量级模型管理大值,该模型具有适合各种应用的特征,为每个单独的键提供生命周期预测以实现高效垃圾回收。为减少对写吞吐量的干扰,DumpKV利用KV分离下LSM-tree较小的特性,在L0-L1压缩期间进行特征收集。实验结果表明,与现有的键值分离垃圾回收LSM-tree存储相比,DumpKV实现了降低38%-73%的写放大,且特征存储开销小。

英文摘要:

Key\-value separation is used in LSM\-tree to stored large value in separate log files to reduce write amplification, but requires garbage collection to garbage collect invalid values. Existing garbage collection techniques in LSM\-tree typically adopt static parameter based garbage collection to garbage collect obsolete values which struggles to achieve low write amplification and it's challenging to find proper parameter for garbage collection triggering. In this work we introduce DumpKV, which introduces learning based lifetime aware garbage collection with dynamic lifetime adjustment to do efficient garbage collection to achieve lower write amplification. DumpKV manages large values using trained lightweight model with features suitable for various application based on past write access information of keys to give lifetime prediction for each individual key to enable efficient garbage collection. To reduce interference to write throughput DumpKV conducts feature collection during L0\-L1 compaction leveraging the fact that LSM\-tree is small under KV separation. Experimental results show that DumpKV achieves lower write amplification by 38\%\-73\% compared to existing key\-value separation garbage collection LSM\-tree stores with small feature storage overhead.

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

↑