以學習幫助行動儲存之寫入延遲最佳化
Learning-Assisted Write Latency Optimization for Mobile Storage
摘要
手機漸漸地成為現代生活人們不可或缺的行動裝置,而手機的資料儲存也會影響到手機的性能。由於手機大部分的I/O是屬於同步性質,所以於快閃記憶體若是有垃圾回收(Garbage Collection)的發生則會導致額外的寫入延遲以至於嚴重影響使用者的即時性需求。另外一方面手機運行時產生的寫入量的多寡與眾多因素有關,例如網路環境、GPS的座標、時段。因此我們提出藉由XGBoost之學習方法來預測未來的寫入量,並利用預測值來設計一個在背景執行且以速率為基礎的垃圾回收機制去減少寫入的延遲,而且不會過多且過早的快閃記憶體的擦除。我們的方法對於on-demand的垃圾回收機制成功地降低了56\%的第99.99百分位寫入延遲;對於一進入閒置狀態就積極回收的垃圾回收機制減少了51\%的記憶體擦除次數。
I/O activities of mobile storage are highly synchronous. Flash garbage collection activities in mobile storage introduce extra delay to write requests and negatively impact on user perceived-latency. Runtime write demand is subject to correlation between multiple parameters, such as network connectivity, GPS coordinates, and current time. We propose predicting write demand with a learning algorithm, XGBoost, and conducting background, rate-based garbage collection to optimize write latency without premature, excessive flash erasure. Our method reduced the 99.99-th percentile write latency by 56\% compared to on-demand garbage collection and decreased flash erase count by 51\% compared to unconditional background garbage collection.