Research on Memory Race Recording Mechanism for Deterministic Multiprocessor Replay

Author
ZhuSuXia
Advisor
JiZhenZhou
School
Harbin Institute of Technology
Major
Computer System Architecture
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Doctoral dissertation
Year
2013
Downloads
2
Citations
0

Request the full text

Abstract

With the popularity of chip multiprocessors, shared memory multithreadedprogramming has become an important means to explore the parallel performanceof multi-core systems. However, running the same multithreaded program on thesame multi-core machine several times can potentially lead to different outcomesfor each run. This nondeterministic behavior poses many challenges for the writing,debugging and application of multithreaded programs.Two-phase multithreaded deterministic record-replay is an effective approachto solve these difficulties through reproducing multithreaded program’s execution.In the recording phase, nondeterministic information is recorded into logs toenable the second phase to deterministically replay the recorded execution. As themain source of nondeterministic information, memory races are frequent andconsume high performance overhead in recording. So memory race recordingbecomes the key technology to achieve deterministic replay. To challenge priormemory race recording mechanisms, this paper strives to study furter in memorylog size, hardware consumption, bandwidth overhead and replay speed.This paper proposes a chunk-based memory race recording mechanism. Thepoint-to-point memory race logging approach has advantage in replay speed andhas better application prospects, but it consumes too much hardware. So this paperstudies point-to-point logging style with low hardware overhead and achunk-based memory race recording mechanism is proposed. This mechanism usescurrent dependency which is constituted by current instruction counts of theconfliting threads to present a memory race, doesn’t need to store the exactinstruction counts corresponding conflicting instructions, and reduces the numberof conflicts to be recorded. In memory race detection and recording, a chunk-basedtransitive reduction algorithm is introduced. An approximate maximum timestampalgorithm is used to detect the conflicts of the uncached memory blocks. In itshardware implementation, one chunk count is stored as the logic timestamp foreach cache block and hardware consumption is reduced greatly. To optimizememory race log further, it uses an interval instruction count instead of theinstructions count. Simulation results show that low hardware comsumption, smallmemory race log and small bandwidth overhead are achieved.This paper proposes a cyclic memory race recording mechanism basedsignature. In order to support memory race recorder, the original cache structure ismodified in prior mechanisms. This modification can introduce design challenges for multiprocessors. So a cyclic memory race recording mechanism basedsignature is proposed. This mechanism uses signature which is an efficienthardware implementation and can achieve better time and space efficiency todetect memory conflict. It adds one read signature and one write signature for eachchunk and detects conflict through the adding and test operation on signatureinstead of the read and write operation on cache. In its hardware implementation,each processor only adds several signatures with small size. Hardwareconsumption is reduced further for the point-to-point logging approach and theoriginal cache need no change. On this basis, a cyclic dependency is proposed toreduce the the continuous current dependencis with the same direction andoptimzes the memory race log on the basis of replaying programs deterministicly.In its hardware implementation, a direction detection mechanism with smallhardware detects continuous current dependencies with the same direction andcyclic dependencies are logged into memory race log. Simulation results show thathardware consumption, memory race log and bandwidth overhead have beenimproved greatly compared with prior point-to-point mechanisms.This paper proposes a synchronization aware memory race recordingmechanism. Not all conflicts are memory races and not all memory races affectdeterministic replay. If those conflicts which have no effect on replay are filteredout in recording phase, memory race log will be reduced significantly. So asynchronization aware memory race recording mechanism is proposed. In thismechanism, the impact on deterministic replay of the conflicts introduced bysynchronization operations is analyzed offline, and they are divided into harmfulsynchronization conflicts which affect dterministic replay and benignsynchronization conflicts which don’t affect dterministic replay. By adding twonew instructions, it can identify two synchronization operations including lock andbarrier, and prohibit the memory addresses which introduce benignsynchronization onflicts add into signatures in conflict detection stage. So thissynchronization aware recording mechanism filters out the benign synchronizationconflicts from memory race log. Simulation results show that memory race log isreduced significantly and small bandwidth overhead is also achieved.This paper proposes a separate memory race recording mechanism. Replayspeed is a key aspect to measure a memory race recorder. However prior parallelreplay is low-efficiency. In order to improve parallel replay speed, this paperproposes a separate memory race recording mechanism. In this mechanism, currentdependencies are recorded separately. The reply in coherence protocol records thepredecessors of current dependencies and the requestor records the successors. Only a conflict bit is appended on the coherence response message, and thecommunication overhead is reduced significantly in recording phase. At the sametime, it introduces an adaptive log format with two sizes. Proccessor can select alog format with appropriate size to record predecessors and successors, and thesize of each log is reduced. More importantly, in this separate logging method, thepredcessors can create and send wake-up messages for successors purposely, andthe efficiency of replay is improved significantly in replay phase. Simulationresults show that the replay speed, memory race log and bandwidth overhead allbehave better.The four memory race recording mechanisms proposed in this paper improvethe performance of point-to-point logging approach in the following five aspects:the memory race log, hardware consumption, bandwidth overhead, replay speedand applicability. They also have obvious advantages compared to other recordersin the following aspects: memory race log, bandwidth overhead, replay speed andapplicability.

Table of contents

Summary 4-7 Abstract 7-16 Chapter 1 Introduction 16-39 purpose and significance of 1.1 Background and research topics 16-17 1.2 introduces uncertainty repeat 17-23 1.2.1 deterministic repeat applications 18-20 1.2.2 deterministic repeat the research implementation 20-22 1.2.3 deterministic repeat of 22-23 1.3 memory memory competition and competition records current research 23 -34 1.3.1 memory competition 23-25 ?? 1.3.2 memory competition record current research 25-32 1.3.3 memory faces competition record the challenge 32-34 1.4 memory competition record performance evaluation method issues 34-35 1.5 with the results of this study 35-37 1.5 .1 issue of this paper 35-36 1.5.2 the main contribution of this paper organizational structure 36-37 1.6 article 37-39 Chapter 2 competition segmented memory recording mechanism 39-58 2.1 Introduction 39 2.2 background 39-43 2.2.1 point point record principle and optimization methods point 41-42 2.2.2 logging mechanism implemented in hardware 42-43 2.3 segmented memory competition recording 43-48 2.3.1 expressed sequence occurred with the current conflict 43-44 impact of the current sequence of a repeat occurrence 2.3.2 44-45 2.3.3 less based segmentation algorithm can be deduced about 45-47 2.3.4 record has been replaced by a cache conflict 47-48 2.4 based segmentation memory competition detection and recording 48-49 2.5 optimize memory competition log 49-50 2.6 segmented memory competition logger 50-53 <br / > 2.6.1 hardware structure 50-51 2.6.2 segmented memory competition record algorithm 51-53 2.7 simulation results and evaluation 53 - 57 2.8 Summary 57-58 Chapter 3 memory competition based on circular logging mechanism signatures 58-75 3.1 Introduction 58 3.2 signature-based conflict detection 58-63 3.2.1 principle signed 58-60 3.2.2 signature-based conflict detection 60-63 3.3 occurred cyclic order to optimize memory competition log 63-67 3.3.1 currently occurring sequence nbsp cyclic sequence occurs approximately minus ; 63-64 3.3.2 The impact of a repeat loop sequence occurs 64 3.3.3 records cycles occur order 64-66 3.3.4 optimization loop sequence occurs 66 - 67 3.4 signatures to achieve competitive circulating memory recorder 67-69 3.4.1 hardware structure 67 3.4.2 signature-based cyclic memory competition record algorithm 67-69 3.5 simulation results and evaluation 69-74 3.6 Summary 74-75 Chapter 4 Synchronization sensitive memory competition logging mechanism 75-92 4.1 Introduction 75 4.2 background 75-77 4.3 synchronization conflicts 77-83 4.3.1 synchronization conflicts 77-78 4.3.2 divided synchronization conflicts 78-82 4.3.3 synchronization conflicts filtering mechanism 82 - 83 4.4 synchronous memory competition sensitive detection and recording 83-84 4.5 sync competition sensitive memory recorder 84-87 4.5.1 hardware structure 84 4.5.2 software interfaces 84-87 4.5.3 synchronous memory competition sensitive recording algorithm 87 4.6 simulation results and evaluation 87-90 4.7 Summary 90-92 Chapter 5 separate competing memory recording mechanism 92-107 5.1 Introduction 92 5.2 memory competition recording 92-97 5.2.1 separate memory competition recording 94-95 5.2.2 adaptive memory competition record format 95-97 5.3 repeat strategy 97 5.4 discrete memory competition detection and recording 97 5.5 discrete memory devices nbsp repeat competition record ; 97-102 5.5.1 hardware structure 97-98 5.5.2 separate memory competition record algorithm 98-100 5.5.3 separate memory heavy competition algorithm 100-102 5.6 simulation results and evaluation 102-106 5.7 Summary 106-107 conclusion 107-110 References published during 110-120 PhD thesis and other outcomes 120-123 Thanks 123 - 124 CVs 124

Related dissertations

  1. The Design and Implementation of Vector Memory Unit of Multi-Width SIMD DSP
  2. A Power Model Combined of Architectural Level and Gate Level for Multicore Processors
    HuZuo ·Hunan University ·2013 ·Master's thesis
  3. On-Chip Cache Management with Performance Monitoring Hardware Support
    LiuYu ·University of Science and Technology of China ·2013 ·Doctoral dissertation
  4. Research on Analog Space-Time Codes for Ultra-Wideband Communications
  5. Study on Transactional Memory Programming and Software Library Optimization of Tera-Flops Computer KD-50-I
  6. Research of Multi-level Parallelism Programming Pattern for Hybrid Parallel Computing Environment
    WuHuaBei ·Tianjin University ·2009 ·Doctoral dissertation
  7. Study of Some Key Problems of High Performance Computer
    LiZuo ·University of Science and Technology of China ·2009 ·Doctoral dissertation
  8. Analysis and Implementation of Cache Coherence Protocols for CMP
  9. WCDMA mobile station receives a number of key technology research and achieve
  10. Analysis of Cache Misses in Chip Multiprocessor Using Simics
    Mohamed Boukhary(BoHaLi) ·Hunan University ·2010 ·Master's thesis
  11. Research on Cooperative Cache Within Virtual Machines Based on Multiprocessor Platform
  12. Simulation of Cache on Chip Multiprocessor
  13. Analysis of object Java program single assignment
    LiJian ·Fudan University ·2011 ·Master's thesis
  14. All-digital high-speed burst demodulator design and implementation of communication
  15. Spatio-Temporal Data Prefetching
    LiuJingWei ·Zhejiang University of Technology ·2011 ·Master's thesis