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 条
  • [31] Using Hardware Performance Counters to Detect Control Hijacking Attacks
    Yu, Miao
    Halak, Basel
    Zwolinski, Mark
    2019 IEEE 4TH INTERNATIONAL VERIFICATION AND SECURITY WORKSHOP (IVSW 2019), 2019, : 1 - 6
  • [32] Explainable Machine Learning for Intrusion Detection via Hardware Performance Counters
    Kuruvila, Abraham Peedikayil
    Meng, Xingyu
    Kundu, Shamik
    Pandey, Gaurav
    Basu, Kanad
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2022, 41 (11) : 4952 - 4964
  • [33] Using Hardware Performance Counters to support infield GPU Testing
    Guerrero-Balaguera, Juan-David
    Condia, Josie E. Rodriguez
    Reorda, Matteo Sonza
    2021 28TH IEEE INTERNATIONAL CONFERENCE ON ELECTRONICS, CIRCUITS, AND SYSTEMS (IEEE ICECS 2021), 2021,
  • [34] System execution path profiling using hardware performance counters
    Giraldeau, Francis
    Ezzati-Jivan, Naser
    Dagenais, Michel R.
    2021 15TH ANNUAL IEEE INTERNATIONAL SYSTEMS CONFERENCE (SYSCON 2021), 2021,
  • [35] Refining Buffer Overflow Detection via Demand-Driven Path-Sensitive Analysis
    Le, Wei
    Soffa, Mary Lou
    PASTE'07 PROCEEDINGS OF THE 2007 ACM SIGPLAN- SIGSOFT WORKSHOP ON PROGRAM ANALYSIS FOR SOFTWARE TOOLS & ENGINEERING, 2007, : 63 - 68
  • [36] Using subsidised seed to catalyse demand-driven bean seed systems in Malawi
    Rubyogo, Jean Claude
    Magreta, Ruth
    Kambewa, Dymon
    Chirwa, Rowland
    Mazuma, Elisa
    Andrews, Martin
    DEVELOPMENT IN PRACTICE, 2016, 26 (01) : 15 - 26
  • [37] Anomaly Detection in Real-Time Multi-Threaded Processes Using Hardware Performance Counters
    Krishnamurthy, Prashanth
    Karri, Ramesh
    Khorrami, Farshad
    IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY, 2020, 15 : 666 - 680
  • [38] Demand-driven Execution of Static Directed Acyclic Graphs Using Task Parallelism
    Kambadur, Prabhanjan
    Gupta, Anshul
    Hoefler, Torsten
    Lumsdaine, Andrew
    16TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING (HIPC), PROCEEDINGS, 2009, : 284 - 293
  • [39] RADISH: Always-On Sound and Complete Race Detection in Software and Hardware
    Devietti, Joseph
    Wood, Benjamin P.
    Strauss, Karin
    Ceze, Luis
    Grossman, Dan
    Qadeer, Shaz
    2012 39TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE (ISCA), 2012, : 201 - 212
  • [40] Demand-Driven Mixture Preparation and Droplet Streaming using Digital Microfluidic Biochips
    Roy, Sudip
    Kumar, Srijan
    Chakrabarti, Partha P.
    Bhattacharya, Bhargab B.
    Chakrabarty, Krishnendu
    2014 51ST ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2014,