Cache Coherence Techniques for Chip Multiprocessor Architecture

Author
LiGongMing
Advisor
AnHong , HuWeiWu
School
University of Science and Technology of China
Major
Computer System Architecture
Classification
TP333 Memory
Degree
Doctoral dissertation
Year
2013
Downloads
95
Citations
0

Request the full text

Abstract

Many modern computer systems and most multicore chips support shared memory in hardware. In a shared memory system, each of the processor cores may need private cache. In this case, the system needs a hardware cache coherence model to prevent incoherence among all private caches. Prior researches about cache coherence model mainly focus on multi-processors system. But for chip multiprocessor architecture, the techniques and hardware constraint are different, several problems arise while implementing cache coherence model on a single chip. Especially, a function expandsion of cache coherence to support hardware transactional memory and thread-level speculation bring some opportunities for simplifying parallel programming. So the research about the function expandsion and performance optimization of cache coherence model gains more and more attentions from academia and industry now.This dissertation focuses on the function expandsion and performance optimization of cache coherence model. By exploiting the potential advantages of the cache coherence model in function and performance, the transistor resources on a single chip can achieve fulluse; also the performance gains improvement on the basis of ensuring the scalability of the chip multiprocessor, which is benefit to make it suitable for the future multicore and manycore architecture. The following parts show the major research contributions in this dissertation.The first research in this dissertation focuses on the function expandsion of cache coherence model. The goal is to provide an expanded cache coherence model which can support hardware transactional memory and thread level speculation concurrently and efficiently. Hardware transactional memory and thread-level speculation can be implemented by expanding the function of cache coherence. Because of the similar hardware requirement, a unique hardware can be provided to support these two mechanisms simultaneously. But considering of the limited hardware resource and energy requirement in a single chip, and the increasing requirement for performance from most modern applications, one challenge is how to expand the function of cache coherence model efficiently. This dissertation focuses on providing unified hardware to support both transactional memory and thread level speculation mechanism efficiently. The major research contributions include:(1) we proposed TT-Dir, a hardware mechanism based on cache coherence model, which can support both transactional memory and thread level speculation.(2) Fast rollback mechanism is proposed in TT-Dir to handle slow abort problem in eager version management.(3) We proposed conflict-tolerant mechanism to tolerant write-after-write and write-after-read data dependences in thread level speculation mechanism. Also we proposed an efficient ordering mechanism for transactions. With this mechanism, conflict-tolerant mechanism can also be used by transactional memory system.The second research in this dissertation focuses on the optimization of cache coherence mode, which contains two aspects of performance and scalability. To keep pace with the ever-increasing throughput and performance requirement from most modern applications, the cache coherence models in commercial servers running these applications have to improve the performance. Besides, as the number of cores increase in a single chip, the scalability of directory coherence model becomes a new problem because of the hardware requirement of directory and dynamic energy. In this dissertation we proposed coherence model optimization on both performance and scalability. We first divided the implantation of cache coherence model into two levels:the network-on-chip (NoC) related level, and the behavior related level. Cache coherence model is explored and investigated in the views of these two levels. The major contributions include:(1) For the NoC related level, we took the advantage of the observation that coherence message occurs and proposed PPB (Phased-Priority Based) cache coherence model. PPB model decouples a coherence transaction and introduces the idea of "phase" message. The phase is considered as the priority of the message. Additionally, we also introduced the detailed implementation of PPB model, which includes the allocation of phase number and the priority-based arbitrators in on-chip network.(2) For the behavior related level, we proposed Loc-Dir coherence model, a hardware optimization on both performance and scalability. Loc-Dir adopts two-level directory organization to reduce the hardware cost of directory, which is benefit for the scalability of the whole system. Then it introduces prediction mechanism to implement the direct access among all private caches in a single chip, which can be used to solve the directory-based indirection problem. And in the implementation of this prediction mechanism, we proposed a new pattern-base predictor to scale the space of address that can be predicted. Finally we further optimized the Loc-Dir model based on the observation of sharing patterns in applications. Also we changed the policy of private cache replacement to make it suitable for our prediction mechanism.Based on the work of this dissertation, some important conclusions are drawn as following:(1) Cache coherence model can be used by parallel programming model to make the management of shared data easy.(2) The relationship of NoC and cache coherence mechanism is mutual coordination and restraint. The messages from cache coherence may increase the traffic of NoC, and the transferred speed of coherence messages may affect the performance of coherence model directly. So a novel interface is needed to implement the coordinated management for both NoC and cache coherence model.(3) For the directory-based coherence model, hierarchy combined with inclusion enables efficient scaling of the storage cost. Besides, the data sharing patterns can be used to improve the performance of cache coherence model efficiently.

Table of contents

Summary 5-7 ABSTRACT 7-16 Chapter 1 Introduction 16-34 1.1 Background 16-20 1.1.1 -chip multi-core processor architecture 16-17 1.1.2 -chip multi-core processor architecture challenges facing 17-18 1.1.3 chip storage model 18-20 1.2 cache coherency model 20-24 1.2.1 concept 21-22 1.2.2 achieve 22-23 1.2.3 -chip network significance cache coherency model 1.3 on 23-24 24-26 1.4 cache several key issues consistency model technology research 26-30 1.4.1 extension model 26-28 1.4.2 performance and scalability optimization model 28-30 1.4.3 Summary 30 1.5 dissertation research objectives and main tasks 30-32 1.6 thesis structure 32-34 Chapter 2 research work 34-72 2.1 basic cache coherency model 34-40 2.1.1 conformance status and message 34-35 2.1.2 listens forms -based cache coherence protocol 35-36 2.1.3 directory structure based cache coherence protocol 36 - 39 2.1.4 Token -based cache coherence protocol 39-40 2.2 extensions model 40-51 2.2.1 FlexTM 40-44 2.2.2 FasTM 44-48 2.2.3 TLS model optimization model 48-51 2.3 performance oriented 51 - 65 2.3.1 performance Optimization model protocol behavior based 51-53 2.3.2 performance optimization model based prediction mechanism 53-56 2.3.3 performance optimization model based on the communication mode 56-65 2.4 optimization model for the expansion of 65-70 2.5 Summary 70-72 Article 3 TM and TLS based cache coherency mechanism model 72-106 3.1 Introduction 72-76 3.1.1 hardware model proposed 73 - 74 3.1.2 factors Affecting performance analysis 74-76 3.1.3 Summary 76 3.2 TT-Dir model architecture 76-81 3.2.1 speculated state management 77-78 3.2.2 conflict Detection 78-79 3.2.3 fast retraction mechanism 79-80 3.2.4 sequencing mechanism 80-81 3.3 tolerate conflict mechanism 81-90 3.3.1 coherence protocol behavior 81-83 3.3.2 conflict tolerate table updates 83-84 3.3.3 multiple data owners 84-85 3.3.4 submit rollback 85-87 3.3.5 buffer overflow 87-88 3.3.6 Affairs dynamic sequencing mechanism 88-90 3.4 TT-Dir evaluation model 90-103 3.4.1 evaluation methods 90-92 3.4.2 benchmark 92-94 3.4.3 speculative multithreading evaluation mechanism analysis 94-102 3.4.4 affairs storage mechanism evaluation analysis 102-103 3.4.5 hardware evaluation 103 3.5 related work contrast discussion 103-105 3.6 Summary directory cache 105-106 Chapter 4 stages with priority support a consistent model 106-122 4.1 Introduction 106-108 4.2 background 108-109 4.2.1 cache coherency protocol 108-109 4.2.2 on-chip networks 109 4.3 PPB cache coherence protocol model 109-114 4.3.1 cache coherency protocol analysis 110-111 <br / > 4.3.2 PPBcache achieve consistency model 111-114 4.3.3 -chip network priority support mechanisms 114 4.4 model evaluation 114-120 4.4.1 evaluation methods and testing procedures set 115-116 4.4.2 evaluation results 116-120 4.5 comparison discuss related work 120 -121 4.6 Summary 121-122 Chapter 5 cache coherency model based local directory structure 122-156 5.1 Introduction 123 -125 5.1.1 directory structure 123-124 5.1.2 performance Optimization 124 5.1.3 Summary 124-125 <br / > 5.2 Loc-Dir model architecture achieve 125-127 5.3 Loc-Dir directory model mechanism 127-135 5.3.1 directory structure 127 - 129 5.3.2 directory management mechanism 129-131 5.3.3 coherence protocol behavior and operating 131-135 5.4 Loc-Dir performance optimization model operation 135-142 5.4.1 prediction mechanism 136-139 5.4.2 cache replacement strategy 139 5.4.3 optimized communication modes 139-142 5.5 model evaluation 142-154 5.5.1 evaluation methods and testing procedures set 142-144 5.5.2 and evaluation results analysis 144-154 5.6 comparison discuss related work 154 5.7 summary 154-156 Chapter 6 Full Summary 156 - 162 6.1 research work and achievements 157-159 6.2 the main innovation 159-160 6.3 further work 160-162 References 162-176 Thanks 176-178 papers published during the reading 178-180 participate in research projects during the reading 180

Related dissertations

  1. Research on Conflict Management Strategies in Multicore-oriented Software Transactional Memory
    XieYing ·Northeastern University ·2013 ·Master's thesis
  2. Key Techniques Research of Memory in Homogeneous General Purpose Stream Processor
  3. Optimizations of Memory Subsystem for Chip Multiprocessor Systems
    LiJianHua ·University of Science and Technology of China ·2013 ·Doctoral dissertation
  4. Research and Implementation of Work-content-driven Distributed Cache System
    ZhangTangHua ·Dalian Maritime University ·2013 ·Master's thesis
  5. Study on Parallel Optimizations for Transactional Memory
  6. A Distributed Programming Framework Based on Transactional Memory
  7. Research and Implementation of Dynamically Reconfigurable Cache Coherence Protocol for Many-Core Processor
    ZhouChuan ·Shanghai Jiaotong University ·2013 ·Master's thesis
  8. Rcsarch and Design of Cache Coherence for Mu11i-core Processors
  9. Study of Chip Multiprocessors Applied to Aerospace
    PengHePing ·Northwestern Polytechnical University ·2006 ·Doctoral dissertation
  10. Study on Parallel Programming Models
    YaoZhen ·University of Science and Technology of China ·2006 ·Doctoral dissertation
  11. The Design and Simulation of High Efficient Cache Protocol in Multi-processors System
  12. Study on Transactional Memory Programming and Software Library Optimization of Tera-Flops Computer KD-50-I
  13. Certifying Concurrent Porgrams Using Transactional Memory
    LiLong ·University of Science and Technology of China ·2008 ·Doctoral dissertation
  14. Study of Some Key Problems of High Performance Computer
    LiZuo ·University of Science and Technology of China ·2009 ·Doctoral dissertation
  15. Verifying Parallel Programs Using Software Transactional Memory
    LiYong ·University of Science and Technology of China ·2011 ·Doctoral dissertation
  16. Research on Key Techniques for NUMA-aware Transactional Memory
  17. Research on Nested Transactional Memory of Object-oriented Program
    CaoMingTeng ·Zhejiang University ·2008 ·Master's thesis
  18. Research and Development of Cache Coherence in Symmetric Multi-Processor
    XinLei ·Hefei University of Technology ·2007 ·Master's thesis
  19. Analysis and Implementation of Cache Coherence Protocols for CMP
  20. Scalable Hierarchical Cache Coherence catalog Method and Implementation