Demand-Driven Software Race Detection using Hardware Performance Counters

被引:0
|
作者
Greathouse, Joseph L. [1 ]
Ma, Zhiqiang
Frank, Matthew I.
Peri, Ramesh
Austin, Todd [1 ]
机构
[1] Univ Michigan, Ann Arbor, MI 48109 USA
关键词
Performance Counters; Data Race Detection; Demand Analysis; Cache Coherency;
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Dynamic data race detectors are an important mechanism for creating robust parallel programs. Software race detectors instrument the program under test, observe each memory access, and watch for inter-thread data sharing that could lead to concurrency errors. While this method of bug hunting can find races that are normally difficult to observe, it also suffers from high runtime overheads. It is not uncommon for commercial race detectors to experience 300x slowdowns, limiting their usage. This paper presents a hardware-assisted demand-driven race detector. We are able to observe cache events that are indicative of data sharing between threads by taking advantage of hardware available on modern commercial microprocessors. We use these to build a race detector that is only enabled when it is likely that inter-thread data sharing is occurring. When little sharing takes place, this demand-driven analysis is much faster than contemporary continuous-analysis tools without a large loss of detection accuracy. We modified the race detector in Intel (R) Inspector XE to utilize our hardware-based sharing indicator and were able to achieve performance increases of 3x and 10x in two parallel benchmark suites and 51x for one particular program.
引用
收藏
页码:165 / 176
页数:12
相关论文
共 50 条
  • [11] Automatic Method for Distinguishing Hardware and Software Faults Based on Software Execution Data and Hardware Performance Counters
    Park, Jihyun
    Choi, Byoungju
    ELECTRONICS, 2020, 9 (11) : 1 - 25
  • [12] Time Series-based Malware Detection using Hardware Performance Counters
    Kuruvila, Abraham Peedikayil
    Karmakar, Sayar
    Basu, Kanad
    2021 IEEE INTERNATIONAL SYMPOSIUM ON HARDWARE ORIENTED SECURITY AND TRUST (HOST), 2021, : 102 - 112
  • [13] Fight Hardware with Hardware: Systemwide Detection and Mitigation of Side-channel Attacks Using Performance Counters
    Carna, Stefano
    Ferracci, Serena
    Quaglia, Francesco
    Pellegrini, Alessandro
    DIGITAL THREATS: RESEARCH AND PRACTICE, 2023, 4 (01):
  • [14] Software-based Control-Flow Error Detection with Hardware Performance Counters in ARM Processors
    Ahmad, Hussien Al-Haj
    Sedaghat, Yasser
    2022 CPSSI 4TH INTERNATIONAL SYMPOSIUM ON REAL-TIME AND EMBEDDED SYSTEMS AND TECHNOLOGIES (RTEST 2022), 2022,
  • [15] HPCMalHunter: Behavioral Malware Detection using Hardware Performance Counters and Singular Value Decomposition
    Bahador, Mohammad Bagher
    Abadi, Mahdi
    Tajoddin, Asghar
    2014 4TH INTERNATIONAL CONFERENCE ON COMPUTER AND KNOWLEDGE ENGINEERING (ICCKE), 2014, : 703 - 708
  • [16] Modelling demand-driven chain networks using multiple CODPs
    Verdouw, C. N.
    Bculens, Aj. M.
    Bouwmeester, D.
    Trienekens, J. H.
    LEAN BUSINESS SYSTEMS AND BEYOND, 2008, 257 : 433 - +
  • [17] Demand-driven frequent itemset mining using pattern structures
    Haixun Wang
    Chang-Shing Perng
    Sheng Ma
    Philip S. Yu
    Knowledge and Information Systems, 2005, 8 : 82 - 102
  • [18] Modelling demand-driven chain networks using multiple CODPs
    Agricultural Economics Research Institute , Wageningen UR, P.O. Box 29703, The Hague
    LS
    2502, Netherlands
    不详
    不详
    IFIP Advances in Information and Communication Technology, 2008, (433-442) : 433 - 442
  • [19] Demand-driven frequent itemset mining using pattern structures
    Wang, HX
    Perng, CS
    Ma, S
    Yu, PS
    KNOWLEDGE AND INFORMATION SYSTEMS, 2005, 8 (01) : 82 - 102
  • [20] Parametrization of a demand-driven operating model using reinforcement learning
    Duhem, Louis
    Benali, Maha
    Martin, Guillaume
    COMPUTERS IN INDUSTRY, 2023, 147