Linux Scheduling Algorithm Optimization and Extension for Multi-core Processor
- Author
- KouLiTao
- Advisor
- LiJinHui
- School
- Xi'an Technological University
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 298
- Citations
- 0
- Linux multicore scheduling algorithms
- Secondary cache hit rate
- Multicore processor line
- Another visit to the distance
Abstract
The main subject of study and how to better support the Linux operating system on Intel multi-core processors . In order to better support the Linux operating system on Intel multi-core processors , this article first in-depth study of the architecture of multicore processors . The Linux operating system has been well on symmetric multi- processor support , and multi-core processors with symmetric multi-processor architecture is very similar to the Linux operating system designed to support multi-core processors for symmetric multiprocessing the Linux source code as a basis. This study analyzes the multi-core processors and symmetric multiprocessor similarities and differences . Analysis of multi-core processors , found two : one of the key factors that affect the performance multicore processor L2 cache hit rate other is the utilization of multi-core processor line . Through in-depth study of these two areas , it is found that the greatest impact of these two factors is the mobilization procedures of the operating system . Therefore , these two issues , this paper proposes two kinds of scheduling algorithms , called improved balanced set of scheduling algorithms and thread group allocation accounting method based on the CPI . Next, the Linux kernel source code analysis . Which closely related to the scheduler code module . This includes the : thread management modules , system initialization module , memory management module , the file system module . This article need to be modified and re - design of the module is the thread management module , this paper focused description of this part of the source code . Finally , according to the above study , the paper designs and implements a new fusion of these two algorithms Linux multicore scheduling algorithms . And through a set of threads running on a Linux multicore scheduling algorithm design and this article on the original Linux scheduling algorithm to test its performance improvement . The primary measurement is the improvement in overall system throughput . Experimental data to illustrate the usefulness of this paper, the design of Linux multicore scheduling algorithms .
Table of contents
Abstract 3-4
Abstract 4-8
1 Introduction 8-13
1.1 The significance of the topic 8
1.2 Linux multicore scheduling algorithms and task 8-9
1.3 related technology development status and trends analysis 9-10
1.4 application prospects 10-11
1.5 This paper studies the content 11-13
2 on the Intel multi-core computer hardware system 13-25
2.1 multi-core processor architecture 13
2.2 Feasibility Analysis of multi-core technology to improve the performance of computer systems 13-15
2.3 multicore computer performance bottlenecks 15-17
the 2.3.1 secondary cache deletion rate 15-16
2.3.2 processor line utilization 16-17
2.4 multicore computer hardware systems on multi-core operating system support 17-22
2.4.1 multicore processor hardware support for data consistency 18-19
2.4.2 serialized instruction 19
the
a 2.4.3 distributed APIC system operating system support 19-20
2.4.4 firmware for operating system support 20-21
2.4.5 Hyper-Threading technology 21-22
2.5 Intel symmetric multi-processor and multi-core processors compare 22-25
2.5.1 symmetric multi-processor system architecture 22-23
2.5.2 symmetric multi-processor and multi-core processor, the same point 23-24
2.5.3 symmetric multi-processor and multi-core processors difference 24-25
the
3 linux2.4.0 symmetric multi-processor version of the kernel analysis 25-40
3.1 linux2.4.0 kernel architecture 25-33
3.1.1 Linux thread management module 27-30
3.1.2 Linux memory management module 30-31
the 3.1.3 Linux file system module 31-33
the various lock in the 3.1.4 Linux kernel 33
3.2 linux2.4 scheduling algorithm operating mechanism 33-39
the scheduler of
3.2.1 Linux2.4.0 the starting methods 33-35
the
the 3.2.2 Linux2.4.0 scheduler execution flow 35-39
3.3 linux2.4 scheduling algorithm its for multicore defects 39-40
4 optimized Linux scheduling algorithm to improve the performance of multi-core processors theoretical research 40-52
4.1 improved balanced set of scheduling algorithms 41-47
4.1.1 balanced set of scheduling algorithms About 41
4.1.2 balanced set of algorithms to problems encountered in the actual system 41-42
4.1.3 improved balanced set of scheduling algorithms 42-47
4.2 methods to improve the utilization of multi-core processor line 47-52
4.2.1 Experimental Analysis of scheduling algorithms to improve line utilization 47-50
4.2.2 CPI-based thread group allocation accounting method 50-52
5 Linux multicore scheduling algorithm design 52-68
5.1 Design and Linux multicore scheduling algorithms to use tools 52-54
5.1.1 C language and its compiler GCC 52
5.1.2 AT assembly language and its compiler environment AS 52-53
a 5.1.3 the makefile language and make tools 53
5.1.4 kernel debugging tools and debugging methods 53-54
5.2 system functional requirements and design 54-63
5.2.1 needs analysis 54
5.2.2 design ideas 54-55
5.2.3 multicore scheduling of the overall structure of 55-57
5.2.4 module detailed design 57-61
5.2.5 multicore scheduling program execution flow 61-63
5.3 Linux multicore scheduling algorithm of support demand 63-65
5.3.1 Linux multicore scheduling algorithm to improve the overall throughput of the system 63
5.3.2 Linux multicore scheduling algorithm for real-time guarantee 63-64
the 5.3.3 Linux multicore scheduling algorithms with the original scheduling algorithm compatible 64-
5.3.4 Linux multicore scheduling algorithm complexity of time and space to meet 64-65
5.3.5 on scheduling fairness support 65
5.4 Experimental results 65-68
5.4.1 build an experimental environment 65
5.4.2 experimental results analysis 65-68
6 Conclusion 68-70
the
References 70-72
studying for a master's degree during the thesis 72-73
Acknowledgements 73-75