• •    

信息存储技术学术会议+会议43+一种全程优化的SSD垃圾回收方法

方才华1,刘景宁1,童薇1,高阳1,雷霞1,蒋瑜2   

  1. 1. 湖北省 武汉市 华中科技大学 计算机科学与技术学院
    2. 湖北省 武汉市 华中科技大学 武汉光电国家实验室/计算机科学与技术学院
  • 收稿日期:2016-11-25 修回日期:2016-11-25 发布日期:2016-11-25
  • 通讯作者: 方才华

A Whole Process Optimized Garbage Collection for SSDs

  • Received:2016-11-25 Revised:2016-11-25 Online:2016-11-25
  • Contact: CaiHua FANG

摘要: 由于NAND闪存的固有限制,写前擦除和擦除粒度较大,基于NAND Flash的固态硬盘(Solid State Drive,SSD)需要执行垃圾回收以重用失效页。然而垃圾回收带来的高开销会显著降低SSD的性能,也会直接影响SSD的寿命。特别是对于频繁使用的有数据碎片的SSD,垃圾回收带来的性能下将问题将更为严重,现有的垃圾回收算法各自侧重垃圾回收操作的某个步骤,并没有给出全面考虑各步骤对整体影响的综合方案。针对该问题,在详细剖析垃圾回收过程的基础上,提出了一种全程优化的垃圾回收方法WPO-GC(Whole Process Optimized Garbage Collection),从数据初始放置,垃圾回收的块的选择,有效数据的迁移,触发回收的时间点以及中断处理方式上,尽可能全面地考虑各步骤对SSD正常读写请求和寿命的影响。通过开源模拟器SSDsim上的WPO-GC的有效性验证表明,同典型GC算法相比,WPO-GC可以减少SSD读请求延迟20%~40%,写请求延迟17%-40%,并均衡磨损近30%从而延长其使用寿命。

关键词: 闪存, 固态盘, 垃圾回收, 磨损均衡, 使用寿命

Abstract: Due to NAND Flash’ inherent restrictions like erase-before-write and a larger erase unit, flash-based solid-state drives (SSDs) demand garbage collection operations to reclaim invalid physical pages. However, the high overhead caused by garbage collection would significantly decrease the performance and lifetime of SSDs. Existing garbage collection (GC) algorithms only focus on some steps of the garbage collection operation, and none of them provides a comprehensive solution that takes into consideration all the steps of the GC process. On the basis of detailed analysis of the GC process, our paper present WPO-GC, a whole process optimized garbage collection algorithm, which integrates optimizations on each step of the GC in order to reduce the negative impact on normal read/write requests and SSDs’ lifetime in maximum extent. Moreover, we implement the WPO-GC on SSDsim which is an open source SSD simulator to evaluate its efficiency. The experimental results show that the proposed algorithm can decreases read I/O response time by 20%-40% and write I/O response time by 17%-40% respectively, and balance wear nearly 30% to extend the lifetime, compared with the related work.

Key words: flash memory, solid state disk, garbage collection, wear-leveling, lifetime