RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System

碩士 === 國立成功大學 === 電腦與通信工程研究所 === 102 === As the multicore platform becomes more and more widespread, programmers usually adopt multithreaded programing to improve the performance. However, multithreaded applications are prone to cause synchronization bugs, such as data races. Unfortunately, existing...

Full description

Bibliographic Details
Main Authors: Ying-WeiWang, 王應瑋
Other Authors: Chung-Ho Chen
Format: Others
Language:en_US
Published: 2014
Online Access:http://ndltd.ncl.edu.tw/handle/08214581690445543603
id ndltd-TW-102NCKU5652059
record_format oai_dc
spelling ndltd-TW-102NCKU56520592016-03-07T04:11:03Z http://ndltd.ncl.edu.tw/handle/08214581690445543603 RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System RaceWeir: 用於多核心平台系統之硬體輔助資料競爭偵測機制 Ying-WeiWang 王應瑋 碩士 國立成功大學 電腦與通信工程研究所 102 As the multicore platform becomes more and more widespread, programmers usually adopt multithreaded programing to improve the performance. However, multithreaded applications are prone to cause synchronization bugs, such as data races. Unfortunately, existing software race detectors are slow in performance while the published hardware-assisted race detectors are imprecise in reporting data race events. In this thesis, we propose two hardware-based data race detection mechanisms to catch synchronization bugs in a multicore system. We first develop a hardware implementation of a hybrid-based data race detection mechanism based on the lockset and happens-before algorithms. We find that the way this hybrid detection mechanism handles the barriers adversely affects the detection capability of the happens-before. We remove most of the storage and mechanism in lockset and only keep the lock state and access ID for each variable. Based on this, we propose the improved happens-before detection mechanism which is proved to be a precise data race detector and has less cache area requirement. To be precise in data race detection, we also develop the backup and restore technique to eliminate the cache eviction problem for the cached metadata. We evaluate the two proposed detection mechanisms by ten SPLASH2 benchmarks. Through the simulations, we have found the existing races in SPLASH2 benchmarks and our method has significantly enhanced the detection capability due to the employment of the backup and restore technique. The improved happens-before detection mechanisms has caused about 1.22x-2.55x of overheads compared to the normal execution time. Chung-Ho Chen 陳中和 2014 學位論文 ; thesis 61 en_US
collection NDLTD
language en_US
format Others
sources NDLTD
description 碩士 === 國立成功大學 === 電腦與通信工程研究所 === 102 === As the multicore platform becomes more and more widespread, programmers usually adopt multithreaded programing to improve the performance. However, multithreaded applications are prone to cause synchronization bugs, such as data races. Unfortunately, existing software race detectors are slow in performance while the published hardware-assisted race detectors are imprecise in reporting data race events. In this thesis, we propose two hardware-based data race detection mechanisms to catch synchronization bugs in a multicore system. We first develop a hardware implementation of a hybrid-based data race detection mechanism based on the lockset and happens-before algorithms. We find that the way this hybrid detection mechanism handles the barriers adversely affects the detection capability of the happens-before. We remove most of the storage and mechanism in lockset and only keep the lock state and access ID for each variable. Based on this, we propose the improved happens-before detection mechanism which is proved to be a precise data race detector and has less cache area requirement. To be precise in data race detection, we also develop the backup and restore technique to eliminate the cache eviction problem for the cached metadata. We evaluate the two proposed detection mechanisms by ten SPLASH2 benchmarks. Through the simulations, we have found the existing races in SPLASH2 benchmarks and our method has significantly enhanced the detection capability due to the employment of the backup and restore technique. The improved happens-before detection mechanisms has caused about 1.22x-2.55x of overheads compared to the normal execution time.
author2 Chung-Ho Chen
author_facet Chung-Ho Chen
Ying-WeiWang
王應瑋
author Ying-WeiWang
王應瑋
spellingShingle Ying-WeiWang
王應瑋
RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System
author_sort Ying-WeiWang
title RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System
title_short RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System
title_full RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System
title_fullStr RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System
title_full_unstemmed RaceWeir: Hardware-Assisted Data Race Detection in Multi-core System
title_sort raceweir: hardware-assisted data race detection in multi-core system
publishDate 2014
url http://ndltd.ncl.edu.tw/handle/08214581690445543603
work_keys_str_mv AT yingweiwang raceweirhardwareassisteddataracedetectioninmulticoresystem
AT wángyīngwěi raceweirhardwareassisteddataracedetectioninmulticoresystem
AT yingweiwang raceweiryòngyúduōhéxīnpíngtáixìtǒngzhīyìngtǐfǔzhùzīliàojìngzhēngzhēncèjīzhì
AT wángyīngwěi raceweiryòngyúduōhéxīnpíngtáixìtǒngzhīyìngtǐfǔzhùzīliàojìngzhēngzhēncèjīzhì
_version_ 1718199716510957568