Study on Program Performance Optimization in Multi-Core Systems
- Author
- ZhangZuo
- Advisor
- XuZuoLong
- School
- University of Science and Technology of China
- Major
- Computer Software and Theory
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Doctoral dissertation
- Year
- 2010
- Downloads
- 208
- Citations
- 3
- Program performance optimization
- Multi-Core system
- thread scheduling
- Multi-thread program scalability performance optimization
Abstract
The multi-core processor integrates multiple processor cores on a single chip which can run multiple threads simultaneously. Over the years, the number of transistors on a processor chip grows constantly, and the design of processor becomes more and more complex. But for the power and some other aspects, the clock frequency can not increase more. With the processor manufacturers introducing their multi-core processors, multi-core systems become popular in our work and life. And the number of cores in a chip is increasing constantly. The popularity of multi-core processors brings enormous challenges to application program. In a multi-core processor, the computing power of each core is not enhanced. It combines multiple processor cores to provide powerful computing ability. The traditional serial applications can not directly improve performance by the increasing of processor cores. To fully use computing power of multi-core processor, we must run parallel program or multiple programs concurrently on the system.This paper studies program performance optimization on multi-core system by two perspectives, application program performance optimization and overall system performance optimization. The major work and innovation of this paper are as follows:1. For application program performance optimization in multi-core systems, this paper studies serial program performance optimization methods, parallel program design methods and parallel program performance optimization methods. To use computing power of multiple cores, we need design and implemation parallel algorithm for programs. To use computing power of multiple cores more fully, we need optimize prallel program performance. The parallel program performance optimization methods studied in this paper include improving load balance by increasing tasks number and reducing tasks size, choosing the best affinity policy between threads and processor cores, designing lock-free structure to reduce synchronization overhead, eliminating false sharing of cache between threads and so on.2. This paper applies these performance optimization methods to several image future extraction and Markov decision process solving programs. Experiment results show that the performance of these programs is improved much, and this verifies the program performance optimization methods studied in this paper can effectively improve the program performance in multi-core systems.3. For overall system performance optimization, this paper studies the threads contention problem on the shared last level cache of multi-core systems, which may reduce performance of each thread and overall system. We proposes a method based on working set model to analysis and estimate the thread contention problem on the multi-core systems. We find that once total working set size of the threads exceed the shared cache space or the difference of temporal locality is great, the interference thread suffer is severe and the performance degradation is serious.4. This paper proposes a thread scheduling method based on the working set model. In this method, we design a set of monitoring unit on shared cache, which collect the working set size and temporal locality of threads by low overhead. We also propose an operating system thread scheduling policy, which select appropriate threads running simultaneously to ensure the working sets of threads can be kept in the shared cache. The experimental results show that the thread scheduling method based on working set model remits the threads contention on the shared cache, effectively improves the performance of overall system and each program.
Table of contents
Abstract 5-6
ABSTRACT 6-12
Chapter 1 Introduction 12-24
1.1 multicore processors 12-14
1.1.1 multi-core processors and the emergence and development 12-13
1.1.2 Typical multi-core system architecture 13-14
1.2 multicore systems application 14-15
1.3 Related work 15-18
1.3.1 program performance optimization 15
1.3.2 parallel algorithm design 15
1.3.3 parallel programs to achieve 15-16
1.3.4 content-based video information retrieval system and its performance optimization 16-17
1.3.5 multicore system thread scheduling 17-18
1.3.6 multicore system cache split 18
1.4 of this study the content and the main contribution 18-22
1.4.1 application performance optimization methods 19-20
1.4.2 multicore system thread scheduling 20-22
1.5 paper structure 22-24
Chapter 2 image color correlogram features optimized extraction procedures performance 24-36
2.1 Introduction 24-25
2.2 image color correlogram features extraction algorithm 25-26
2.3 image color correlogram features extracted serial program performance optimization 26-28
2.4 image color correlogram feature extraction parallel algorithm 28-29
2.5 image color correlogram features extracted parallel program optimization 29-31
2.6 Experimental results and analysis 31-34
2.6.1 experimental platform 31-32
2.6.2 experimental input data sets 32
2.6.3 Scalability performance and analysis 32-34
2.7 This chapter Summary 34-36
Chapter 3 image multidimensional autoregressive texture feature extraction procedures performance optimization 36-48
3.1 Introduction 36-37
3.2 image multidimensional autoregressive the texture feature extraction algorithm 37
3.3 image multidimensional autoregressive the texture feature extraction serial program performance optimization 37-39
3.4 image multidimensional autoregressive the texture feature extraction parallel algorithm 39-40
3.5 image multidimensional autoregressive texture features to extract parallel program performance optimization 40-43
3.5.1 load balancing, performance optimization 40-41
3.5.2 associated threads to processor 41-43
3.6 Experimental results and analysis 43-46
3.6.1 Scalability performance and analysis 43-46
3.7 This chapter Summary 46-48
Chapter 4 image Gabor texture feature extraction procedures performance optimization 48-58
4.1 Introduction 48
4.2 image Gabor texture features extraction algorithm 48-49
4.3 image Gabor texture features to extract serial program performance optimization 49-51
4.3.1 using the Intel Math Kernel Library 49-50
4.3.2 full use of Single Instruction Multiple Data instructions 50-51
4.3.3 serial optimization effects 51
4.4 image Gabor texture features extracted parallel algorithm 51-53
4.4.1 Gabor filter task-level parallel algorithm 51-52
4.4.2 Gabor filter within the data-level parallel algorithm 52-53
4.5 Experimental results and analysis 53-57
4.5.1 Scalability performance and analysis 53-57
4.5.2 different threads associated strategy Scalability performance 57
4.6 This chapter Summary 57-58
Chapter 5 image scale invariant feature transform program performance optimization 58-76
5.1 Introduction 58-59
5.2 image scale invariant feature transform algorithm 59-61
5.3 image scale invariant feature transform a serial program performance optimization 61-62
5.4 image scale invariant feature transform parallel algorithms 62-65
5.4.1 directly parallel algorithm 62-63
5.4.2 Improved parallel algorithms 63-65
5.5 image scale invariant feature transform parallel program performance optimization 65-67
5.5.1 to reduce inter-thread synchronization overhead 65-66
5.5.2 to eliminate cache false sharing 66-67
5.6 Experimental results and analysis 67-74
5.6.1 experimental environment 67-68
5.6.2 experimental input data sets 68
5.6.3 Performance of the program to enhance the experimental results 68-70
5.6.4 parallel program expansion put the results and analysis 70-72
5.6.5 storage system performance data and analysis 72-74
5.6.6 chip multiprocessor simulation platform experimental results 74
5.7 This chapter Summary 74-76
Chapter 6 Markov decision processes for solving parallel algorithm and performance 76-94
6.1 Introduction 76-77
6.2 Markov decision process model 77-79
6.2.1 Markov decision problem introduced 77
6.2.2 Markov decision process model 77-78
6.2.3 determine optimal action strategy 78-79
6.3 Dynamic Programming Solution of Markov decision processes 79-81
6.3.1 policy iteration algorithm and analysis 79-80
6.3.2 value iteration algorithm and analysis 80-81
6.4 solving Markov decision processes parallel algorithm 81-84
6.4.1 parallel policy iteration algorithm 81-82
6.4.2 parallel value iteration algorithm 82-84
6.5 Markov decision-making process for solving the parallel algorithm analysis 84-87
6.5.1 computational complexity and communication cost analysis 84-86
6.5.2 can be extended discharge analysis 86-87
6.5.3 load balancing analysis 87
6.6 Experimental results and analysis 87-93
6.6.1 Application Markov decision process control in real-time strategy game 88-89
6.6.2 experimental platform 89
6.6.3 parallel policy iteration procedure performance 89-91
6.6.4 parallel value iteration program performance 91-93
6.7 This chapter Summary 93-94
Chapter 7 multicore system thread scheduling method based on the working set model 94-116
7.1 Introduction 94-97
7.2 thread scheduling method framework based on the working set model 97-98
the
the 7.3 thread localized curves and monitors 98-101
7.3.1 thread locality curve 98-100
7.3.2 thread monitor 100-101
7.3.3 system monitor 101
The
the 7.4 thread working set size is estimated 101-103
7.5 unfair 103-105
7.6 thread scheduling policy 105-106
7.7 Experimental results and analysis 106-113
7.7.1 experimental platform 106-107
7.7.2 Metrics 107
7.7.3 working set model experiments 107-109
7.7.4 the validity of the method based on the working set model thread scheduling 109-111
7.7.5 with related work 111-113
7.8 This chapter subsections 113-116
Chapter 8 Summary and Outlook 116-120
8.1 of this paper mainly work 116-117
main contribution of this article 8.2 117-118
8.3 Future Work Looking 118-120
the
References 120-127
the
Appendix 1 working set model based thread scheduling strategy pseudo code 127-130
Acknowledgements 130-131
the
papers published during reading the research achievements 131-132
Related dissertations
- The Design and Implementation of Asynchronous Batch File Transmission System
- Design and Development of Network File Transfer System
- Tianjin Port Construction and Performance Optimization of GoTa Trunking System
- Research and Realization on P2P Communication Based on NAT Traversal
- Research on Performance Analysis and Optimization Techniques for Scientific Programs
- Research on Performance Optimization of Parallel Discrete Event Simulaiton for Complex System Application
- Research and Implementation of Network Load Balance on Multi-core System
- Research on Code Optimization Combining Empirical Search and the Analytical Model
- Piece Scheduling Algorithm and Memory Management Mechanism in the Embedded System
- The Research of Thread Scheduling Technology in Dynamic SMT Architecture Base on EPIC
- QoS Mechanisms on a Pipeline Web Server-KETA
- Real-Time System on Java Virtual Machine
- Research and Implementation of Lawful Interception Rules in IP Network
- Research of Mechanism in Interconnect and Access on Block Processing
- Research and Implementation Techniques on Thread Scheduling Method and Its Testing Tools
- Development of Monitoring Software of CBM Well Logging Based on Infrared Detection
- vxWorks operating system, multi -threaded implementation of
- Research on Multi-core System Memory of Management Algorithm
- Analysis and Application of Embedded Real-Time Operating System RT-Thread