硬碟一直在電腦產品中發揮著不可或缺的作用,但是在大數據時代,資料量急劇增加,預計將繼續以倍增速度成長,這迫使硬碟供應商面臨傳統硬碟容量不足以儲存客戶產生的大量資料的事實。然而,目前在硬碟上使用的垂直式磁記錄技術即將達到其儲存密度限制。因此,業界引入了一種新技術的疊瓦式磁記錄硬碟來解決容量限制問題,並且是最受矚目的新硬碟技術之一。 疊瓦式磁記錄(SMR)硬碟比傳統硬碟具有更大的儲存容量。透過使用重疊磁軌來增加磁記錄密度,從而增加硬碟容量。而且,SMR硬碟採用傳統硬碟中的磁頭,其特徵在於傳統硬碟讀寫磁頭所需的磁場強度小於寫入磁頭所需磁場的磁場強度。因此,製造SMR硬碟時,製造商不必增加開發新磁頭的成本,使得疊瓦式磁記錄硬碟有可能成為未來資訊時代的主要儲存介質。 然而疊瓦式硬碟的缺點是,有隨機寫入的限制存在。因此,如何克服SMR硬碟的寫入限制及其後續問題將成為本文研究的重點。在本文中,我們提出了一種基於EXT4以支援疊瓦式磁記錄硬碟的檔案系統,以解決疊瓦式硬碟引入的寫入放大問題。EXT4是一常見的檔案系統,並且能夠配合硬碟來分配資料的寫入及其他配置。但傳統的EXT4檔案系統的運作方式並沒有針對疊瓦式硬碟做相關的優化處理,若是將疊瓦式硬碟當作儲存媒介使用,勢必需對現有的檔案系統進行修改或調整,以因應新形態硬碟。因此,我們在本文中提出三種機制來降低隨機寫操作的所造成的寫入成本。 透過本論文的方法機制,為疊瓦式磁記錄硬碟的寫入限制提供了一種合適的寫入方法。 首先,我們將不同的資料分為熱數據和冷數據,用於判斷資料的更新頻率,並且藉由本文提出的檔案系統來決定寫入的資料要安排寫入至硬碟的哪個儲存位置。其次,檔案更新的部分,針對不同資料的儲存類型,將分別透過兩種不同的寫入方式:原地寫入(in-place)和非原地寫入(out-of-place)來做資料的更新,藉此以降低硬碟的寫入放大和讀/寫速度。最後,空間重組可以回收舊有空間,並允許連續寫入後續資料,且會定期檢查儲存資料的屬性,以最大限度地利用硬碟的容量。 藉由本論文的實驗,可以發現本文提出的檔案系統與方法機制,能夠改善SMR硬碟的隨機寫入的寫入放大問題,並有效的提升疊瓦式磁記錄硬碟的性能。
Hard drives have always played an indispensable role in computer products, but in the era of big data, the amount of data has increased dramatically and is expected to continue to grow at an alarming rate, which forced the hard disk vendor to face the fact that capacity of traditional hard disks is insufficient to store such large amount of data. However, the Perpendicular Magnetic Recording technology currently used on hard disks is about to reach its storage density limit. Therefore, a new technology Shingled Magnetic Recording (SMR) disk is introduced to address capacity constraints and is one of the most promising new hard disk technologies. A SMR hard disk has a larger storage capacity than a conventional hard disk and increases the magnetic recording density by overlapping magnetic tracks. Moreover, the SMR hard disk uses a conventional hard disk read/write head therefore, the manufacturers do not have to increase the cost of developing new magnetic heads, making it possible to use shingled magnetic recording hard disks as the main storage medium for the information age in the future. However, the disadvantage of the SMR hard disk is that there are restrictions on random writing. Therefore, how to overcome the write limit of SMR hard disk and its follow-up problems is the main purpose of this thesis. In this thesis, we propose a file system based on EXT4 to support the SMR hard disk to reduce the write amplification problem introduced by the SMR hard disk. EXT4 is a common file system but is not optimized for SMR disk. If the SMR disk is used as a storage medium, it is necessary to modify or adjust the existing file system to respond new form of hard drive. Therefore, we propose three mechanisms to reduce the write amplification. First, we divide the data into hot data and cold data, which are used to judge the update frequency of the data. Second, use two different writing methods: in-place update and out-of-place update for updating different types of data, i.e., cold data and hot data. Finally, use spatial reorganization method to reclaim unused space and allow subsequent data to be written continuously. In addition, the attributes of the stored data will be check periodically to adjust the updating method of stored data. The simulation results show that the proposed method can reduce the write amplification of random write and effectively improve the performance of SMR disk.