ReuseTracker : Fast Yet Accurate Multicore Reuse Distance Analyzer

Author:

Sasongko Muhammad Aditya1,Chabbi Milind2,Marzijarani Mandana Bagheri1,Unat Didem1

Affiliation:

1. Koç University, Istanbul, Turkey

2. Scalable Machines Research, USA

Abstract

One widely used metric that measures data locality is reuse distance —the number of unique memory locations that are accessed between two consecutive accesses to a particular memory location. State-of-the-art techniques that measure reuse distance in parallel applications rely on simulators or binary instrumentation tools that incur large performance and memory overheads. Moreover, the existing sampling-based tools are limited to measuring reuse distances of a single thread and discard interactions among threads in multi-threaded programs. In this work, we propose ReuseTracker —a fast and accurate reuse distance analyzer that leverages existing hardware features in commodity CPUs. ReuseTracker is designed for multi-threaded programs and takes cache-coherence effects into account. By utilizing hardware features like performance monitoring units and debug registers, ReuseTracker can accurately profile reuse distance in parallel applications with much lower overheads than existing tools. It introduces only 2.9× runtime and 2.8× memory overheads. Our tool achieves 92% accuracy when verified against a newly developed configurable benchmark that can generate a variety of different reuse distance patterns. We demonstrate the tool’s functionality with two use-case scenarios using PARSEC, Rodinia, and Synchrobench benchmark suites where ReuseTracker guides code refactoring in these benchmarks by detecting spatial reuses in shared caches that are also false sharing and successfully predicts whether some benchmarks in these suites can benefit from adjacent cache line prefetch optimization.

Funder

Scientific and Technological Research Council of Turkey

Royal Society-Newton Advanced Fellowship

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference65 articles.

1. dcompiler/loca: Program Locality Analysis Tools;GitHub.;Retrieved on 20 July, 2020 from https://github.com/dcompiler/loca

2. Harmonic Progression;Wikipedia.;Retrieved on 12 January, 2021 from https://en.wikipedia.org/wiki/Harmonic_progression_(mathematics)

3. Thread Affinity Interface (Linux* and Windows*);Intel.;R

4. PPT-SASMM: Scalable Analytical Shared Memory Model

Cited by 8 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. CBANA: A Lightweight, Efficient, and Flexible Cache Behavior Analysis Framework;IEEE Transactions on Computers;2024-09

2. ParaShareDetect: Dynamic Instrumentation and Runtime Analysis for False Sharing Detection in Parallel Computing;2024 4th International Conference on Computer, Control and Robotics (ICCCR);2024-04-19

3. Modelling Data Locality of Sparse Matrix-Vector Multiplication on the A64FX;Proceedings of the SC '23 Workshops of The International Conference on High Performance Computing, Network, Storage, and Analysis;2023-11-12

4. Precise Event Sampling on AMD Versus Intel: Quantitative and Qualitative Comparison;IEEE Transactions on Parallel and Distributed Systems;2023-05

5. Precise event sampling‐based data locality tools for AMD multicore architectures;Concurrency and Computation: Practice and Experience;2023-04-03

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3