簡易檢索 / 詳目顯示

研究生: 林長志
Lin, Chang-Zh
論文名稱: Compact-Flash Card之高效能FAT檔案系統之實作
Implementation of High-Performance FAT- File System for Compact-Flash
指導教授: 陳 敬
Chen, Jing
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 電腦與通信工程研究所
Institute of Computer & Communication Engineering
論文出版年: 2005
畢業學年度: 93
語文別: 中文
論文頁數: 42
中文關鍵詞: 效能檔案系統
外文關鍵詞: performance, file system
相關次數: 點閱:73下載:4
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  •   Compact-Flash有著體積小、重量輕、防震、低耗電、不具揮發性等優點,相當適合做為嵌入式系統環境的資料儲存媒體。如今Compact-Flash已經在嵌入式多媒體應用上已獲得廣泛的使用,然而大多數的Compact-Flash都是使用FAT file system (FATfs),FATfs有著簡單、容易實做、支援度廣的優點,但是卻有著效能上的問題。對於多媒體應用來說,存取效能卻是最重要的課題。所以本論文的目標就是實作高效能的FAT檔案系統,我們朝向三個方面進行,分別是:分離式快取、有效利用Compact-Flash忙碌等待時間(busy waiting time)、以及直接大量存取與減少處理器負擔。
      我們將快取區分為三種快取:Data Cache,FAT Cache,FDE Cache。檔案系統可透過Data Cache存取ㄧ般資料、透過FAT Cache存取檔案分配表(File Allocation Table)、透過FDE Cache存取FAT目錄結構(FAT Directory Structure)。我們利用CF忙碌等待時間計算下ㄧ個叢集號碼與補充可用空間,並將記憶體複製的動作延遲到下一次的CF忙碌等待時間執行。當大量存取時,我們使用處理器直接存取CF而不透過快取存取,我們並減少除法運算以降低處理器的負擔。
      測試結果顯示,在讀取時,利用CF忙碌等待時間的確能有效減少反應時間,但寫入時卻不行。另外,我們的系統在反應時間上有不錯的表現,且也有較低的CF讀寫次數。

      Compact-Flash has the advantages of small size, lightweight, shock resistant, low power consumption, and nonvolatile, thus, it shows promise for being used in storage device for embedded systems. Nowadays, Compact-Flash has been used widely in embedded multimedia applications. However, most file systems on Compact-Flash are FAT file system(FATfs), FATfs is simple, easy to implement, and widely-used, but it’s performance is poor. Performance is the most important issue for multimedia applications. So, the goal of this thesis is to implement a high performance FAT file system, we focus on three directions: 1.separate cache, 2.exploiting Compact-Flash busy waiting time, 3.direct access for burst read/write and reduce CPU loading.
      We separate cache into three caches: Data Cache, FAT Cache, FDE Cache. File system can access ordinary data through Data Cache, access File Allocation Table through FAT table, and access FAT Directory Structure through FDE Cache. We use CF busy waiting time to prefetch next cluster number and replenish free clusters, and delay the execution of memory copy to the next CF busy waiting time. When large amount of access, we use CPU to access CF directly instead of accessing through cache, and we also reduce division operation to reduce CPU loading.
      Experiment result show that exploiting CF busy waiting time can reduce response time in read operation but fail in write operation. And our system has good result in response time test, and has lower CF read/write times.

    第一章 簡 介...............................1   1.1 背景知識............................1    1.1.1 FAT檔案系統.....................1    1.1.2 Compact-Flash...................2    1.1.3 緩衝快取........................3   1.2 研究動機............................4   1.3 論文組織............................4 第二章 相關研究.............................5   2.1 LRU與LRU-K快取......................5   2.2 LFU與FBR快取........................5   2.3 2Q快取..............................6   2.4 LRFU快取............................8   2.5 LIRS快取............................9 第三章 系統設計與實作......................10   3.1 系統設計...........................10    3.1.1 系統架構.......................10    3.1.2 檔案系統伺服器定義之訊息.......11   3.2 檔案系統伺服器.....................13    3.2.1 驅動程式註冊...................13    3.2.2 檔案表.........................14    3.2.3 訊息運作流程...................15   3.3 Compact-Flash驅動程式..............17    3.3.1 操作FAT檔案系統................17    3.3.2 LRU緩衝快取....................19    3.3.3 可用空間管理...................21   3.4 增進效能...........................23    3.4.1 分離式快取.....................23    3.4.2 有效利用忙碌等待時間...........24    3.4.3 直接大量讀寫與減少處理器負擔...27   3.5 實作之應用程式介面(API)............31 第四章 效能分析............................33   4.1 單一檔案讀寫測試...................33   4.2 連續讀寫測試.......................37   4.3 討論...............................40 第五章 總結與未來研究方向..................41   5.1 總結...............................41   5.2 未來研究方向.......................41 參考文獻....................................42

    [1] Jesung Kim, Jong Min Kim, Sam H. Noh, Sang Lyul Min and Yookun Cho, “A Space Efficient Flash Translation Layer for CompactFlash System”, IEEE Transaction on Consumer Electronics, May 2002.

    [2] Li-Pin Chang, Tei-Wei Kuo, “An Adaptive Striping Architecture for Flash Memory Storage Systems of Embedded system”, IEEE Real-Time and Embedded Technology and Application Symposium, Sep. 2002.

    [3] B. Marsh, F. Douglis, and P. Krishnan, “Flash Memory File Caching for Mobile Computers”, IEEE Proceedings of the 27th Hawaii Conference on Systems Science, Jan. 1994.

    [4] Microsoft Corporation, ”FAT:General Overview of On-Disk Format”.

    [5] CompactFlash Association, ”Information about CompactFlash”.

    [6] 許勝杰, “快閃記憶體純存管理系統之設計與實作”,國立成功大學碩士論文,民國93年.

    [7] John R. Duceu and William J.Bolosky, “A Large-Scale Study of File- System Content”, ACM, 1999.

    [8] John Ousterhout, Fred Douglis, “Beating the I/O Bottleneck: A Case for Log-Structured File System”, 1988.

    [9] E. J. O’Neil, P. E. O’Neil, G. Weikum, “The LRU-K Page Replacement Algorithm for Database Disk Buffering”, ACM, 1993.

    [10] John T. Robison, Murthy V. Devararkonda, “Data Cache Using Frequency-Based Replacement”, ACM, 1990.

    [11] Theodore Johnson, Dennis Shasha, “2Q: A Low Overhead High Performance Buffer Management Replacement Algorithm”, Proceeding of the 20th VLDB Conference, 1994.

    [12] Donghee Lee et al., “On the Existence of a Spectrum of Policies that Subsumes the Least Recently Used (LRU) and Least Frequently Used (LFU) Policies”, ACM, 1999.

    [13] Song Jiang, Xiaodong Zhang, “LIRS: An Efficient Low Inter-reference Rencency Set Replacement Policy to Improve Buffer Cache Performance”, Proceeding of the ACM SIGMETRICS Conference, 2002.

    [14] Baik-Song Ahn, Sung-Hoon Sohn et al., “Implementation and Evalution of EXT3NS Multimedia File System”, ACM, Oct, 2004.

    下載圖示 校內:2006-09-07公開
    校外:2006-09-07公開
    QR CODE