Fuchsia作業系統中基於非揮發性記憶體行程本地緩衝的高效能檔案操作
Efficient File Operations with NVM-based Process-Local Buffering in Fuchsia Operating System
摘要
Fuchsia 是一個由谷歌新開發基於微核心的作業系統,其目標是為了打造高度彈性的軟體組態並使用在各式平台如物聯網應用之中。然而,我們發現檔案操作在 Fuchsia 作業系統中有著高度的延遲,尤其是寫入的操作,這是由於 Fuchsia 作業系統 中高成本的行程間通訊與檔案系統設計上的問題導致。在本研究中,我們提出將檔案寫入操作快取在基於非揮發性記憶體的行程本地緩衝區,並在背景執行檔案寫入操作,藉此將檔案寫入操作的延遲從 I/O 路徑上分離。我們的實驗結果顯示此方法將檔案寫入操作由原先 50 至 100 微秒的延遲降低到將近 1 微秒,當檔案寫入系統操作有效快取在本地緩衝區時,同時也將提升整體的寫入效能。
Fuchsia is a new microkernel-based operating system developed by Google. Its objective is to establish highly flexible software configurations and to be applied in various platforms such as Internet of Things(IoT) applications. However, we found that latency of file operations in Fuchsia operating system is high, especially write operations. This is caused by high Inter-Process Communication(IPC) overhead and problems in file system design. In this work, we propose caching the file write operations in a process-local buffer based on Non-Volatile Memory(NVM) and doing file write operations in background for detaching the latency of file write operations from I/O path. Our experiment result shows that our method decreases the latency of write operations from 50-100 microseconds to nearly 1 microsecond, and also improves the overall write throughput when file write operations are effectively cached in local buffer.