GraalSP: Polyglot, efficient, and robust machine learning-based static profiler

被引:0
|
作者
Cugurovic, Milan [1 ,2 ]
Janicic, Milena Vujosevic [1 ,3 ]
Jovanovic, Vojin [3 ]
Wurthinger, Thomas [3 ]
机构
[1] Univ Belgrade, Fac Math, Belgrade, Serbia
[2] Oracle Labs, Belgrade, Serbia
[3] Oracle Labs, Zurich, Switzerland
关键词
Compilers; GraalVM; Static profiler; Machine learning; Regression; XGBoost ensemble; BRANCH PREDICTION; FRAMEWORK; OPTIMIZATION; COEFFICIENT; MODEL;
D O I
10.1016/j.jss.2024.112058
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Compilers use profiles to apply profile-guided optimizations and produce efficient programs. Dynamic profilers collect high-quality profiles but require identifying suitable profile collection workloads, introduce additional complexity to the application build pipeline, and cause significant time and memory overheads. Modern static profilers use machine learning (ML) models to predict profiles and mitigate these issues. However, state-of-theart ML-based static profilers handcraft features, which are platform-specific and challenging to adapt to other architectures and programming languages. They use computationally expensive deep neural network models, thus increasing application compile time. Furthermore, they can introduce performance degradation in the compiled programs due to inaccurate profile predictions. We present GraalSP, a portable, polyglot, efficient, and robust ML-based static profiler. GraalSP is portable as it defines features on a high-level, graph-based intermediate representation and semi-automates the definition of features. For the same reason, it is also polyglot and can operate on any language that compiles to Java bytecode (such as Java, Scala, and Kotlin). GraalSP is efficient as it uses an XGBoost model based on lightweight decision tree models and robust as it uses branch probability prediction heuristics to ensure the high performance of compiled programs. We integrated GraalSP into the Graal compiler and achieved an execution time speedup of 7.46% . 46 % geometric mean compared to a default configuration of the Graal compiler.
引用
收藏
页数:28
相关论文
共 50 条
  • [1] A machine learning-based static analysis warning prioritization
    Qing, Mingshuang
    Feng, Xiang
    Luo, Jun
    Huang, Wanmin
    Zhang, Jingui
    Wang, Ping
    Fan, Yong
    Ge, Xiuting
    Pan, Ya
    2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 685 - 690
  • [2] WOWMON: A Machine Learning-based Profiler for Self-adaptive Instrumentation of Scientific Workflows
    Zhang, Xuechen
    Abbasi, Hasan
    Huck, Kevin
    Malony, Allen D.
    INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE 2016 (ICCS 2016), 2016, 80 : 1507 - 1518
  • [3] ENIGMA: Efficient Learning-Based Inference Guiding Machine
    Jakubuv, Jan
    Urban, Josef
    INTELLIGENT COMPUTER MATHEMATICS, 2017, 10383 : 292 - 302
  • [4] An efficient parallel machine learning-based blockchain framework
    Tsai, Chun-Wei
    Chen, Yi-Ping
    Tang, Tzu-Chieh
    Luo, Yu-Chen
    ICT EXPRESS, 2021, 7 (03): : 300 - 307
  • [5] Machine learning-based robust trajectory tracking control for FSGR
    Jia, Lin
    Wang, Yaonan
    Zhang, Changfan
    Zhao, Kaihui
    Zhou, Langming
    JOURNAL OF ENGINEERING-JOE, 2019, 2019 (23): : 9220 - 9225
  • [6] An Adversarial Reinforcement Learning Framework for Robust Machine Learning-based Malware Detection
    Ebrahimi, Mohammadreza
    Li, Weifeng
    Chai, Yidong
    Pacheco, Jason
    Chen, Hsinchun
    2022 IEEE INTERNATIONAL CONFERENCE ON DATA MINING WORKSHOPS, ICDMW, 2022, : 567 - 576
  • [7] Deep learning-based efficient and robust image forgery detection
    KASIM Ö.
    Multimedia Tools and Applications, 2024, 83 (21) : 59819 - 59838
  • [8] A Machine Learning-Based Protocol for Efficient Routing in Opportunistic Networks
    Sharma, Deepak K.
    Dhurandher, Sanjay K.
    Woungang, Isaac
    Srivastava, Rohit K.
    Mohananey, Anhad
    Rodrigues, Joel J. P. C.
    IEEE SYSTEMS JOURNAL, 2018, 12 (03): : 2207 - 2213
  • [9] An Efficient Machine Learning-based Text Summarization in the Malayalam Language
    Haroon, Rosna P.
    Abdul Gafur, M.
    Barakkath Nisha, U.
    KSII TRANSACTIONS ON INTERNET AND INFORMATION SYSTEMS, 2022, 16 (06) : 1778 - 1799
  • [10] Machine learning-based efficient audio production separation method
    Zhang, Wenzhu
    Kim, Byung-Gyu
    INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2025,