Reuse-distance-based miss-rate prediction on a per instruction basis

Changpeng Fang, S. Carr, Soner Önder, Zhenlin Wang
{"title":"Reuse-distance-based miss-rate prediction on a per instruction basis","authors":"Changpeng Fang, S. Carr, Soner Önder, Zhenlin Wang","doi":"10.1145/1065895.1065906","DOIUrl":null,"url":null,"abstract":"Feedback-directed optimization has become an increasingly important tool in designing and building optimizing compilers. Recently, reuse-distance analysis has shown much promise in predicting the memory behavior of programs over a wide range of data sizes. Reuse-distance analysis predicts program locality by experimentally determining locality properties as a function of the data size of a program, allowing accurate locality analysis when the program's data size changes.Prior work has established the effectiveness of reuse distance analysis in predicting whole-program locality and miss rates. In this paper, we show that reuse distance can also effectively predict locality and miss rates on a per instruction basis. Rather than predict locality by analyzing reuse distances for memory addresses alone, we relate those addresses to particular static memory operations and predict the locality of each instruction.Our experiments show that using reuse distance without cache simulation to predict miss rates of instructions is superior to using cache simulations on a single representative data set to predict miss rates on various data sizes. In addition, our analysis allows us to identify the critical memory operations that are likely to produce a significant number of cache misses for a given data size. With this information, compilers can target cache optimization specifically to the instructions that can benefit from such optimizations most.","PeriodicalId":365109,"journal":{"name":"Memory System Performance","volume":"75 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2004-06-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"53","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Memory System Performance","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1065895.1065906","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 53

Abstract

Feedback-directed optimization has become an increasingly important tool in designing and building optimizing compilers. Recently, reuse-distance analysis has shown much promise in predicting the memory behavior of programs over a wide range of data sizes. Reuse-distance analysis predicts program locality by experimentally determining locality properties as a function of the data size of a program, allowing accurate locality analysis when the program's data size changes.Prior work has established the effectiveness of reuse distance analysis in predicting whole-program locality and miss rates. In this paper, we show that reuse distance can also effectively predict locality and miss rates on a per instruction basis. Rather than predict locality by analyzing reuse distances for memory addresses alone, we relate those addresses to particular static memory operations and predict the locality of each instruction.Our experiments show that using reuse distance without cache simulation to predict miss rates of instructions is superior to using cache simulations on a single representative data set to predict miss rates on various data sizes. In addition, our analysis allows us to identify the critical memory operations that are likely to produce a significant number of cache misses for a given data size. With this information, compilers can target cache optimization specifically to the instructions that can benefit from such optimizations most.
基于每条指令的基于重用距离的失误率预测
反馈导向优化已经成为设计和构建优化编译器的一个越来越重要的工具。最近,重用距离分析在预测各种数据大小的程序的内存行为方面显示出很大的希望。重用距离分析通过实验确定局部性属性作为程序数据大小的函数来预测程序局部性,允许在程序数据大小变化时进行准确的局部性分析。先前的工作已经证明了重用距离分析在预测整个程序局部性和缺失率方面的有效性。在本文中,我们证明了重用距离也可以有效地预测每条指令的局部性和缺失率。我们不是仅仅通过分析内存地址的重用距离来预测局部性,而是将这些地址与特定的静态内存操作联系起来,并预测每个指令的局部性。我们的实验表明,使用无缓存模拟的重用距离来预测指令的缺失率优于在单个代表性数据集上使用缓存模拟来预测各种数据大小的缺失率。此外,我们的分析使我们能够识别对于给定的数据大小可能产生大量缓存丢失的关键内存操作。有了这些信息,编译器就可以将缓存优化专门针对那些最能从这种优化中获益的指令。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信