摘要: 使用NAND Flash作为存储媒介的存储设备常需要闪存转换层(FTL)对NAND进行管理。页映射是一种常见的映射方式,但需要很大的内存存放页映射表,在嵌入式环境下这一条件往往无法满足。针对该问题,提出一种基于超级块的混合映射FTL,包括坏块管理、地址翻译、垃圾回收、上电恢复,使用的SRAM空间不到128 KB,远小于页映射,同时不需要存储映射表,程序在固态硬盘开发板上成功运行,实现固态硬盘基本读写功能。测试结果表明,该混合映射FTL方案具有较好的顺序读写性能。
关键词:
固态硬盘,
NAND闪存,
闪存转换层,
混合映射,
超级块,
垃圾回收
Abstract: Flash Translation Layer(FTL) is always needed when NAND Flash is used in a memory device. Page level translation is the most popular, but needs a large RAM to store mapping table. This pager employs a superblock based hybrid mapping, and realizes a basic FTL on the Solid State Disk(SSD) development board. The test result shows that the hybrid FTL has good sequential read and write performance, and only needs 128 KB SRAM, which is far less than page level mapping. It also does not need to store mapping table. The program runs successfully in solid state disk development board, to achieve the basic functions of solid state disk read and write. Test results show that, the hybrid mapping FTL scheme has better sequential read and write performance.
Key words:
Solid State Disk(SSD),
NAND Flash,
Flash Translation Layer(FTL),
hybrid mapping,
superblock,
garbage collection
中图分类号:
郁志平,刘伟,彭虎,张耀辉. 一种混合映射闪存转换层的设计与实现[J]. 计算机工程.
YU Zhi-ping, LIU Wei, PENG Hu, ZHANG Yao-hui. Design and Implementation of a Hybrid Mapping Flash Translation Layer[J]. Computer Engineering.