Learning based Memory Interference Prediction for Co-running Applications on Multi-Cores

Ahsan Saeed, Daniel Mueller-Gritschneder, Falk Rehm, A. Hamann, D. Ziegenbein, Ulf Schlichtmann, A. Gerstlauer
{"title":"Learning based Memory Interference Prediction for Co-running Applications on Multi-Cores","authors":"Ahsan Saeed, Daniel Mueller-Gritschneder, Falk Rehm, A. Hamann, D. Ziegenbein, Ulf Schlichtmann, A. Gerstlauer","doi":"10.1109/MLCAD52597.2021.9531245","DOIUrl":null,"url":null,"abstract":"Early run-time prediction of co-running independent applications prior to application integration becomes challenging in multi-core processors. One of the most notable causes is the interference at the main memory subsystem, which results in significant degradation in application performance and response time in comparison to standalone execution. Currently available techniques for run-time prediction like traditional cycle-accurate simulations are slow, and analytical models are not accurate and time-consuming to build. By contrast, existing machine-learning-based approaches for run-time prediction simply do not account for interference. In this paper, we use a machine learning-based approach to train a model to correlate performance data (instructions and hardware performance counters) for a set of benchmark applications between the standalone and interference scenarios. After that, the trained model is used to predict the run-time of co-running applications in interference scenarios. In general, there is no straightforward one-to-one correspondence between samples obtained from the standalone and interference scenarios due to the different run-times, i.e. execution speeds. To address this, we developed a simple yet effective sample alignment algorithm, which is a key component in transforming interference prediction into a machine learning problem. In addition, we systematically identify the subset of features that have the highest positive impact on the model performance. Our approach is demonstrated to be effective and shows an average run-time prediction error, which is as low as 0.3% and 0.1% for two co-running applications.","PeriodicalId":210763,"journal":{"name":"2021 ACM/IEEE 3rd Workshop on Machine Learning for CAD (MLCAD)","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2021-08-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 ACM/IEEE 3rd Workshop on Machine Learning for CAD (MLCAD)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/MLCAD52597.2021.9531245","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Early run-time prediction of co-running independent applications prior to application integration becomes challenging in multi-core processors. One of the most notable causes is the interference at the main memory subsystem, which results in significant degradation in application performance and response time in comparison to standalone execution. Currently available techniques for run-time prediction like traditional cycle-accurate simulations are slow, and analytical models are not accurate and time-consuming to build. By contrast, existing machine-learning-based approaches for run-time prediction simply do not account for interference. In this paper, we use a machine learning-based approach to train a model to correlate performance data (instructions and hardware performance counters) for a set of benchmark applications between the standalone and interference scenarios. After that, the trained model is used to predict the run-time of co-running applications in interference scenarios. In general, there is no straightforward one-to-one correspondence between samples obtained from the standalone and interference scenarios due to the different run-times, i.e. execution speeds. To address this, we developed a simple yet effective sample alignment algorithm, which is a key component in transforming interference prediction into a machine learning problem. In addition, we systematically identify the subset of features that have the highest positive impact on the model performance. Our approach is demonstrated to be effective and shows an average run-time prediction error, which is as low as 0.3% and 0.1% for two co-running applications.
基于学习的多核协同运行应用内存干扰预测
在多核处理器中,在应用程序集成之前对共同运行的独立应用程序进行早期运行时预测变得很有挑战性。最显著的原因之一是主内存子系统的干扰,与独立执行相比,这会导致应用程序性能和响应时间的显著下降。目前可用的运行时间预测技术,如传统的周期精确模拟,速度慢,分析模型不准确,耗时长。相比之下,现有的基于机器学习的运行时预测方法根本没有考虑到干扰。在本文中,我们使用基于机器学习的方法来训练模型,以便在独立和干扰场景之间关联一组基准应用程序的性能数据(指令和硬件性能计数器)。然后,将训练好的模型用于预测协同运行应用程序在干扰场景下的运行时间。一般来说,由于不同的运行时间(即执行速度),从独立场景和干扰场景获得的样本之间没有直接的一对一对应关系。为了解决这个问题,我们开发了一种简单而有效的样本对齐算法,这是将干扰预测转化为机器学习问题的关键组成部分。此外,我们系统地识别对模型性能有最高积极影响的特征子集。我们的方法被证明是有效的,并且显示了平均运行时预测误差,对于两个共同运行的应用程序,其误差低至0.3%和0.1%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信