Sa-yaffs: The Design and Implementation of a Swap-aware YAFFS Nand Flash Filesystem

Author
MaJieZuo
Advisor
LiangALei
School
Shanghai Jiaotong University
Major
Software Engineering
Classification
TP333.2 External memory ( secondary memory ) General
Degree
Master's thesis
Year
2008
Downloads
15
Citations
0

Request the full text

Abstract

Because of its low power consumption, small in size and high standard of shake ressistence, flash memory device has caught world-wide attention since it comes into existence. Nowadays with its pace into the times of giga volume, flash memory will surely be applied in the systems of more complex calculation and heavier workload. Meanwhile, these systems are all equipped with swap systems to expand their memory in order to increase the degree of parallel execution and workload at the cost of its performance to some extent. When flash is used in these systems, their swap systems are unable to setup swap area directly on flash, due to the incompatible I/O interfaces and the great gap between flash memory and traditional disk drive in addressing method.In engineering, NFTL/FTL layer is constantly used to screen the hardware incompatibility between flash memory and disk drive. NFTL/FTL layer is a kind of device translation layer. With the help of this layer, OS can use the flash memory in the same way of using traditional disk drive. OS can also build all kinds of disk filesystems such as FAT, NTFS, EXT2 and EXT3 on NFTL/FTL layer. And what’s more, swap system can setup swap area on flash memory with NFTL/FTL layer on it. Nevertheless, NFTL/FTL layer will lower filesystem performance during its processing of device translation and the problem of“fake valid chunks”will also increase I/O heavily. Therefore, FASS was proposed to solve the two problems above. FASS declare that it should drop the I/O of swap system in swap area greatly.However, FASS continues the way of static allocation of the swap area. This will limit the I/O of the swap system into a fixed physical flash area with the probability of being locally overwearing in the furture. So, in essence, static allocation of swap area is not recomended in flash memory.Based on the above thinking, we conclude that swap area on flash memory must be allocated dynamically. We integrate the support of swap system into YAFFS flash filesystem, and accomplish the task of design and implementaion SA-YAFFS, i.e. Swap-Aware YAFFS, flash filesystem.In SA-YAFFS, both filesystem and swap system have their own accessible flash memory space quota logically, but the actually physical flash space is specified on writing by the unified flash allocator. As the data of filesystem and swap system has different cycle of validation, SA-YAFFS separates filesystem blocks from swap system blocks based on the their different use when allocated. This separation is propitious to not only the enhancement of garbage collection’s performance, but saving memory as well. Considering the different kernel objects between swapped-out memory pages saved in swap system block and data in filesystem blocks, SA-YAFFS has designed a special garbage collector for swap system. In addition, SA-YAFFS read and write swap area on flash asynchronously as to raise the system throughput.Our experiments show that, in compared with the use of NFTL/FTL layer, SA-YAFFS can cut down the I/O of swap system on flash memory as a result of avoiding the problem of“fake valid chunks”. Thanks to the dynamic allocation of swap area, SA-YAFFS can maneuver all the free blocks in flash to undertake the wearing incurred by swap system. In compared with FASS, under the condition of the logically fixed swap system quota, SA-YAFFS can distribute the wearing among more physical blocks. We can reduce the wearing on blocks incurred by swap system to 1/n times, when“the remaining free space of the filesystem logical quota + swap system logical quota”rises to n times.

Table of contents

Abstract 5-7 ABSTRACT 7-14 1. introduction 14-17 1.1 Introduction 14-15 1.2 Research goals 15 1.3 research 15-16 1.4 chapters arranged 16 1.5 This chapter Summary 16-17 2. research background 17-26 2.1 flash storage device 17-19 2.2 SLC NAND Flash MLC NAND Flash 19-20 2.3 memory management 20-24 2.4 exchange system 24-25 2.5 This chapter Summary 25-26 3. research 26-45 3.1 flash file system 26-36 3.1.1.JFFS flash file system 27-29 3.1.2.YAFFS flash file system 29-30 the 3.1.3.YAFFS data structure 30-32 the 3.1.4.YAFFS spare space format 32-33 the 3.1.5.YAFFS checkpoint mechanism 33-34 3.1.6.YAFFS Tnode tree 34-36 3.1.7.YAFFS garbage collector 36 3.2 Flash exchange system 36-43 the 3.2.1.LINUX exchange system principle 37-39 3.2.2. the flash exchange system early research 39-41 3.2.3.FTL/NFTL layer flash exchange system 41-42 the 3.2.4.FASS exchange system 42 3.2.5. the flash exchange system garbage collector 42-43 3.3 This chapter Summary 43-45 4. SA-YAFFS: YAFFS file system to support the exchange system 45-67 4.1 SA-YAFFS design goals 45 4.2 SA-YAFFS design principles 45-48 4.2.1. the wear leveling dilemma 46-47 The 4.2.2.SA-YAFFS block classification 47-48 4.3 SA-YAFFS design 48-66 4.3.1.SA-YAFFS overall architecture design 48-50 4.3.2. the flash space distributor (NA) is 50-56 4.3.3. nbsp dynamic mapping table (AM); 56-58 4.3.4. the exchange system nbsp I / O the kernel daemon threads (nswapd); 58-60 4.3.5. exchange system garbage collector (SA-GC) 60-63 4.3.6. mount / uninstall exchange area 63-66 4.4 This chapter Summary 66-67 5 experiment and performance test 67-83 5.1 The purpose of the experiment 67 5.2 experimental platform to build 67-72 5.2.1 SA-YAFFS platform structures 67-70 5.2.2 NFTL is / FTL layer platform structures 70-72 5.3 SA-YAFFS use the NFTL is / FTL layer number of read and write chunk 72-76 5.3.1 to write chunk accumulated total 72-74 5.3.2 read chunk cumulative totals compare 74-75 5.3.3 Experimental results analysis 75-76 5.4 SA-YAFFS and FASS flash memory block to wear experiment 76-82 5.4.1 quantitative definition 76-77 5.4.2 quantities between 77 The the 5.4.3 FASS block number of expectations lower bound 77-78 5.4.4 FASS block number of the expectations lower bound with SA-YAFFS block number of the expectations the relatively 78-80 the descending law 5.4.5 SA-YAFFS block number of expectations 80-82 5.5 This chapter Summary 82-83 6 Summary and Outlook 83-85 the References 85-88 Acknowledgements 88-89 the pursuing degree during the academic catalog 89

Related dissertations

  1. Study on Nand Flash File System of the On-board Data Recorder
    MengJun ·Beijing Jiaotong University ·2008 ·Master's thesis
  2. Research and Implementation of Embedded File System Based on NAND Flash
  3. Research of Flash File System Based on Large Capacity NAND Flash Memory
    LvLian ·Zhejiang University of Technology ·2009 ·Master's thesis
  4. Research on Storage Management and Error Control Technology of Solid-state Disk
  5. Research of the Important Technology of Flash File System Based on Large Capacity NAND Flash Memory
    LiuLiu ·Zhejiang University of Technology ·2011 ·Master's thesis
  6. Design of fuze data acquisition system based on ARM microprocessor
  7. Design and Implementation of High-speed Mass Data Storage Systems
  8. Research and Implementation of Parallel Storage System Based on NAND Flash
    PengJun ·Hunan University ·2013 ·Master's thesis
  9. Memory Data Management Algorithm Research of Embedded System Based on NAND Flash
    XiaoZuo ·Central South University ·2013 ·Master's thesis
  10. Implementation and Optimization of Solid State Storage System via PCIe Interface
  11. Research and Design of NAND Flash Controller Based on BCH Codec
  12. Research on Key Technology for Solid State Drive Design
  13. Asymmetric Dual-Space Collectors
  14. Design and Fabrication of Missile-borne Image Recorder and Unit Test Device
    MengZuo ·University of North ·2014 ·Master's thesis
  15. The Research of Key Technology in the Dual-channel High Speed Data Recorder
    YanShuai ·University of North ·2012 ·Master's thesis
  16. The Research and Realization of Jacquard System and the Control Technology in the Computerized Hosiery Machine
    ZhuJianJiang ·Zhejiang University of Technology ·2012 ·Master's thesis
  17. Design of Imaging Sonar Data Acquisition and Storage System Based on NAND Flash
    LiuZuo ·Harbin Engineering University ·2012 ·Master's thesis
  18. Design and Implemention of Software Intermediate Layer
  19. A Research on the Sanitization Technology for Data in NAND Flash
  20. Research on Reconstructing YAFFS2Files from NAND Flash Images
    ZhuNing ·Zhejiang University ·2012 ·Master's thesis