簡易檢索 / 詳目顯示

研究生: 許勝杰
Syu, Sheng-Jie
論文名稱: 快閃記憶體儲存管理系統之設計與實作
Design and Implementation of a Flash Storage System
指導教授: 陳 敬
Chen, Jing
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 電機工程學系
Department of Electrical Engineering
論文出版年: 2004
畢業學年度: 92
語文別: 中文
論文頁數: 54
中文關鍵詞: 快閃記憶體儲存系統嵌入式系統
外文關鍵詞: Storage System, Flash Memory, Embedded systems, Garbage Collection
相關次數: 點閱:86下載:3
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  •   快閃記憶體有著體積小、重量輕、防震、低耗電、不具揮發性、高效能等優點,相當適合作為行動式手持設備與嵌入式系統等環境之資料儲存媒體。但由於快閃記憶體無法原地更新資料的特性且區塊抹除次數有限制,以快閃記憶體為儲存媒體之檔案系統設計時必須考慮這些限制因素。本論文提出一個以註冊為基礎之冷熱資料辨識法(Register Based Hot-Cold Data Identification)與使用三個管理策略,分別為:資料放置策略(Data Placement Policy)、可用空間分配策略(Free Space Allocation Policy)與無效空間回收策略(Recycle Policy),能有效地將回收快閃記憶體無效空間時之系統負荷降低,同時也能較均衡地抹除快閃記憶體區塊,延長快閃記憶體的使用壽命。此外,本論文亦提出一主動式回收快閃記憶體無效空間之機制,模擬實驗結果顯示,與使用被動回收方法比較,此一主動回收快閃記憶體無效空間之機制的確能有效地減少讀寫動作因區塊回收動作所造成的時間延遲。

      Flash memory has the advantages of small size, lightweight, shock resistant, no mechanical delay involved, high performance and low power consumption. Thus it shows promise for being used in storage devices for consumer electronics, embedded systems and mobile computers. However, flash memory bears restrictions of data erase-before-write and limited block erased counts. Designing a filesystem for flash memory has to take into account these issues and to adopt effective solutions. In this thesis, we propose a RB (register based) hot-cold data identification method and three flash management policies to reduce the system overhead caused by operations of recycling invalid space, and to evenly use all blocks in flash memory chip. We also propose an active garbage recycling mechanism which periodically recycles invalid space in flash memory. Experiment results show that system using the active recycling approach has excellent performance over systems using passive recycling approach after handled serials of requests.

    第一章 簡 介 ............................................................................................ 1 1.1 背景知識 ............................................................................................. 1 1.2 研究動機 ............................................................................................. 4 1.3 論文組織 ............................................................................................. 5 第二章 相關研究 ...................................................................................... 6 2.1 快閃記憶體管理系統架構 ................................................................ 6 2.2 無效空間回收演算法與使區塊抹除次數平均之考量 ..................... 8 2.3 冷門資料與熱門資料辨別方法 ....................................................... 10 2.4 快閃記憶體管理系統記憶體需求考量 ........................................... 11 2.5 無效空間回收之時機與回收量大小 ............................................... 12 第三章 快閃記憶體管理系統之設計 .................................................... 13 3.1 系統架構 ........................................................................................... 13 3.2 快閃記憶體管理策略 ....................................................................... 16 3.2.1 資料放置策略 (Data Placement Policy) .......................................... 16 3.2.2 可用空間分配策略 (Free Space Allocation Policy) ........................ 17 3.2.3 無效空間回收策略 (Invalid Space Recycling Policy) .................... 18 3.2.4 熱門資料與冷門資料之鑑別 (Hot-Cold Data Identification) ........ 20 3.3 系統實作 ........................................................................................... 22 3.3.1 寫入單位管理結構 ........................................................................ 22 3.3.2 區塊管理結構 ................................................................................ 23 3.3.3 邏輯-實體位址對照表 (Address Translation Table) ...................... 24 3.3.4 快閃記憶體空間之管理與維護 .................................................... 24 3.3.4.1 使用中區塊變為無效區塊之流程 ............................................. 25 3.3.4.2 無效區塊變為可用區塊之流程 ................................................. 26 3.3.5 管理策略之使用 ............................................................................ 28 3.4 實驗結果與分析 ............................................................................... 30 3.4.1 實驗環境 ........................................................................................ 30 3.4.2 冷熱資料判別法比較 .................................................................... 32 3.4.3 回收演算法效率比較 .................................................................... 33 3.4.4 區塊抹除次數平均狀況比較 ........................................................ 35 3.4.5 記憶體需求討論 ............................................................................ 37 3.5 結論 ................................................................................................... 38 第四章 主動回收快閃記憶體無效空間機制 ........................................ 40 4.1 系統模型 ........................................................................................... 40 4.2 系統任務 ........................................................................................... 41 4.2.1 系統管理任務 (System Manager Task) .......................................... 41 4.2.2 無效空間收集任務 (Collector Task) .............................................. 44 4.2.3 區塊抹除任務 (Eraser Task) ........................................................... 45 4.2.4 讀寫處理任務 (Read/Write Handler Tasks) .................................... 45 4.3 實驗結果分析 ................................................................................... 46 4.4 結論 ................................................................................................... 49 第五章 總結與未來研究方向 ................................................................ 51 5.1 總結 ................................................................................................... 51 5.2 未來研究方向 ................................................................................... 51 參考文獻 ................................................................................................. 53

    [1] Aleph One Company, “Yet Another Flash Filing System (YAFFS),” http://www.aleph1.co.uk/

    [2] Blackwell, T. and Harris, J., and Seltzer, M., ”Heuristic Cleaning Algorithms in Log-Structured File Systems”, in Proceeding of ’95 Winter, USENIX, pp. 277-287, 1995.

    [3] Chang, L. P. and Kuo, T. W., “An adaptive striping architecture for flash memory storage systems of embedded systems,” in IEEE Real-Time and Embedded Technology and Applications Symposium, Sep. 2002.

    [4] Chang, L. P. and Kuo, T. W., ”A Real-time Garbage Collection Mechanism for Flash Memory Storage System in Embedded Systems,” in 8th International Conference on Real-Time Computing System and Applications, March 2002.

    [5] Chang, L. P. and Kuo, T. W., “An efficient management scheme for large-scale flash-memory storage systems,” in ACM Symposium on Applied Computing, March 2004.

    [6] Chiang, M. L., Lee, P. C. H., and Chang, R. C., “Managing Flash Memory in Personal Communication Devices,” in Proceedings of the 1997 International Symposium on Consumer Electronics, Dec. 1997.

    [7] Chiang, M. L., Lee, P. C. H., and Chang, R. C., “Using Data Clustering to Improve Cleaning Performance for Flash Memory,” in Software: Practice and Experience, vol.29, no.3, pp. 267-290 , March 1999.

    [8] CompactFlash Association, “Information about CompactFlash,” http://www.compactflash.org/.

    [9] Gislason, D., “Flash File Systems,” Dr. Dobb’s Journal, May 1993.

    [10] Intel Corporation, “Understanding the Flash Translation Layer(FTL) Specification,” http://www.intel.com

    [11] Kawaguchi, A., Nishioka, S., and Motoda, H., “A Flash-Memory Based File System,” in Proceedings of the 1995 USENIX Technical Conference, pp. 155-164, Jan. 1995.

    [12] Kim, H. J. and Lee, S. G., “A new flash memory management for flash storage system” in Twenty-Third Annual International Computer Software and Applications Conference, pp. 284-289, Oct. 1999.

    [13] Kim, J., Kim, J. M., Noh, S. H., Min, S. L., and Cho, Y. K. , “A space-efficient flash translation layer for CompactFlash systems,” in IEEE Transactions on Consumer Electronics, vol. 48, no. 2, pp. 366-375, May, 2002.

    [14] Marsh, B., Douglis, F., and Krishnan, P., “Flash memory file caching for mobile computers,” in Proceedings of the 27th Annual Hawaii International Conference on Systems Sciences, pp. 451-460, Jan. 1993.

    [15] MTD, “Memory Technology Device (MTD) subsystem for Linux,” http://www.linux-mtd.infradead.org

    [16] Park, C., Seo, J., Seo, D., Kim, S., and Kim, B., “Cost-Efficient Memory Architecture Design of NAND Flash Memory Embedded Systems,” 21st International Conference on Computer Design, pp.138-143, Oct. 2003.

    [17] Rosenblum, M. and Ousterhout, J. K., “The Design and Implementation of a Log-Structured File System,” in ACM Transactions on Computer Systems (TOCS), vol. 10, no. 1, pp.26-52, Feb. 1992.

    [18] Samsung Electronics, “512M×8Bit/256M×16 Bit NAND Flash Memory Datasheet,” http://www.samsungelectronics.com

    [19] Scheible, J., “A Survey of Storage Options,” IEEE Computer, vol. 35, no. 12, Dec. 2002.

    [20] Torelli, P., “The Microsoft Flash File System,” Dr. Dobb’s Journal, Feb. 1995.

    [21] Toshiba Electronics, “256-MBit (32M×8 Bits) CMOS NAND EEPROM Datasheet,” http://www.samsungelectronics.com

    [22] Woodhouse, D., “JFFS-The Journalling Flash File System,” in Ottawa Linux Symposium, July 2001.

    [23] Wu, M. and Zwaenepoel, W., “eNVy-A Non-Volatile, Main Memory Storage System,” in Proceedings of the Sixth International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 86-97, 1994.

    [24] 姜美玲, 張瑞川, “快閃記憶體儲存系統之研究與製作,” 電腦與通訊雜誌第87期, 2000.

    下載圖示 校內:立即公開
    校外:2004-07-20公開
    QR CODE