用於間歇計算裝置之NAND快閃記憶體上多維資料高效索引方法
Efficient Indexing of Time-Series Data on NAND Flash for Intermittently-Computing Devices
摘要
IoT (Internet of Things) is a technology that connects tiny sensing devices to a wireless network. It is commonly applied in various fields such as healthcare, agriculture, transportation. The recent advances of embedded processing and wireless networking enable rich IoT applications. However, because these tiny devices are powered by batteries, manual battery replacement may be required with an expensive labor cost. In addition, a concern regarding the disposal of toxic battery materials also raises. In recent studies research, the concept of energy harvesting has been proposed. This involves collecting ambient energy sources such as solar power, wind energy, and geothermal energy to power these devices. This not only extends the device's lifespan but also reduces pollution and waste caused by batteries. However, natural environmental energy sources are highly unstable, which can result in power interruption. To address this issue, we need to use checkpoints to store the current device's computational progress before a power failure occurs. This allows programs to be resumed after power is restored.
Sensor devices continuously collect data, which needs to be processed for event-based queries. Therefore, using a KV-store (Key-Value store) is more desirable than using a file system. Additionally, since a single sensor device may have multiple sensors, the collected data records can be multidimensional. In this study, we advocate to combine the cheap, high-density NAND flash memory with a multidimensional index structure, i.e., a quad tree, for efficient local query processing. Specifically, our approach is designed to support checkpoint operations for quick state backup and restoration. Our approach is based on Copy-On-Write (COW) for tree structures, and we also propose using the byte-addressable FRAM to reduce page-based flash write. In addition, a global undo log design is introduced to achieve atomicity of committing a checkpoint on both the program progress and the storage state. We conducted a series of experimental results on the proposed design, and our results reveal that efficient multidimensional range queries are possible with a lightweight checkpoint mechanism.
Sensor devices continuously collect data, which needs to be processed for event-based queries. Therefore, using a KV-store (Key-Value store) is more desirable than using a file system. Additionally, since a single sensor device may have multiple sensors, the collected data records can be multidimensional. In this study, we advocate to combine the cheap, high-density NAND flash memory with a multidimensional index structure, i.e., a quad tree, for efficient local query processing. Specifically, our approach is designed to support checkpoint operations for quick state backup and restoration. Our approach is based on Copy-On-Write (COW) for tree structures, and we also propose using the byte-addressable FRAM to reduce page-based flash write. In addition, a global undo log design is introduced to achieve atomicity of committing a checkpoint on both the program progress and the storage state. We conducted a series of experimental results on the proposed design, and our results reveal that efficient multidimensional range queries are possible with a lightweight checkpoint mechanism.
物聯網(IoT,互聯網物聯網)是一種將微型感測設備連接到無線網絡的技術。它通常應用於醫療保健、農業、交通等各個領域。嵌入式處理和無線網絡的最新進展使得物聯網應用更加豐富多樣。然而,由於這些微型設備由電池供電,可能需要昂貴的人工更換電池,而且還存在有關處理有毒電池材料的擔憂。在最近的研究中,提出了能量收集的概念。這涉及收集太陽能、風能和地熱能等周圍能源來為這些設備供電。這不僅延長了設備的壽命,還減少了電池造成的污染和浪費。然而,自然環境能源非常不穩定,可能導致電源中斷。為了解決這個問題,我們需要在電源故障發生之前使用檢查點來存儲當前設備的計算進度。這允許在恢復電源後恢復程序運行。
感測器設備不斷收集數據,需要處理以進行基於事件的查詢。因此,使用KV存儲(鍵值存儲)比使用文件系統更為理想。此外,由於單個感測器設備可能具有多個傳感器,所以收集的數據記錄可以是多維的。在這項研究中,我們主張將廉價的高密度NAND快閃記憶體與多維索引結構,即四叉樹,結合起來,以實現有效的本地查詢處理。具體而言,我們的方法旨在支持快速狀態備份和還原的檢查點操作。我們的方法基於樹結構的寫時複製(Copy-On-Write,COW),並且我們還建議使用位址可訪問的FRAM以減少基於頁的快閃記憶體寫入。此外,引入了全局撤銷日誌設計,以實現在程序進度和存儲狀態上提交檢查點的原子性。我們對所提出的設計進行了一系列實驗結果,結果顯示,使用輕量級的檢查點機制可以實現高效的多維範圍查詢。
感測器設備不斷收集數據,需要處理以進行基於事件的查詢。因此,使用KV存儲(鍵值存儲)比使用文件系統更為理想。此外,由於單個感測器設備可能具有多個傳感器,所以收集的數據記錄可以是多維的。在這項研究中,我們主張將廉價的高密度NAND快閃記憶體與多維索引結構,即四叉樹,結合起來,以實現有效的本地查詢處理。具體而言,我們的方法旨在支持快速狀態備份和還原的檢查點操作。我們的方法基於樹結構的寫時複製(Copy-On-Write,COW),並且我們還建議使用位址可訪問的FRAM以減少基於頁的快閃記憶體寫入。此外,引入了全局撤銷日誌設計,以實現在程序進度和存儲狀態上提交檢查點的原子性。我們對所提出的設計進行了一系列實驗結果,結果顯示,使用輕量級的檢查點機制可以實現高效的多維範圍查詢。