中国科学技术大学学报 ›› 2017, Vol. 47 ›› Issue (10): 869-877.DOI: 10.3969/j.issn.0253-2778.2017.10.010

• 论著 • 上一篇    下一篇

一种变粒度的闪存地址映射方案

樊进,谭守标,陈军宁   

  1. 安徽大学电子信息工程学院,安徽合肥 230039
  • 收稿日期:2017-01-10 修回日期:2017-05-03 出版日期:2017-10-31 发布日期:2017-10-31
  • 通讯作者: 樊进
  • 作者简介:樊进(通讯作者),男,1976年生,硕士/高级工程师.研究方向:嵌入式系统.E-mail:fanjin@ahu.edu.cn
  • 基金资助:
    国家自然科学基金(61473001,71071045,71131002);

A variable granularity-based mapping scheme

FAN Jin, TAN Shoubiao, CHEN Junning   

  1. School of Electronics and Information Engineering, Anhui University, Hefei 230039, China)
  • Received:2017-01-10 Revised:2017-05-03 Online:2017-10-31 Published:2017-10-31

摘要: 闪存转换层最重要的功能是地址映射.地址映射需要同时具备高性能和低内存占用.基于需求的页级映射方案DFTL能有效节约内存且具有页级映射方案特有的灵活性,但是这种方案中,每个缓存槽只能存储一条映射记录,当缓存大小一定时,缓存中的映射记录数量有限;此外,这种方案没有考虑到请求的空间局部性.因此这种方案中,缓存命中率较低,DFTL需要频繁访问闪存来读取映射记录,降低了系统性能.于是针对命中率低的问题,提出了一种基于需求的变粒度映射方案VGFTL.这种方案可显著提高缓存的命中率.实验表明,VGFTL缓存平均命中率达到89.85%,远高于DFTL的45.46%,块擦除次数以及平均响应时间这两项指标优于DFTL,其性能接近纯页级映射方案.

关键词: 闪存, 闪存转换层, 地址映射, 变粒度映射

Abstract: Address mapping is the most important function of flash translation layer (FTL), and it should have both high performance and low memory footprint. Although demand-based address mapping scheme(DFTL) has relatively high performance and low memory footprint, it has problems. First, it is a page-level mapping scheme. Each cache slot stores only one mapping record, and each mapping record stores only one physical page number and the corresponding logical page number, so that the cache , at a fixed size, can only store a limited number of mapping records. Second, each mapping record itself cannot exploit the spatial locality of the request. Thus, in the DFTL scheme, since the cache hit ratio is low, DFTL has to frequently access the mapping pages in the flash memory to read the mapping records, which significantly reduces the performance of the system. A new scheme named VGFTL (a mapping scheme of variable granularity-based flash translation layer) was proposed, which could significantly increase the cache hit ratio. Experimental results show that the average hit ratio of cache has reached 89.85% in VGFTL scheme, which is much higher than that of the DFTL scheme, 45.46%. VGFTL can significantly reduce the number of block erasures and system response time compared to DFTL, and is close to pure page-level mapping scheme in performance.

Key words: NAND flash, flash translation layer, address mapping, variable granularity-based mapping

中图分类号: