Abstract
Energy harvesting systems provide power solutions for Internet-of-Things (IoT) devices, liberating them from battery life constraints. However, unstable power supplies can cause frequent power failures. This leads to the non-progress problem, where the system loses its state and, upon power restoration, is unable to resume unfinished programs, forcing it to start from the beginning. To tackle this issue, task-based Intermittent Computing (ImC) has been proposed. This approach breaks the program into multiple tasks and uses non-volatile memory (NVM) to store the results of completed tasks. When power is restored, the system can resume from the last unfinished task, avoiding the need to restart the entire program. However, a specific type of data, known as write-after-read (WAR) data, can introduce consistency errors during execution. Current approaches prevent these errors by backing up WAR data before task execution, but identifying such data precisely remains a challenge. Runtime detection methods can accurately find WAR data but introduce significant performance overhead. Meanwhile, static analysis techniques tend to be overly conservative, resulting in excessive and unnecessary backups. In this paper, we first examine the limitations of existing methods, then propose a hybrid WAR analysis method. This approach combines static analysis and leverages information during run-time to more accurately identify WAR data, with nearly no increase in run-time overhead. Experimental results indicate that compared to existing methods, our approach can significantly reduce system backup overhead and achieve up to a \(9.20\times \) performance improvement.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
IoT-analytics. https://iot-analytics.com/state-of-the-iot-update-q1-q2-2018-number-of-iot-devices-now-7b/. Accessed September 2020
Alfred, V.A., Monica, S.L., Jeffrey, D.U.: Compilers Principles, Techniques & Tools. Pearson Education (2007)
Baldoni, R., Coppa, E., D’Elia, D.C., Demetrescu, C., Finocchi, I.: A survey of symbolic execution techniques. ACM Comput. Surv. 51(3) (2018)
Bryant, R.E., David Richard, O., David Richard, O.: Computer Systems: A Programmer’s Perspective, vol. 2. Prentice Hall, Upper Saddle River (2003)
Colin, A., Lucia, B.: Chain: tasks and channels for reliable intermittent programs. In: Proceedings of the 2016 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications, pp. 514–530 (2016)
De Michiel, M., Bonenfant, A., Cassé, H., Sainrat, P.: Static loop bound analysis of C programs based on flow analysis and abstract interpretation. In: 2008 14th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, pp. 161–166. IEEE (2008)
Dunkels, A., Gronvall, B., Voigt, T.: Contiki-a lightweight and flexible operating system for tiny networked sensors. In: 29th Annual IEEE International Conference on Local Computer Networks, pp. 455–462. IEEE (2004)
Goh, W., Dannenberg, A., He, J.: MSP430 FRAM technology-how to and best practices. Technical report, Texas Instruments (2014)
Hester, J., Storer, K., Sorber, J.: Timely execution on intermittently powered batteryless sensors. In: Proceedings of the 15th ACM Conference on Embedded Network Sensor Systems, pp. 1–13 (2017)
Hoseinghorban, A., Bahrami, M.R., Ejlali, A., Abam, M.A.: CHANCE: capacitor charging management scheme in energy harvesting systems. IEEE Trans. Comput.-Aided Design Integr. Circuits Syst. (2020)
Huynh, B.K., Ju, L., Roychoudhury, A.: Scope-aware data cache analysis for WCET estimation. In: 2011 17th IEEE RTAS, pp. 203–212. IEEE (2011)
Lam, M., Sethi, R., Ullman, J.D., Aho, A.: Compilers: Principles, Techniques, and Tools. Pearson Education (2006)
Lee, Y., et al.: A modular 1mm 3 die-stacked sensing platform with optical communication and multi-modal energy harvesting. In: 2012 IEEE International Solid-State Circuits Conference, pp. 402–404. IEEE (2012)
Levis, P., et al.: TinyOS: an operating system for sensor networks. Ambient intell. 115–148 (2005)
Liu, S., Zhang, W., Lv, M., Chen, Q., Guan, N.: LATICS: a low-overhead adaptive task-based intermittent computing system. IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 39(11), 3711–3723 (2020)
Lucia, B., Ransford, B.: A simpler, safer programming and execution model for intermittent systems. In: PLDI (2015)
Maeng, K., Colin, A., Lucia, B.: Alpaca: intermittent execution without checkpoints. Proc. ACM Program. Lang. 1(OOPSLA), 1–30 (2017)
Ransford, B., Sorber, J., Fu, K.: Mementos: system support for long-running computation on RFID-scale devices. In: Proceedings of the Sixteenth International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 159–170 (2011)
Texas Instruments: MSP430FR58xx, MSP430FR59xx, and MSP430FR6xx Family User’s Guide (Rev. P) (2020)
Yildirim, K.S., Majid, A.Y., Patoukas, D., Schaper, K., Pawelczak, P., Hester, J.D.: InK: reactive kernel for tiny batteryless sensors. In: Proceedings of the 16th ACM Conference on Embedded Networked Sensor Systems, SenSys, pp. 41–53 (2018)
Zhang, H., Gummeson, J., Ransford, B., Fu, K.: Moo: a batteryless computational RFID and sensing platform. University of Massachusetts Computer Science Technical Report UM-CS-2011-020 (2011)
Zhang, W., Liu, S., Lv, M., Chen, Q., Guan, N.: Intermittent computing with efficient state backup by asynchronous DMA. In: Design, Automation & Test in Europe Conference & Exhibition (DATE). IEEE (2021)
Zhang, W., et al.: Adaptive task-based intermittent computing system with parallel state backup. IEEE Trans. Comput.-Aided Design Integr. Circuits Syst. (2022)
Acknowledgments
This work is supported by National Natural Science Foundation of China (Grant No. 62302270), Shandong Provincial Natural Science Foundation (Grant No. ZR20220F003).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2025 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Niu, J., Yu, Y., Zhang, W., Guan, N. (2025). Data-Dependent WAR Analysis for Efficient Task-Based Intermittent Computing. In: Bourke, T., Chen, L., Goharshady, A. (eds) Dependable Software Engineering. Theories, Tools, and Applications. SETTA 2024. Lecture Notes in Computer Science, vol 15469. Springer, Singapore. https://doi.org/10.1007/978-981-96-0602-3_5
Download citation
DOI: https://doi.org/10.1007/978-981-96-0602-3_5
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-96-0601-6
Online ISBN: 978-981-96-0602-3
eBook Packages: Computer ScienceComputer Science (R0)