應用於定時器檢查點的間歇式系統資料壓縮方法

No Thumbnail Available

Date

2025

Journal Title

Journal ISSN

Volume Title

Publisher

Abstract

在間歇式系統中,環境能源的不穩定性導致無法預期且頻繁的斷電,通常透過檢查點來儲存系統狀態以避免資料遺失。然而,檢查點相當消耗能量和時間,何時進行檢查點變得相當重要,為此產生了許多相關研究,根據決定是否進行檢查點的方式主要能分成基於監測系統電壓的方式和基於定時器的方式。基於監測系統電壓的方式可能受電容故障影響,無法順利完成檢查點,基於定時器的方式雖然能夠解決電容故障的問題,但根據我們的觀察,這種方式會發生檢查點完成後執行的工作,因無法再次進行檢查點,導致該執行時間被浪費。為了將浪費的時間加以利用,我們測試了現有常用於評估間歇式系統的應用程式,將進行檢查點時要寫入至非揮發性記憶體中的資料進行壓縮,測量讀取並解壓的時間和原資料大小的讀取時間,測量結果顯示即便讀取完後需要進行解壓縮,花費時間也比讀取原資料大小少。我們透過此觀察設計了一套利用資料壓縮的檢查點方法,該方法將原本浪費的時間用來壓縮檢查點寫入至非揮發記憶體的資料,以此降低系統在恢復時讀取該資料的時間,藉此提升系統可執行的工作時間和儲存的工作進度。最後我們在實驗中模擬了穩定和不穩定能量擷取狀況的供電時間,評估應用程式完成次數和進行的檢查點次數,在穩定供電時間中,增加了13-25%的應用程式完成次數,降低了13%的檢查點次數,在不穩定的供電時間中,增加了12-20%的應用程式完成次數,降低了57%的檢查點次數。
In intermittent systems, the instability of environmental energy leads to unpredictable and frequent power failures. To prevent data loss, checkpoints are commonly used to store system states. However, creating checkpoints can require significant energy and time, making it crucial to determine the right moment to perform them. Existing research has proposed methods for determining when to perform checkpoints, which can be categorized into voltage-based and timer-based approaches. Voltage-based approaches may fail to complete checkpoints due to capacitor malfunctions, while timer-based approaches mitigate this issue but, as we observed, often waste execution time after a completed checkpoint because the remaining time is insufficient for another checkpoint. To make use of this wasted time, we tested common benchmark applications used in evaluating intermittent systems. By compressing the data written to non-volatile memory during checkpoints, we measured the time required to read and decompress the data and compared it to the time required to read the original uncompressed data. Results showed that, even with decompression, the total time was shorter than reading the uncompressed data alone. Based on this observation, we designed a checkpointing method that uses data compression to utilize the otherwise wasted time. By compressing the data written to non-volatile memory, the method reduces the read latency during system recovery, thereby increasing the system's effective execution time and preserving more progress. In our experiments, we simulated stable and unstable energy environments to evaluate application completion counts and the number of checkpoints. Under stable energy conditions, our method increased application completion counts by 13-25% and reduced the number of checkpoints by 13%. Under unstable energy conditions, application completion counts increased by 12-20% and reduced the number of checkpoints by 57%.

Description

Keywords

間歇式系統, 資料壓縮, 能量擷取, Intermittent systems, Data compression, Energy harvesting

Citation

Collections

Endorsement

Review

Supplemented By

Referenced By