Research on NAND File System

Author
PengFuShi
Advisor
CaiYong
School
Jiangnan University
Major
Applied Computer Technology
Classification
TP316 Operating system
Degree
Master's thesis
Year
2008
Downloads
301
Citations
1

Request the full text

Abstract

NAND flash is widely used in mobile phones, portable music players, digital cameras, and more embedded system, provide these devices with low cost and reliable storage capabilities. NAND flash technology is driven mostly by desire of increased capacity and performance. The new type MLC NAND provide high density, so chip cost lower than the old type SLC NAND.NAND suffers from two limitations: bits can only be cleared by erasing block, each block endure a limited number of erase cycles, usually between 10000 and 100000,beyond that the block cannot store data reliably; due to the reliability issues, ECC is used to identify and correct errors during the operations. For SLC NAND, the most uesd ECC algorithm can detect and correct single bit errors, however MLC error rates increase, need to perform multiple bit correction.The sophisticated data structures and algorithms are needed to use NAND stroage system. There are two approaches to address NAND specific restrictions: one is to use traditional disk file system and Flash Translation Layer, like FAT+NFTL; second more effective approach is to use a flash file system on the raw flash, like JFFS2, YAFFS.This paper research the special designed for NAND file system YAFFS, from the view point of data structure, mount speed, wear-levelling and garbage collection. Porting YAFFS to demo board, evaluate YAFFS2 and its old version YAFFS1 performance.As the NAND capacity is increasing rapidly, flash file system mount speed is more important than ever. There is no fixed area to store file system index info, metadata is distributed to NAND page, so the mount process of YAFFS1 need to scan all flash page, suffers from long time, a snapshot methord is used in YAFFS2, short the time much, but after the power fail this methord is useless, also need to scan, and file system maybe in a inconsistent state.A log record methord is used to slove this problem in this paper, and a methord is designed to detect power fail. The log record is used to trace the file system changement, combine with the snapshot methord, after power fail only need to scan the flash page which store log record, considering the wear-levelling problem the log record is not stored in fixed area. The experiment shown that, this methord mount time is faster than old scan methord, and keep the file system reliable.

Table of contents

Abstract 3-4 Abstract 4-7 Chapter Introduction 7-10 1.1 Background 7-8 1.2 research 8-9 1.3 article arrangements 9-10 Chapter NAND flash technology overview 10-15 2.1 flash storage principle and classification 10-12 2.2 NAND flash memory classification and technical characteristics 12-13 2.3 NAND flash memory using the issue to the attention of 13-14 2.4 Summary 14-15 Chapter NAND file system overview 15-20 3.1 NAND file system to solve the problem 15 3.2 Flash Translation Layer FTL technology 15-16 3.3 journaled file system technology background 16-17 3.4 Linux journaling file systems under flash 17-19 3.5 Summary 19-20 Chapter YAFFS NAND file system analysis 20-36 4.1 YAFFS data storage design 20-25 4.1.1 YAFFS NAND data storage format in . 20-22 4.1.2 YAFFS memory data structures 22-25 4.2 file indexing structure Tnode tree 25-26 4.3 file operations 26-28 4.4 YAFFS interface functions 28-31 4.5 Loss balance policy and garbage collection algorithms 31-32 4.6 ECC algorithms and OOB area used 32-34 4.7 Several factors affect the performance of YAFFS 34-35 4.8 Chapter Summary 35-36 chapter after power YAFFS2 fast loading and data recovery to achieve 36-46 5.1 YAFFS1 and YAFFS2 loading 36-37 5.2 YAFFS brownout situation after 37-38 5.3 down quickly after loading method 38 5.4 header block down the identification and design of 38-39 5.5 Logging and submit the timing 39-41 5.6 flash block classification 41-42 5.7 of spatial use of information and data protection processing 42-43 5.8 rollback logging merger 43-44 5.9 system state recovery process 44-45 5.10 Summary 45-46 Chapter VI Performance Test 46-60 6.1 experimental platform hardware description 46-47 6.2 experimental platform software environment transplant 47-53 6.2.1 YAFFS file system mirroring the production principle 48-49 6.2.2 vivi transplant 49-51 6.2.3 kernel and YAFFS migration process 51-53 6.3 YAFFS performance measurement and simulation -down approach 53-54 6.4 YAFFS loading performance 54-56 6.5 to read and write performance and loss of balance measurement 56-57 6.6 this method after power load and data protection performance 57-59 6.7 Chapter Summary 59-60 Chapter Summary and Outlook 60-61 Thanks 61-62 References 62-64 Appendix : The authors of papers published during the master's degree 64-65 Appendix : loading after power realization 65-78

Related dissertations

  1. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  2. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  3. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  4. Video Surveillance System Based on Embedded Technology Research
  5. Design of Video Monitoring System Based on the Embedded
  6. The Design of Embedded Network Video Surveillance System Based on ARM9
  7. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  8. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis
  9. Data Acquisition System of Cavern Based on Embedded Web Server
  10. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  11. Research on the Indoor Air Monitoring System Based on Embedded Linux
  12. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  13. Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
  14. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  15. The Research of the Design and Application for Embedded Remote Terminal Unit
    XiaRui ·Northeastern University ·2013 ·Master's thesis
  16. Design and Implementation of Magnetic Card Detection System Based on Embedded System
  17. Design of distributed control system based on embedded platform
    JieZhouKai ·Xi'an Optics and Fine Mechanics ·2010 ·Master's thesis
  18. Design and Implementation of Car Embedded Systems to Multimedia Intelligent Terminal
    LiShun ·Northeastern University ·2012 ·Master's thesis
  19. The Research of CANopen Protocol Based on Embedded Systems
  20. The Research and Design of Smart Home System Based on Zigbee Technology
    ZhangZhiDong ·Liaoning Normal University ·2013 ·Master's thesis