Semantic Locality and Context-based Prefetching Using Reinforcement Learning

被引:63
|
作者
Peled, Leeor [1 ]
Mannor, Shie [1 ]
Weiser, Uri [1 ]
Etsion, Yoav [1 ,2 ]
机构
[1] Technion Israel Inst Technol, Elect Engn, IL-32000 Haifa, Israel
[2] Technion Israel Inst Technol, Comp Sci, IL-32000 Haifa, Israel
关键词
D O I
10.1145/2749469.2749473
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Most modern memory prefetchers rely on spatio-temporal locality to predict the memory addresses likely to be accessed by a program in the near future. Emerging workloads, however, make increasing use of irregular data structures, and thus exhibit a lower degree of spatial locality. This makes them less amenable to spatio-temporal prefetchers. In this paper, we introduce the concept of Semantic Locality, which uses inherent program semantics to characterize access relations. We show how, in principle, semantic locality can capture the relationship between data elements in a manner agnostic to the actual data layout, and we argue that semantic locality transcends spatio-temporal concerns. We further introduce the context-based memory prefetcher, which approximates semantic locality using reinforcement learning. The prefetcher identifies access patterns by applying reinforcement learning methods over machine and code attributes, that provide hints on memory access semantics. We test our prefetcher on a variety of benchmarks that employ both regular and irregular patterns. For the SPEC 2006 suite, it delivers speedups as high as 2.8x (20% on average) over a baseline with no prefetching, and outperforms leading spatio-temporal prefetchers. Finally, we show that the context-based prefetcher makes it possible for naive, pointer-based implementations of irregular algorithms to achieve performance comparable to that of spatially optimized code.
引用
收藏
页码:285 / 297
页数:13
相关论文
共 50 条
  • [41] OntoYield: A Semantic Approach for Context-Based Ontology Recommendation Based on Structure Preservation
    Giri, G. Leena
    Deepak, Gerard
    Manjula, S. H.
    Venugopal, K. R.
    PROCEEDINGS OF INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND DATA ENGINEERING, 2018, 9 : 265 - 275
  • [42] Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement Learning
    Bera, Rahul
    Kanellopoulos, Konstantinos
    Nori, Anant V.
    Shahroodi, Taha
    Subramoney, Sreenivas
    Mutlu, Onur
    PROCEEDINGS OF 54TH ANNUAL IEEE/ACM INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE, MICRO 2021, 2021, : 1121 - 1137
  • [43] A Semantic Segmentation System for generating context-based tile-maps
    Gabriel, Leandro
    Clua, Esteban Walter
    PROCEEDINGS OF THE 22ND BRAZILIAN SYMPOSIUM ON COMPUTER GAMES AND DIGITAL ENTERTAINMENT, SBGAMES, 2023, 2023, : 124 - 133
  • [44] A semantic web ontology for context-based classification and retrieval of music resources
    Ferrara, Alfio
    Ludovico, Luca A.
    Montanelli, Stefano
    Castano, Silvana
    Haus, Goffredo
    ACM TRANSACTIONS ON MULTIMEDIA COMPUTING COMMUNICATIONS AND APPLICATIONS, 2006, 2 (03) : 177 - 198
  • [45] Semantic and context-based information management in SCUDWare middleware for ubiquitous computing
    Wu, Qing
    Yang, Jianhua
    Li, Ying
    2007 IFIP INTERNATIONAL CONFERENCE ON NETWORK AND PARALLEL COMPUTING WORKSHOPS, PROCEEDINGS, 2007, : 275 - +
  • [46] Multi-scale spatial context-based semantic edge detection
    Ma, Wei
    Gong, Chaofan
    Xu, Shibiao
    Zhang, Xiaopeng
    INFORMATION FUSION, 2020, 64 : 238 - 251
  • [47] A context-based process semantic annotation model for a process model repository
    Mturi, Elias
    Johannesson, Paul
    BUSINESS PROCESS MANAGEMENT JOURNAL, 2013, 19 (03) : 404 - 430
  • [48] Learning Context-based Feature Descriptors for Object Tracking
    Borji, Ali
    Frintrop, Simone
    PROCEEDINGS OF THE 5TH ACM/IEEE INTERNATIONAL CONFERENCE ON HUMAN-ROBOT INTERACTION (HRI 2010), 2010, : 79 - 80
  • [49] Toward a Context-Based Approach for Software Security Learning
    Wen, Shao-Fang
    Katt, Basel
    JOURNAL OF APPLIED SECURITY RESEARCH, 2019, 14 (03) : 288 - 307
  • [50] Context-based unsupervised ensemble learning and feature ranking
    Erfan Soltanmohammadi
    Mort Naraghi-Pour
    Mihaela van der Schaar
    Machine Learning, 2016, 105 : 459 - 485