Analysis and Improvement of Real-time Capability of Embedded Linux2.6
- Author
- ZhangLei
- Advisor
- MaGuangSheng
- School
- Harbin Engineering University
- Major
- Computer System Architecture
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 183
- Citations
- 3
Abstract
Among main open source softwares,Linux is quickly entering the real-time controlfield with open kernel source codes,stable performance, UNIX compatibility,multiple processes applicability,great network capabilities,high security and pruned kernel. But as a general OS,its design rule is satisfying almost user ,not for embedded real-time application. Although 2.6 kernel has made much improvement than 2.4 kernel in supporting the real-time process with POSIX compliant real-time function,multithread,multitasks,preemptive kernel, O(1)scheduling algorithm,its real-time capability is very poor and can not ensure the response time of real-time task.This thesis mainly discusses the research and implement of Linux 2.6 hard performance in order to meet the needs in embedded field. It analyzes Linux2.6 kernel, especially process scheduler mechanism,interrupt mechanism,preemptive kernel, timer mechanism. On this basis,it put on three programs according to the shortage of poor real-time. Firstly, the threaded interrupt is picked out for heavy network load and I/O load in system.Secondly,As the improvement solution, The classical dynamic real-time scheduling algorithm—LLF(least laxity first) algorithm is introduced as to the problem of Linux 2.6 kernel lacking in real-time scheduling algorithms and policies in the scheduler mechanism, which enhances the system’s real-time scheduler capability as well as maintains the original O(1)scheduling characteristic. Thirdly, as to the shortage of Linux 2.6 kernel’s too large timer granularity in timer mechanism, One-shot Mode is introduced in Linux 2.6 timer from the principle of timer mechanism improvement in Kurt-Linux. The new timer mechanism is implemented skillfully for the combination of LLF algorithm and the one-shot mode. The new timer mechanism makes the system reached the microsecond level timer precision and maintains its original load capability.In the final part of the thesis , It tests the Linux 2.4 kernel, the Linux 2.6 kernel and the improved system on interrupt response time and context-switching time which are two key criterions of real-time testing .From the testing results, we can see that the improved Linux system has the stronger real-time capability than Linux 2.6 kernel. It is fitter for the high real-time application in embedded fields.
Table of contents
Abstract 5-6
Abstract 6-11
Chapter 1 Introduction 11-19
1.1 embedded systems and real-time operating system 11-13
1.1.1 Embedded Systems 11
1.1.2 Embedded operating system 11-12
1.1.3 real-time operating system 12
1.1.4 Several popular real-time operating system 12-13
1.2 research background 13-14
1.3 Linux real-time research status 14-17
1.3.1 dual-core real transformation cases 14-15
1.3.2 modify the kernel program 15-17
1.4 main contents 17-19
Chapter Linux2.6 kernel and real-time performance analysis 19-28
2.1 Linux architecture 19-20
2.2 Linux kernel analysis 20-24
2.3 Linux real-time performance analysis 24-27
2.3.1 Linux for embedded systems advantage 24-25
2.3.2 Linux2.6 enhanced real-time 25-26
2.3.3 Linux2.6 real-time constraints 26-27
2.4 Summary 27-28
Chapter 3 Linux2.6 interrupt mechanism to improve 28-37
3.1 Linux2.6 interrupt mechanism 28-33
3.1.1 standard kernel data structures interrupted 28-30
3.1.2 Interrupt Initialization 30-31
3.1.3 interrupt handler 31-33
3.2 interrupt mechanism to improve 33-36
3.2.1 Interrupt threaded implementation 33-36
3.2.2 new interrupt processing 36
3.3 Chapter Summary 36-37
Chapter 4 Linux2.6 scheduling mechanism to improve 37-57
4.1 Linux2.6 scheduling mechanism analysis 37-43
4.1.1 2.6 kernel process description 37-38
4.1.2 2.6 kernel runqueue () structure 38-40
4.1.3 schedule () scheduling function 40-42
4.1.4 O (1) scheduler process 42-43
4.1.5 O (1) scheduler deficiencies 43
4.2 commonly used real-time scheduling policy analysis 43-46
4.2.1 priority-based scheduling policy 43-45
4.2.2 scheduling strategy based on proportional share 45
4.2.3 based on time-driven scheduling policy 45-46
4.3 kernel scheduling mechanism to improve 46-56
4.3.1 LLF dynamic scheduling algorithm 46-47
4.3.2 LLF Algorithm principle 47-48
4.3.3 Improved scheduling algorithm code 48-55
4.3.4 Improved scheduling system performance analysis 55-56
4.4 Summary 56-57
Chapter 5 Linux2.6 clock mechanism to improve 57-64
5.1 programmable interval timer 57
5.2 Linux2.6 core clock mechanism 57-60
5.3 one- shot mode and time stamp register 60
5.4 improved fine-grained clock mechanism 60-63
5.4.1 Improved principle 60-61
5.4.2 Minimum idle time algorithm involves the transformation of part timers 61-62
5.4.3 modified timing mechanism performance analysis 62-63
5.5 Chapter Summary 63-64
Chapter 6, improved real-time performance of the test 64-70
6.1 Linux kernel configuration and compilation 64-66
6.1.1 Linux kernel configuration 64-65
6.1.2 Linux kernel compilation 65-66
6.2 improved core performance testing and analysis 66-69
6.2.1 Test Tool LFT 66-67
6.2.2 reconstruction kernel performance tests 67-69
6.3 Chapter Summary 69-70
Conclusion 70-71
References 71-74
papers published during the master's degree and research achievements 74-75
Thanks 75
Related dissertations
- Wireless sensor networks and its application in communication interrupt handling mechanisms
- Real-time Research of Embedded Operating System Based on Linux
- Study and Improvement on Real Time about Embedded Linux
- Study of An Improved Method of Attenuating Linux Time Granularity
- Research of Real-Time Capability of Embedded Linux System
- Research on Real-Time Technology of Virtual Test System
- The Research and Design of Embedded Mobile Image Monitoring System Based on ARM
- Design and Implementation of Network Video Monitoring and Alarm System Based on Embedded Linux
- Design and Implementation of Terminal for Snowflakes Beef Carcass Quality Measurement System Based on Embedded and Machine Vision
- Research and Design of Harmonic Detecting Device Based on ARM9
- The Design and Application of Network Measurement and Control Platform Based on Embedded WEB Service
- Development of Small Smart Controller Software Technology Based on ARM9
- Design of the Paper Quality Control System Based on Industrial Ethernet
- The Research of Embeded Intelligent Household Based on ARM
- Research on Intelligent Home Furnishing system based on Android
- Research and Development of Intelligent Board Based on Multi-sensor Fusion
- Design and Implementaiton of a Human-computer Interaction System Train Monitoirng Device
- Human-Computer Interaction Technology Research of Gene Amplification Based on Arm
- Design and Implementation of DNS Proxy on High Concurrency Router Platform
- Design and Implementation of Chinese Handwritten Input Method Based on ARM9and Qt