Computer Engineering and Applications ›› 2009, Vol. 45 ›› Issue (5): 71-73.DOI: 10.3778/j.issn.1002-8331.2009.05.021

• 研发、设计、测试 • Previous Articles     Next Articles

Research of middleware based on flash memory

LV Xue-fei,KANG Yi-mei   

  1. College of Software,Beihang University,Beijing 100083,China
  • Received:2008-01-15 Revised:2008-04-25 Online:2009-02-11 Published:2009-02-11
  • Contact: LV Xue-fei

Flash存储中间层技术的研究

吕雪飞,康一梅   

  1. 北京航空航天大学 软件学院,北京100083
  • 通讯作者: 吕雪飞

Abstract: Flash storage memory has some special programming characteristics.This paper presents a middleware LDS(Logical Disk System) between flash driver and applications.LDS will shield complexity of flash memory,and also balance erase time.Block mapping mechanism is the kernel of LDS.This paper introduces the management of physical block states,logical relationships,mapping table,and the garbage collection algorithm used in LDS.The paper also demonstrates the feasibility of LDS through experimental results.

Key words: flash memory, logical disk system, file system, embedded software

摘要: 针对Flash存储器特殊的硬件特性和编程特性,提出了在其底层驱动和上层应用之间增加一个中间层(Logical Disk System,LDS)。LDS屏蔽了Flash的硬件特性,间接实现了擦写平衡。LDS的核心是block映射机制。文中介绍了block映射机制的物理块状态管理、物理块逻辑关系管理、映射关系表管理、垃圾回收机制等关键技术。最后通过一个实例对LDS进行性能分析,验证了该方法在实际应用中的可行性。

关键词: Flash存储器, 逻辑磁盘系统, 文件系统, 嵌入式软件