Analysis of SMP on Linux Kernel
- Author
- PanHua
- Advisor
- LiBingFa
- School
- Sichuan University
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 422
- Citations
- 3
Abstract
Computer processing power in the past few decades has been growing at a higher speed , but the new application of computer processing power put forward higher requirements , especially with the rapidly growing popularity of the Internet requires Internet server is a high degree of parallel processing capabilities. SMP (Symmetrical MultiProcessing) - symmetric multiprocessing a basic technology is more mature , more extensive application of the higher cost of a parallel processing technology , especially suitable for small-scale parallel server at the same time , it is also constitute a large-scale parallel server . Linux is a free open-source operating system , its openness has attracted tens of thousands of computer professionals are constantly improved and finished behalf it . But not a long history of Linux parallel technology , Linux kernel from version 2.0 began adding support for SMP parallel processor system , so there are imperfections are inevitable . This article is for Linux2.4.2 kernel for the SMP parallel processor system support research and improved . First describes the development of parallel processing technology as well as Linux on the history of parallel processing support ; through research the SMP hardware base platform based on Intel processors and system interfaces , and to understand the basis of the existence of the Linux SMP parallel processing ; then analyzed in detail the Linux SMP mutually exclusive mechanisms , pointed out that the algorithm limitations to effective methods of improvement ; followed by in-depth study of Linux process scheduler for multi-processor systems , analyze its performance and point out the inadequacies . Finally, Linux physical page allocation algorithm and recovery algorithm , analyze its performance in an SMP environment , and some improvement strategies for SMP systems .
Table of contents
1 review 6-9
1.1 Symmetric Multi-Processor System Introduction 6-7
1.2 multiprocessor operating system profile 7-8
1.3 thesis structure 8-9
2. parallel processing technology , and Linux on SMP support 9-14
2.1 parallel processing technology 9-12
2.1.1 Cluster 9-10
2.1.2 NUMA 10-11
2.1.3 SMP 11-12
2.2 Linux operating support for SMP systems 12-14
3. SMP hardware foundation 14-30
3.1 processor 14
3.2 APIC 14-16
3.3 interrupt mode 16-20
3.3.1 PIC mode 17-18
3.3.2 imaginary line mode 18-19
3.3.3 symmetric I / O mode 19-20
3.4 memory 20-21
3.5 cache 21-30
3.5.1 The program features local references 22-23
3.5.2 cache replacement policy 23-24
3.5.3 write policy 24 - 25
3.5.4 cache coherence protocol 25-30
3.5.4.1 write through - make invalid protocol 26-27
3.5.4.2 write once agreement 27-28
3.5.4.3 MESI protocol 28-29
3.5.4.4 Firefly agreement 29-30
4. SMP system configuration table 30-35
4.1 floating pointer structure 30-32
4.2 configuration table header 32-33
4.3 basic configuration table 33 - 35
5 single-processor system mutex strategy 35-39
5.1 short-term exclusive 35
5.2 and the interrupt handler exclusive 35-36
5.3 long-term exclusive 36-39
6 Linux in SMP mutually exclusive strategies 39-53
6.1 multiprocessor system memory model 39-41
6.1.1 sequential storage model 39-40
6.1.2 atomic read and atomic write 40-41
6.1.3 atomic read - write - modify operations 41
6.2 Linux in SMP mutex strategy 41-53
6.2.1 semaphore 41-44
6.2.2 spinlock 44-46
6.2.3 write spinlock 46-48
6.2.4 lock granularity 48 <br / > read-write spinlock 6.2.5 performance analysis and improvement ideas 48-53
7. Linux in SMP process scheduling 53-64
7.1 Linux process scheduling strategy 53
7.2 related data structures 53-55
7.3 ready process selection algorithm 55-57
7.4 processor selection algorithm 57-59
7.5 process Migration 59-61
7.6 performance Analysis 61-62
7.7 to improve access to ready process queue parallelism 62 - 64
8. Linux in the physical page management 64-66
8.1 page allocation strategy 64
8.2 pages recovery strategy 64-65 <br / > 8.3 performance Analysis and Improvement ideas 65-66
9. conclusions 66-67
further research and outlook 67-68
reference literature 68-70
statement 70-71
Thanks 71
Related dissertations
- Design and Implementation of Experiment Platform for Operating System Based on Linux
- Research on GPS Vehicle Navigation System Based on ARM9
- Analysis and reliability of Linux device driver
- Study of Real-time Based on Embedded Linux Operating System
- Linux operating system on the ARM hardware platform transplantation
- Real-time Research of Embedded Operating System Based on Linux
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- Research and Design of Embedded Building Security System
- The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Study on Embedded Data Acquisition System Application
- Embedded Software Design of AC Field Detection Instrument Based on ARM
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
- Design of Industrial Ethernet Motion Controller Based on ARM
- Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM