Research of thread scheduling strategy of multi processor system
- Author
- JiangYuanQing
- Advisor
- LiYi
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 98
- Citations
- 1
Abstract
In a SMP system which is applied with Chip Multi-Processor (CMP),Simultaneous Multithreading (SMT) technology, unreasonable shared mechanism maycause uncontrollable use of simultaneous multithreading for public resources, whichwill reduce the system throughput and resources utilization. Therefore, it has alwaysbeen the special emphasis of operating system research to design and implement aresource utilization considered SMP scheduling mechanism.This thesis firstly introduces the evolution and characteristics of themulti-processor and multi-core architecture technology. To review and summarize thecorresponding framework thread scheduling strategy is the next step. Thirdly, this papersummarizes the development of the Linux scheduler and the corresponding versionscheduler characteristics, and analyzes CFS scheduler framework of the Linux V3.0times and loading balance strategy which is based on the domain, and points out thedeficiency of the Linux scheduler.Current linux scheduler just balances the load weightbetween CPUs based on the priority values and numbers of the processes withoutconsidering the utilization of system bus bandwidth, which is likely to cause the declineof the utilization ratio of bus bandiwidth.Specifically speaking, current loading balanceoperation may aggravates the tension of bus bandwidth use for migrating a process withexcess bandwidth needs;or idles the bandwidth resources for not being able to migrate aprocess with morderate bus bandwidth need from the busiest CPU in time.Finally, this thesis proposes the optimization scheduling strategy and the improvingmethods based on current Linux scheduler. Optimization design is to on-line analyze theperformance counts through sampling the running threads, and assesse their busbandwidth usage during the recent sampling window, which provides direct basis fordecision-making. By using processor’s built-in performance counters, the number ofexecuted instructions and hierarchy-cache misses are available to calculates the threads’average bandwidth usage within the sampling window. Due to the dicision-making isbased on history data analysis, the period of sampling and the size of window are ofvital importance. On one hand, if the size of sampling window is too small, the recent average usage of bandwidth cannot be assessed presicisely;on the other hand, bigwindow size may leads to miss the proper timing of avoiding the fierce contention forSMP system bus bandwidth.In the concrete implementation, the appropriate value ofsampling window is determined by repeated tests. To optimize the original SMP loadingbalance algorithm, both the CPU/Cache affinity of and bus bandwidth usage should beincluded for selecting the migration process According to the results of three tests basedon STREAM Benchmark, the optimization improves the utilization of SMP system busbandwidth without compromising the effect produced by original algorithm.
Table of contents
Summary 4-5
ABSTRACT 5-9
first chapter 9-12
1.1 based on topics and research significance 9-10
1.2 the main thesis work 10-11
1.3 chapters arranged 11-12
Chapter II multi-processor system-related technologies and thread scheduling policy 12-29
evolution over 2.1 processor related technologies 12-23
raised 2.1.1 TLP technology 13-16
2.1. 2 SMP architecture 16-18
2.1.3 CMP structure 18-20
2.1.4 multithreading technology 20-23
2.1.4.1 simultaneous multi -threading technology 22-23
2.1.5 CMT structure thread 23
2.2 multicore architecture multiprocessor scheduling research status 23-28 <br / > thread scheduling policy nbsp 2.2.1 CMP architecture ; 24-25
thread scheduling policy nbsp 2.2.2 SMT architecture ; 25-27
under 2.2.3 CMT architecture thread scheduling policy 27-28
2.3 Summary 28-29
analysis Chapter LINUX scheduling system 29-51
3.1 scheduling parses 29-44
3.1.1 Linux kernel scheduler overview 29-34
3.1.1.1 Linux 2.4 scheduler 31-32 <br / > 3.1.1.2 Linux 2.6 O (1) scheduler 32-34
3.1.2 CFS analysis 34-44
3.1.2.1 completely fair scheduling mechanism 34-37
3.1.2.2 completely fair scheduling policy 37-44
3.2 load balancing strategy 44-50
3.2.1.1 scheduling domain concept 45-46
3.2.1.2 load balancing implementation 46-49
3.2.1.3 Reflections on the Linux load balancing strategy 49-50
3.3 of this chapter Summary 50-51
Chapter IV -optimized scheduling SMP bus bandwidth used 51-63
4.1 bus bandwidth optimization scheduling strategy used to select 51 - 53
4.1.1 main memory access request scheduling based 51-52
4.1.2 bus bandwidth scheduling based 52-53
4.1.3 of the study selected scheduling strategy made ??53
4.2 optimization Mechanism of 53-62
4.2.1 concepts and definitions 53-57
sampling mechanism 4.2.1.1 thread -bandwidth access situations timing and load balancing granularity 54
4.2.1.2 bus bandwidth optimization using 54-55
4.2.1.3 on Linux load balancing adjustment mechanism 55-56
4.2.1.4 consider scheduling framework SMP bus bandwidth used 56-57
4.2.2 optimization strategy and implementation 57-62
4.2.2.1 sampling thread running state 57-61
4.2.2.2 modify the load balancing task migration conditions 61-62
4.3 Summary 62-63
Chapter V testing and analysis 63-69
5.1 testing and analysis 63-68
5.1.1 test platform and test 63-65
5.1.2 test results and Analysis 65-68
5.2 summary 68-69
Chapter VI summary and Outlook 69-70
Thanks 70-71
References made ??during the 71-74
attack Shuo research 74-75
Related dissertations
- Multiprocessor system thread scheduling
- The Design and Research of a Smart Mold Based on Shape Memory Polymers
- Research on multi process scheduling based on Linux
- Design and Implementation of Unified Payment Platform the Store on the Net
- A Research on Indian Policemen of Shanghai International Settlement(1883-1930)
- Design and implementation of frame relay protection monitoring platform software system based on aCoral
- The Characteristics and Effects of a Reducing Sludge Composited Uncoupler on Treatment Efficiency
- Research on Treatment of Simulated Domestic Wastewater in a Submerged Membrane Bioreactor
- Influence Mechanism of Microbial Metabolites on Membrane Fouling in MBR
- Biocharacteristics of Terminase Large Subunit Encoded by Streptococcus Suis Phage SMP
- Parallel Simulation of3-D Shallow Water Flow with Free Surface
- Research and Implementation of the Cache Coherence Protocol for the Large Scale System of the SMP-based CC-NUMA Category
- A Study of MPI and OpenMP Parallel Programming Based on SMP Cluster
- Multi-machine interconnected SMP environment
- Research and Development of Cache Coherence in Symmetric Multi-Processor
- Polyolefin alloy shape memory polymers
- Related Research on Thread Lightweighting Based on SMP
- SMP cluster - based virtual shared storage system
- Design and Implementation of Network Security Management Platform
- SMP parallel game tree search program load analysis