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 条
  • [1] A distributed framework for demand-driven software vulnerability detection
    Zhang, Dazhi
    Liu, Donggang
    Csallner, Christoph
    Kung, David
    Lei, Yu
    JOURNAL OF SYSTEMS AND SOFTWARE, 2014, 87 : 60 - 73
  • [2] Hardware Performance Counters for Embedded Software Anomaly Detection
    Ott, Karl
    Mahapatra, Rabi
    2018 16TH IEEE INT CONF ON DEPENDABLE, AUTONOM AND SECURE COMP, 16TH IEEE INT CONF ON PERVAS INTELLIGENCE AND COMP, 4TH IEEE INT CONF ON BIG DATA INTELLIGENCE AND COMP, 3RD IEEE CYBER SCI AND TECHNOL CONGRESS (DASC/PICOM/DATACOM/CYBERSCITECH), 2018, : 528 - 535
  • [3] On the Performance of Malware Detection Classifiers Using Hardware Performance Counters
    Zeraatkar, Alireza Abolhasani
    Kamran, Parnian Shabani
    Kaur, Inderpreet
    Ramu, Nagabindu
    Sheaves, Tyler
    Al-Asaad, Hussain
    2024 INTERNATIONAL CONFERENCE ON SMART APPLICATIONS, COMMUNICATIONS AND NETWORKING, SMARTNETS-2024, 2024,
  • [4] Using high performance techniques to accelerate demand-driven hydraulic solvers
    Guidolin, Michele
    Kapelan, Zoran
    Savic, Dragan
    JOURNAL OF HYDROINFORMATICS, 2013, 15 (01) : 38 - 54
  • [5] Strategies and software support for the management of hardware performance counters
    Carna, Stefano
    Marotta, Romolo
    Pellegrini, Alessandro
    Quaglia, Francesco
    SOFTWARE-PRACTICE & EXPERIENCE, 2023, 53 (10): : 1928 - 1957
  • [6] Malicious Firmware Detection with Hardware Performance Counters
    Wang, Xueyang
    Konstantinou, Charalambos
    Maniatakos, Michail
    Karri, Ramesh
    Lee, Serena
    Robison, Patricia
    Stergiou, Paul
    Kim, Steve
    IEEE TRANSACTIONS ON MULTI-SCALE COMPUTING SYSTEMS, 2016, 2 (03): : 160 - 173
  • [7] On the Detection of Kernel-Level Rootkits Using Hardware Performance Counters
    Singh, Baljit
    Evtyushkin, Dmitry
    Elwell, Jesse
    Riley, Ryan
    Cervesato, Iliana
    PROCEEDINGS OF THE 2017 ACM ASIA CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY (ASIA CCS'17), 2017, : 483 - 493
  • [8] Hardware Performance Counters based Runtime Anomaly Detection using SVM
    Bin Abbas, Muhamed Fauzi
    Kadiyala, Sai Praveen
    Prakash, Alok
    Srikanthan, Thambipillai
    Aung, Yan Lin
    2017 TRON SYMPOSIUM (TRONSHOW), 2017,
  • [9] Run-Time Hardware Trojan Detection Using Performance Counters
    Elnaggar, Rana
    Chakrabarty, Krishnendu
    Tahoori, Mehdi B.
    2017 IEEE INTERNATIONAL TEST CONFERENCE (ITC), 2017,
  • [10] HiPeR - Early Detection of a Ransomware Attack using Hardware Performance Counters
    Anand, P. Mohan
    Charan, P. V. Sai
    Shukla, Sandeep K.
    DIGITAL THREATS: RESEARCH AND PRACTICE, 2023, 4 (03):