Yanqi Pan, Zhisheng Hu, N. Zhang, Hao Hu, Wen Xia, Zhongming Jiang, Liang Shi, Shiyi Li
{"title":"HNFFS: Revisiting the NOR Flash File System","authors":"Yanqi Pan, Zhisheng Hu, N. Zhang, Hao Hu, Wen Xia, Zhongming Jiang, Liang Shi, Shiyi Li","doi":"10.1109/NVMSA56066.2022.00012","DOIUrl":null,"url":null,"abstract":"NOR flash, a type of non-volatile memory technologies, embraces its new age of IoT due to its execute-in-place (XIP) feature. Generally, there are two representative file systems designed for NOR flash: Journaling Flash File System 2 (JFFS2) and Spi Flash File System (SPIFFS). They suffer from either slow mount time, heavy foreground garbage collection (GC) overheads, poor read/write performance, or inefficient Wear- Leveling (WL), and thus they are unfriendly to IoT devices. To overcome the above limitations of existing NOR flash file systems, we propose and design a Harmony NOR Flash File System (HNFFS): (1) We introduce Erasable Sector Summary (ESS) to reduce mount time by leveraging NOR flash’s fast read capabilities. ESS deploys summary nodes to avoid scanning the whole NOR flash when mounting the system. (2) We propose Adaptive Garbage Collection (AGC), which allows the NOR flash file system to adaptively trigger GC in advance and thus reduces the heavy Foreground GC overheads. (3) We introduce Mergeable Tree (MT) to decrease the DRAM usage for indexing while improving write performance by merging the sequential small-data write. (4) We provide Random Static Wear-Leveling (RSWL) to efficiently perform WL by combining the high performance Random WL (RWL) and the reliable Static WL (SWL). Experimental results suggest that HNFFS outperforms the state-of-the-art NOR flash file systems. Moreover, the evaluation of RSWL also shows the optimal tradeoff between performance and wear evenness.","PeriodicalId":185204,"journal":{"name":"2022 IEEE 11th Non-Volatile Memory Systems and Applications Symposium (NVMSA)","volume":"101 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE 11th Non-Volatile Memory Systems and Applications Symposium (NVMSA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NVMSA56066.2022.00012","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
NOR flash, a type of non-volatile memory technologies, embraces its new age of IoT due to its execute-in-place (XIP) feature. Generally, there are two representative file systems designed for NOR flash: Journaling Flash File System 2 (JFFS2) and Spi Flash File System (SPIFFS). They suffer from either slow mount time, heavy foreground garbage collection (GC) overheads, poor read/write performance, or inefficient Wear- Leveling (WL), and thus they are unfriendly to IoT devices. To overcome the above limitations of existing NOR flash file systems, we propose and design a Harmony NOR Flash File System (HNFFS): (1) We introduce Erasable Sector Summary (ESS) to reduce mount time by leveraging NOR flash’s fast read capabilities. ESS deploys summary nodes to avoid scanning the whole NOR flash when mounting the system. (2) We propose Adaptive Garbage Collection (AGC), which allows the NOR flash file system to adaptively trigger GC in advance and thus reduces the heavy Foreground GC overheads. (3) We introduce Mergeable Tree (MT) to decrease the DRAM usage for indexing while improving write performance by merging the sequential small-data write. (4) We provide Random Static Wear-Leveling (RSWL) to efficiently perform WL by combining the high performance Random WL (RWL) and the reliable Static WL (SWL). Experimental results suggest that HNFFS outperforms the state-of-the-art NOR flash file systems. Moreover, the evaluation of RSWL also shows the optimal tradeoff between performance and wear evenness.