Research and Optimization of Embedded Linux
- Author
- SunJinFei
- Advisor
- RongMengTian
- School
- Shanghai Jiaotong University
- Major
- Circuits and Systems
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 85
- Citations
- 0
Abstract
With the advantages of open source, high stability, low cost and configurability, Linux is more and more widely used in embedded system applications and has become the fastest developing operating system in this field. However, its design principles are throuthput maximization and scheduling fairness but not real-time capability which is required by many embedded applications. Besides, those kernel debugging tools abailable on PCs can not be applied to embedded Linux, which makes the kernel development more difficult. Improving general Linux’s performance to make it more suitable for embedded system applications is in great practical significance and has become one of hot research directions in computer science and technology.On the basis of reading and researching of Linux 2.6 kernel source codes and lots of documents and materials, the paper gives a deep analyze and summary of Linux 2.6 kernel’s several sub-systems. Two improvement solutions are provided. The first, in order to improve the real-time performance of general Linux, one-shot mode is introduced into the timing system of Linux 2.6 kernel from the principle of timer mechanism improvement in Kurt-Linux. The new timer mechanism makes the system reached the microsecond level timer precision and maintains its original load capability. As to the problem of Linux 2.6 kernel’s lack of real-time scheduling algorithms and policies in the scheduler mechanism, a dynamic real-time scheduling algorithm is add to the Linux 2.6 scheduler. The the new task scheduler data structure in Linux2.6 enhances the system’s real-time scheduler capability as well as maintains the original O (1) scheduling characteristic. The second, improvement is made to the source code level kernel debugger KGDB, which is only available on PCs, to make it working for embedded system, which greatly eases the procedure to debug embedded Linux kernel and device drivers.In the part of real-time capability testing, general Linux 2.6 kernel and the improved system are compared on timer interrupt processing time and scheduler timing accuracy. From the testing results, we can see that the improved Linux system has the stronger real-time capability than general Linux 2.6 kernel and is better for the real-time application in embedded fields.
Table of contents
Abstract 2-4
ABSTRACT 4-8
first chapter 8-11
1.1 research background 8 - 9
1.2 research and meaning 9-10
1.3 this paper mainly research 10-11
Chapter embedded type Linux 11 -21
2.1 embedded Systems 11-13
2.1.1 embedded system concept 11-12
2.1.2 embedded system development 12-13
2.2 real-time operating system 13-16
2.2.1 real-time operating system concepts 13-15
2.2.2 real-time operating system embedded Systems 15
2.2.3 mainstream embedded real-time operating system 15-16
2.3 embedded Linux system 16-21
2.3. an embedded Linux advantage 16-17
2.3.2 General limitations of real-time application of Linux systems 17-18
2.3.3 Linux real-time technology and typical products 18-19
2.3.4 Linux2.6 kernel improvements on the real-time 19-21
Chapter Linux2.6 clock mechanism transformation 21-27 < br /> 3.1 Linux 2.6 clock mechanism 21-23
3.2 single- shot mode (One-shot Mode) 23
3.3 improved fine-grained clock mechanism 23-27
3.3.1 clock mechanism to improve the basic principle 23-26
3.3.2 clock mechanism to improve the system performance analysis 26-27
first chapters Linux2.6 kernel scheduling mechanism transformation 27-39
4.1 Linux2.6 kernel scheduling mechanism 27-32
4.1.1 new runnable queue runqueue 27-28
4.1.2 improved task struct data structure 28-29
4.1.3 scheduling function schedule () 29-31
4.1. 4 O (1) scheduling algorithm 31
4.1.5 real-time scheduling defects 31-32
4.2 commonly used real-time scheduling algorithm 32-34 <br / > 4.2.1 priority-based scheduling algorithm 32-33
4.2.2 scheduling algorithm based on proportional share 33-34
4.2.3 time-based process scheduling algorithm 34
4.3 improved dynamic real-time scheduling mechanism 34-39
4.3.1 improved scheduling System Fundamentals 34-37
4.3.2 improvement scheduling system code analysis 37-39
Chapter Linux 2.6 kernel resource preemption and virtual memory management technical analysis 39-46
5.1 kernel preemption technology 39-42
5.1.1 fundamental analysis 39-40
5.1.2 main function analysis 40-41
5.1.3 other resources to seize 41-42
5.2 Linux 2.6 kernel virtual memory management technical analysis 42-46
5.2.1 Linux virtual memory mechanism 42-43
5.2.2 reverse mapping technology 43-46
Chapter KGDB in ARM Linux application 46-52
6.1 embedded system Debugging 46-47 < br /> 6.2 KGDB works 47-48
6.3 KGDB on ARM Linux porting 48-49
6.4 debug the kernel and loadable modules 49 -52
Chapter VII improved real-time system performance test 52-59
7.1 clock system performance test 52-55
7.2 scheduling system performance test 55-59
Chapter VII Conclusion and Outlook 59-60
References 60-62
Thanks 62-63
study for a degree of academic papers published during directory 63-65
Related dissertations
- Software Design for Imaging System of Real-time Hand-held3D Sonar
- A Study on Driver Fatigue Detection System Based on DM642
- Research and Design of Industrial Robot Controller Based on Ethercat
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- The Study of Remote Video Monitor System Baced on ARM
- Study of Real-time Grid Monitoring System Based-on Complex Event Processing
- Research and Implementation of the Web-integrated Real-time Video Surveillance System Based on Flex
- Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
- Video Surveillance System Based on Embedded Technology Research
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Research and implementation of remote monitor system of ship based on the technology of the Internet of things
- Design of Video Surveillance Software Based on Ti Dm6446Processor
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Research on the Indoor Air Monitoring System Based on Embedded Linux
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
- Research on Meteorological Data Acquisition and Processing System
- The Research of the Design and Application for Embedded Remote Terminal Unit