Inferring Energy Bounds via Static Program Analysis and Evolutionary Modeling of Basic Blocks

被引:2
|
作者
Liqat, Umer [1 ,3 ]
Bankovic, Zorana [1 ]
Lopez-Garcia, Pedro [1 ,2 ]
Hermenegildo, Manuel, V [1 ,3 ]
机构
[1] IMDEA Software Inst, Madrid, Spain
[2] Spanish Council Sci Res CSIC, Madrid, Spain
[3] Univ Politecn Madrid, Madrid, Spain
来源
LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION (LOPSTR 2017) | 2018年 / 10855卷
关键词
Energy modeling; Evolutionary algorithms; Static analysis; Energy consumption analysis and verification; Resource analysis and verification; CONSUMPTION ANALYSIS; ABSTRACT INTERPRETATION; VERIFICATION;
D O I
10.1007/978-3-319-94460-9_4
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The ever increasing number and complexity of energy-bound devices (such as the ones used in Internet of Things applications, smart phones, and mission critical systems) pose an important challenge on techniques to optimize their energy consumption and to verify that they will perform their function within the available energy budget. In this work we address this challenge from the software point of view and propose a novel approach to estimating accurate parametric bounds on the energy consumed by program executions that are practical for their application to energy verification and optimization. Our approach divides a program into basic (branchless) blocks and performs a best effort modeling to estimate upper and lower bounds on the energy consumption for each block using an evolutionary algorithm. Then it combines the obtained values according to the program control flow, using a safe static analysis, to infer functions that give both upper and lower bounds on the energy consumption of the whole program and its procedures as functions on input data sizes. We have tested our approach on (C-like) embedded programs running on the XMOS hardware platform. However, our method is general enough to be applied to other microprocessor architectures and programming languages. The bounds obtained by our prototype implementation on a set of benchmarks were always safe and quite accurate. This supports our hypothesis that our approach offers a good compromise between safety and accuracy, and can be applied in practice for energy verification and optimization.
引用
收藏
页码:54 / 72
页数:19
相关论文
共 2 条
  • [1] Enhancing Performance Modeling of Serverless Functions via Static Analysis
    Wang, Runan
    Casale, Giuliano
    Filieri, Antonio
    SERVICE-ORIENTED COMPUTING (ICSOC 2022), 2022, 13740 : 71 - 88
  • [2] Energy Consumption Estimation of API-usage in Smartphone Apps via Static Analysis
    Bangash, Abdul Ali
    Eng, Kalvin
    Jamal, Qasim
    Ali, Karim
    Hindle, Abram
    2023 IEEE/ACM 20TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES, MSR, 2023, : 272 - 283