Introduction.tex 7.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. \section{Introduction}
  2. Batteryless systems are emerging as a promising future platform of Internet-of-Things (IoT) devices.
  3. These systems adopt a small capacitor as an energy storage and operate by harvesting power from environmental sources.
  4. This setup effectively addresses challenges associated with traditional battery-based systems, such as need for human intervention for recharging or replacement~\cite{choiCompilerDirected2022} and harmful environmental impacts~\cite{ahmedInternet2024}.
  5. They are also known as intermittent systems, since the computation happens intermittently during short periods only when there exist sufficient power to compute.
  6. Intermittent systems require software supports to sustain long-running executions across power failures.
  7. % An intermittent system requires software support to retain volatile system state information across power interruptions.
  8. During operation, volatile data (e.g., registers or SRAM data) must be saved to Non-Volatile Memory (NVM) through a process called checkpointing.
  9. When power is restored, this saved state is recovered to allow operations to resume the execution from the last checkpoint (recovery).
  10. In designing these state retention techniques, software designers rely on an \emph{execution model} that abstracts hardware-level operations and represents behavior of intermittent systems necessary for software design.
  11. Fig.~\ref{fig:introduction} illustrates such execution model commonly adopted in literature~\cite{ransfordMementos2011,jayakumarQUICKRECALL2014,maengAdaptive2020,dewinkelIntermittentlypowered2022,houTale2024,erataETAP2023,ghasemiPES2023,sanmiguelEH2018a}.
  12. As energy accumulates, the voltage of the capacitor gradually increases.
  13. Once the voltage reaches the power-on threshold $V_h$, the collected power is supplied to the system.
  14. The system begins operation at this point, and execution is halted when the capacitor voltage reaches the power-off threshold $V_l$.
  15. Software designers aim to leverage this execution model to implement intermittent systems at minimal cost (e.g., by executing checkpoints just before reaching the power-off threshold~\cite{jayakumarQUICKRECALL2014,maengSupporting2019,maengAdaptive2020,kortbeekBFree2020,netoDiCA2023}).
  16. \begin{figure}[t]
  17. \centering
  18. \includegraphics[width=\linewidth]{figs/cropped/intermittent_computing.pdf}
  19. \caption{Traditional execution model of intermittent systems.}
  20. \label{fig:introduction}
  21. \end{figure}
  22. In the meantime, recent research on intermittent systems is increasingly exploring shorter operation times by using smaller capacitors.
  23. % In the meantime, researches on intermittent systems are increasingly exploring shorter operation times by using smaller capacitors (e.g., less than 1mF~\cite{ahmedEfficient2019}).
  24. Operating on small capacitors is generally desirable, as it reduces device volume and enhances the responsiveness by enabling the system to wake up more frequently~\cite{bakarProtean2023a,maengAdaptive2020,alsubhiStash2024}.
  25. As a result, recent studies have targeted operation times in the range of tens of milliseconds~\cite{reymondSCHEMATIC2024,wuIntOS2024,yildizEfficient2023,choiCompilerDirected2022} or even microseconds~\cite{reymondSCHEMATIC2024,wuIntOS2024}.
  26. % However, as energy storage size decreases, the traditional execution model no longer provides an accurate abstraction of actual execution behavior.
  27. However, as energy storage sizes decrease, the traditional execution model is failing to provide an accurate abstraction of actual execution behavior.
  28. % The challenge is that the traditional execution model does not provide precise abstraction of the real execution anymore when the energy storage is very small.
  29. The major source of this discrepancy is the buffering effects of the system's inherent capacitance, mostly coming from its decoupling capacitors.
  30. This factor has been overlooked in the traditional model, as the inherent capacitance was considered negligible compared to the main energy storage.
  31. Decoupling capacitors are on-board capacitors that act as energy buffers.
  32. They are mandatory components since the buffered energy prevent transient voltage drop when the system suddenly draws a large current, such as during checkpointing (Sec.~\ref{sec:system_description}).
  33. However, at the same time, their buffering effects introduce discrepancies between the execution model and the actual system behavior.
  34. For example, during power-on, decoupling capacitors are rapidly charged using the energy in the storage, making capacitor voltage an unreliable estimate of available energy.
  35. This buffered energy also allows the system operate for a while at sub-normal voltages after the power supply is stopped.
  36. Additionally, between power cycles, decoupling capacitors discharge due to the resistance of the system, considerably lowering the power efficiency.
  37. In systems with smaller capacitors, these effects dominate the behaviors that are modeled in the traditional execution model.
  38. Consequently, highly efficient checkpoint techniques according to the traditional model may introduce substantial power overhead and even correctness issues in small-scale systems.
  39. % Consequently, designing software techniques based on the traditional model brings significant power overhead and even correctness issues, even they are extremely efficient in the traditional model.
  40. % While this seems merely delaying the start and the end of the operations at first glance, we will show that it significantly affects the power efficiency and even correctness of software designs.
  41. % This execution model has served as the foundation for many successful intermittent system technologies.
  42. % However, it may introduce considerable inaccuracies when applied to recent research aimed at very short power supply durations.
  43. % Short power interruptions generally improve system responsiveness and are therefore considered a desirable trait.
  44. % Recent studies have explored technologies operating with power supply times in the range of tens of milliseconds or microseconds, often utilizing small capacitors of less than 1mF for energy storage.
  45. % When capacitors of this scale are used, the system operates in a way that significantly diverges from the traditional model.
  46. % The primary reason is the presence of a decoupling capacitor on the board—an essential component that maintains system voltage during sudden current changes.
  47. % The decoupling capacitor acts as an energy buffer, creating a deviation from the ideal execution model.
  48. % When power is supplied to the system, the decoupling capacitor rapidly charges and reduces capacitor voltage.
  49. % Then the buffered energy continues to power the system even after the power-off threshold is reached.
  50. % Understanding this effect is crucial for intermittent system designers, as it has a significant impact on both system efficiency and correctness.
  51. In this paper, we propose a new execution model for intermittent systems which accounts for the buffering effects of decoupling capacitors.
  52. In Sec.~\ref{sec:detailed_execution_model}, we demonstrate that understanding this model is critical for software designers:
  53. intermittent systems designed upon the traditional model can be up to 5.62x more energy-inefficient than expected and may fail to predict power-off timings accurately, leading to unsafe checkpointing.
  54. In Sec.~\ref{sec:design_guidelines}, we propose design guidelines to implement efficient and safe intermittent systems with small energy storages, leveraging insights from our model.
  55. Our guidelines include accurate power failure prediction methods that improve end-to-end execution latencies by 3.04x in static and 2.86x in dynamic checkpointing schemes on average, without incurring additional overhead.
  56. % Our power failure prediction methods improve end-to-end execution latencies by 3.04x in static and 2.86x in dynamic checkpointing schemes on average, without incurring additional overhead.