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 条
  • [21] Early Detection of System-Level Anomalous Behaviour using Hardware Performance Counters
    Woo, Lai Leng
    Zwolinski, Mark
    Halak, Basel
    PROCEEDINGS OF THE 2018 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2018, : 485 - 490
  • [22] Detecting Spectre Attacks Using Hardware Performance Counters
    Li, Congmiao
    Gaudiot, Jean-Luc
    IEEE TRANSACTIONS ON COMPUTERS, 2022, 71 (06) : 1320 - 1331
  • [23] Early Detection of Ransomware Activity based on Hardware Performance Counters
    Anand, P. Mohan
    Charan, P. V. Sai
    Shukla, Sandeep K.
    PROCEEDINGS OF 2023 AUSTRALIAN COMPUTER SCIENCE WEEK, ACSW 2023, 2023, : 10 - 17
  • [24] OpenMP application tuning using hardware performance counters
    Smeds, N
    OPENMP SHARED MEMORY PARALLEL PROGRAMMING, 2003, 2716 : 260 - 270
  • [25] Production-Run Software Failure Diagnosis via Hardware Performance Counters
    Arulraj, Joy
    Chang, Po-Chun
    Jin, Guoliang
    Lu, Shan
    ACM SIGPLAN NOTICES, 2013, 48 (04) : 101 - 112
  • [26] Demand-driven logic simulation using a network of loosely coupled processors
    Dunne, PE
    Leng, PH
    Nwana, GF
    JOURNAL OF SYSTEMS ARCHITECTURE, 2002, 47 (14-15) : 1117 - 1128
  • [27] Detection of Cache Side Channel Attacks Using Thread Level Monitoring of Hardware Performance Counters
    Bhade, Pavitra Prakash
    Sinha, Sharad
    2021 IEEE 14TH INTERNATIONAL SYMPOSIUM ON EMBEDDED MULTICORE/MANY-CORE SYSTEMS-ON-CHIP (MCSOC 2021), 2021, : 210 - 217
  • [28] Intelligent Malware Detection based on Hardware Performance Counters: A Comprehensive Survey
    Sayadi, Hossein
    He, Zhangying
    Makrani, Hosein Mohammadi
    Homayoun, Houman
    2024 25TH INTERNATIONAL SYMPOSIUM ON QUALITY ELECTRONIC DESIGN, ISQED 2024, 2024,
  • [29] A Theoretical Study of Hardware Performance Counters-Based Malware Detection
    Basu, Kanad
    Krishnamurthy, Prashanth
    Khorrami, Farshad
    Karri, Ramesh
    IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY, 2020, 15 : 512 - 525
  • [30] Benefits and Challenges of Utilizing Hardware Performance Counters for COPPA Violation Detection
    Kuruvila, Abraham Peedikayil
    Arunachalam, Ayush
    Basu, Kanad
    PROCEEDINGS OF THE 2020 IEEE INTERNATIONAL CONFERENCE ON PHYSICAL ASSURANCE AND INSPECTION ON ELECTRONICS (PAINE), 2020,