Design and Implementation for Sfs-High Performance File System for Storing Small Files

Author
DingKai
Advisor
LiXiaoYong
School
Shanghai Jiaotong University
Major
Computer Science and Technology
Classification
TP333 Memory
Degree
Master's thesis
Year
2013
Downloads
57
Citations
0

Request the full text

Abstract

For a long time, the performance of other computer components such as CPU,main memory, etc is improving quickly, while the performance of hard disk drives,due to the limit of the intrinsic mechanical movement, has little improvement,therefore becoming the bottleneck of the system performance. In some certaincircumstances, the web application environment for example, there are large quantitiesof small files (KB level) storing in web servers (10million to100million), which isstill a problem for existing file systems to handle. How to effectively manage the smallfiles in web servers in order to improve the I/O performance of small files has been aresearch hotspot both in the academic circle and industry.This thesis thoroughly analyzes the optimization of storing small files, designsand implements a file system named Sfs to adapt the application environment of smallfiles. The main work includes the following:1. Conclude the IT development trend and present the urgent demands and criticalchallenges in the current network and cloud storage age.2. Analyze the main structure and part of the implementation details, especiallythe performance optimization strategies for small files. In this thesis, not onlythe kernel supported local file systems such as ext2, ext3, xfs, reiserfs, etc. areanalyzed, but also some storage plan designed by well-known networkcompanies and open-source project groups for their service features, forexample, the Facebook’s Haystack, Taobao’s Tfs, and so on.3. Elaborate on the server file system Sfs designed for the small file applicationenvironment. To the disk layout, Sfs discards the method of dividing the diskpartitions with fixed size, and applies the strategy of dividing the stripes withdynamic chunks, to meet the storage needs of adapting the files in varioussizes. Simplify the file metadata, which not only reduces the I/O interactive times, but also saves memory to accommodate more file metadata. To the filesystem interface design, Sfs provides simple but effective API, whichimporves the processing efficiency of the file system. At the same time, Sfsdevises the small object memory pool to improve the file system processingefficiency.4. Devise the file system benchmarks, which are used in testing the file systemI/O throughput and IOPS, to demonstrate the effectiveness of Sfs whenapplied in small file application environments.The test results show that, with rational design and simplified inmplementation,Sfs has better I/O throughput performance and higher IOPS when dealing withsmall files.

Table of contents

Summary 5-7 ABSTRACT 7-9 directory 9-12 LIST 12-14 Table directory 14-15 first chapter 15-19 1.1 background 15-16 1.2 Research Status 16 - 17 1.3 research and innovation 17 1.4 Summary 17-19 Chapter Two key technology research file system 19-50 <br / > 2.1 HDD 19-24 2.1.1 Overview 19-20 2.1.2 mechanical hard drives 20-22 2.1.3 SSDs 22-24 2.2 VFS 24-27 2.2.1 file system type structure 25 2.2.2 superblock structure 25-26 2.2.3 inode structure 26 2.2.4 file directory entry structure 26-27 2.3 FFS 27 - 28 2.4 C-FFS 28-29 2.5 Ext2 29-31 2.5.1 Ext2 disk layout 29 2.5. 2 Ext2 inode organization 29-30 2.5.3 Ext2 file data block allocation 30-31 2.5.4 Ext2 file directory entries organizations 31 2.6 Ext3 31-34 2.6.1 Ext3 inode organization 31-32 2.6.2 Ext3 file data block allocation 32-33 2.6.3 Ext3 file directory entries organizations 33-34 2.7 Reiserfs 34-38 2.7.1 Reiserfs disk layout 35 2.7 .2 Reiserfs metadata organization 35-37 2.7.3 Reiserfs data block allocation 37-38 2.8 Xfs 38-42 2.8. 1 Xfs disk layout 38-39 2.8.2 Xfs free space management 39-40 2.8.3 Xfs metadata management 40-42 <br / > 2.9 Coss 42-45 2.9.1 Coss storage structure 43-45 2.10 HayStack 45-46 2.10.1 HayStack storage structure 45-46 2.11 Tfs 46-49 2.11.1 Tfs overall structure 47-48 2.11.2 Tfs small files stored 48-49 2.12 Summary 49-50 Chapter Sfs design and implementation 50-69 3.1 Sfs disk layout 51 -52 3.2 Sfs metadata design 52-55 3.2.1 superblock 53-54 3.2.2 volume Descriptor 54 - 55 3.2.3 file directory entries 55 3.3 file system interface 55-61 3.3.1 mount 55-56 3.3.2 get 56-57 3.3.3 put 57-58 3.3.4 delete 58-59 3.3.5 lookup 59-60 3.3.6 umount 60-61 3.4 file system cache 61-64 3.4.1 file system cache structure 61-63 3.4.2 directory entry cache memory file 63-64 3.5 refresh thread 64-65 3.6 object memory pool 65 -68 3.6.1 object memory pool structure 65-67 3.6.2 object memory pool allocation 67 3.6.3 release memory pool object 67-68 3.7 Summary 68-69 Chapter IV performance test 69-77 4.1 testing purposes 69 4.2 Test environment 69-70 4.3 test Method 70-72 4.3.1 disk I / O performance test 70 4.3.2 file system I / O performance test 70-71 4.3.3 file System IOPS test 71-72 4.4 test results and analysis 72-77 <br / > 4.4.1 disk I / O performance test 72-73 4.4.2 file system I / O performance test 73-75 4.4.3 file System IOPS test 75-77 Chapter summary and Outlook 77-78 5.1 This article summarizes 77 5.2 Prospect 77-78 References 78-80 Thanks 80-81 master's degree during the accepted papers have been published or 81-82 attachments 82

Related dissertations

  1. Linux operating system on the ARM hardware platform transplantation
  2. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  3. Research and Design of Embedded Building Security System
    YangChen ·Liaoning Normal University ·2012 ·Master's thesis
  4. The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
  5. The Research of Household Remote Monitoring Based on Embedded Web Server
  6. Research and Design of Intelligent Video Surveillance System Based on ARM
  7. Design of Video Monitoring System Based on the Embedded
  8. The Design of Embedded Network Video Surveillance System Based on ARM9
  9. Design and Application of the Distributed Monitoring System Based on Embedded Web
  10. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  11. Embedded Software Design of AC Field Detection Instrument Based on ARM
  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. Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
  14. Design of Industrial Ethernet Motion Controller Based on ARM
  15. Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
    FuAiJun ·Nanchang University of Aeronautics and ·2013 ·Master's thesis
  16. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis
  17. The System Design and Implementation of Smart Home Control Terminal Based on Linux
  18. Movement Gait Control Research of Six Feet Bionic Robot
    XuShuai ·Ningxia University ·2013 ·Master's thesis
  19. Research on Embedded Control System for Palletizing Robot
    YangYang ·Nanjing Forestry University ·2013 ·Master's thesis
  20. Control system design of robot based on ARM
    OuYangJianFei ·Jiangxi University of Technology ·2013 ·Master's thesis