On-Chip Cache Management with Performance Monitoring Hardware Support
- Author
- LiuYu
- Advisor
- AnHong , LiGuoJie
- School
- University of Science and Technology of China
- Major
- Computer System Architecture
- Classification
- TP333 Memory
- Degree
- Doctoral dissertation
- Year
- 2013
- Downloads
- 17
- Citations
- 0
- Chip MultiProcessor
- shared resources management
- performancemonitoring
- memory load balance
- cache controlling
Abstract
Utilizing on-chip cache resources efficiently is a critical issue in Chip Multiprocessor research. Software transparent feature is a main advantage of hardware cache memory, but also means unaware of program’s memory accessing behaviors and different requests from multiple threads. On one hand, it brings inter-thread cache interferences while multiple threads running on a multi-core system; existing cache management schemes could not ensure performance of each program and will lead to unpredictable cache contention and poor system throughputs. On the other hand, it results in caching inefficiency of running programs especially single-threaded programs because software could not control cache space allocation, wasting plenty of on-chip cache space.This dissertation will focus on three aspects of cache resources management, including information monitoring of running programs, cache contention management of multi-threads and cache space allocation in software manner. We implemented a scheme for monitoring programs running behavior with low cost; improved system throughputs and performance stability while running multiple threads; provided cache controlling measures for single-threaded programs execution. The major research contributions of this dissertation include:(1) Based on performance monitoring units that embedded in modern processors, a low cost performance monitoring tool named LWM is implemented. The underlying information of running programs could be accessed at user level with the help of LWM. Performance event records are added in each task structure; providing system calling interface for events configuration. Besides, performance-counter overflows and error counting situation are properly handled in context-switches. Events monitoring precision and performance counter utilization are improved through an optimized hardware counter multiplexing mechanism.(2) Proposed the memory load concept and designed memory load balance scheduling algorithm to improve system throughputs and performance stability of running programs. With reference to load balance scheduling in operating system, memory load balance scheduling algorithm is implemented at user level, and doesn’t require modifying operating system kernel space; therefore, it could be implemented as an auxiliary facility of process scheduling mechanism. Comparing with other scheduling algorithms, MLB algorithm has better performance in weighted speedup and system throughputs; reducing a large number of off-chip memory requests. More importantly, the MLB algorithm has good stability, reducing performance deviation between different runs. It offers the possibility for implementing a task scheduling algorithm with fairness and reliability features.(3) Designed a cache controlling mechanism named VSCP, improved caching efficiency of single-threaded program. VSCP unifies whole system cache space and provides programmers with cache space allocation interface. Physically distributed caches are virtualized as a block of centralized controllable cache. Instead of parallelizing single-threaded program to maximize computing resources, VSCP avoids reprogramming efforts with highly utilization of cache resources. Besides, it has power-saving advantage because it enables a single thread running in a period of time. We got some important understandings through cache management research:(1) In the background of increasingly serious situation of "memory wall", memory accessing performance is very important for a single program execution and whole system throughputs. Reducing cache miss rate is becoming more importantly than instruction counts decrease.(2) Existing cache management schemes, including task scheduling of operating system and cache replacement policy, could not get information of inter-thread cache contention, which results in inefficient cache management. Cache management schemes should be implemented in thread-aware manner; otherwise, it could not provide assurance such as performance, fairness and quality of service features.(3) Software and hardware co-design should be the best choice for solving cache resources contention problem. We need to design new interfaces between application runtimes and the cache management, create better performance monitoring infrastructures (both in hardware and in software) that will permit better "observability" of what is happening inside the system, as well as create better mechanisms for fine-grained resource allocation in hardware. Addressingthese problems will require inter-disciplinary effort of operating system designers, hardware architects and application developers.Cache management schemes proposed in our work are practical and implemented on real system. These solutions have general versatility and could be referred to future system architectures.
Table of contents
Summary 5-7
ABSTRACT 7-13
LIST 13-16
table directory 16-17
Chapter 1 Introduction 17-29
1.1 background 17-20
1.1.1 multicore processors structural features 17-19
1.1. 2 on the cache structure 19-20
key technical issues cache resource management 1.2 20-26
1.2.1 runtime information gathering tasks 21-23
cache interference between multiple threads 1.2.2 23-25 ??
cache Manager 1.2.3 threaded internal data 25-26
1.3 papers research objectives and main tasks 26-27
1.4 paper structure 27-29
Chapter 2 multicore processor cache resource management related work 29-61 <br / > 2.1 cache partitioning technique 29-42
2.1.1 prediction thread can occupy cache space 29-32
2.1.2 cache allocation strategy 32 - 36
2.1.3 cache partition mechanism 36-42
2.2 thread scheduling to manage the cache utilization of resources 42-59
2.2.1 cache -aware thread scheduling nbsp competition ; 43-49
2.2.2 cache shared perception of thread scheduling nbsp thread scheduling shared resources on 49-52
2.2.3 oriented film ; 52-59 <br / > 2.2.4 thread scheduling Summary 59
2.3 Summary 59-61
Chapter 3 LWM: lower the cost of the program runtime performance monitoring mechanisms 61 - 89
3.1 background and related work 61-68
3.1.1 processor performance monitoring unit 61-63
3.1.2 processor performance monitoring unit work 63-64
3.1.3 performance Monitoring tools Overview 64-67
3.1.4 performance Monitoring unit Summary 67-68
3.2 user level low-cost performance monitoring mechanism 68-84
3.2.1 LWM implementation framework 68
3.2.2 user layer read performance counters 68-70 <br / > 3.2.3 configure performance monitoring unit 70-72
3.2.4 performance Counters time division multiplexing 72-75
3.2.5 performance counter overflow handling 75-79
3.2.6 kernel extension 79-82
3.2.7 tools package 82-84
3.3 experimental evaluation and Analysis 84 - 87
3.3.1 LWM verify the correctness 84-86
3.3.2 monitoring consuming analysis 86-87
3.4 Summary 87 - 89
Chapter 4 MLB: fetch achieve load balancing thread scheduling mechanism 89-115
4.1 CMP system task scheduling 89-96
4.1.1 user feasibility -level task scheduling 90-91
4.1.2 user level task scheduling problem to be solved 91-93
4.1.3 task scheduling framework described 93-96
4.2 fetch load balancing scheduling algorithm components 96-104
4.2.1 scheduling algorithm evaluation 96
4.2.2 performance prediction tools 96-98
4.2.3 thread scheduling decisions 98-99
4.2.4 algorithm Description 99-104
4.3 experimental evaluation and Analysis 104-112
4.3.1 test platform and program 104-106
4.3.2 analysis of experimental results 106-107
4.3.3 characteristics of scheduling algorithm influence 107-110
4.3.4 scheduling period on system performance 110-111
scheduling algorithm performance stability analysis 4.3.5 111-112 <br / > 4.4 Summary 112-115
Chapter 5 VSCP: virtual shared cache space is divided mechanism 115-137
5.1 Introduction 115-116 <br / > 5.2 cache-Control technical Overview 116-121
storage hierarchy 5.2.1 chip and memory access latency 116-119
5.2.2 using software cache to improve data cache is divided efficiency 119-120
5.2.3 on dispersion technology combined use of data distribution chip cache space 120-121
5.3 VSCP technology 121-126
5.3.1 matrix multiplication example 122-124
5.3.2 VSCP system implementation 124-126
5.4 results and analysis 126-131 <br / > 5.4.1 test Procedure 126-127
5.4.2 test platform 127-128
5.4.3 program performance 128-131
5.5 program cache miss rate is reduced and performance relationship analysis relationship 131-135
5.5.1 cache miss rate and the performance of the program between 131-133
5.5.2 VSCP implementation cost analysis 133-135
5.6 summary 135-137
Chapter 6 Full Summary 137-143
6.1 nbsp research work and achievements ; 137-139
6.2 the main innovation 139-140
6.3 further research 140-143
References 143-151
Thanks 151-153
during reading published research papers and obtained 153-155
participate in research projects during the reading 155
Related dissertations
- A Power Model Combined of Architectural Level and Gate Level for Multicore Processors
- Research on Memory Race Recording Mechanism for Deterministic Multiprocessor Replay
- Study on Transactional Memory Programming and Software Library Optimization of Tera-Flops Computer KD-50-I
- Research of Multi-level Parallelism Programming Pattern for Hybrid Parallel Computing Environment
- Study of Some Key Problems of High Performance Computer
- Analysis and Implementation of Cache Coherence Protocols for CMP
- Analysis of Cache Misses in Chip Multiprocessor Using Simics
- Research on Cooperative Cache Within Virtual Machines Based on Multiprocessor Platform
- Simulation of Cache on Chip Multiprocessor
- Spatio-Temporal Data Prefetching