Research of Real Time Performance for Embedded Linux Operating System
- Author
- XiaoZhenHua
- Advisor
- XuYuBin
- School
- Taiyuan University of Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 172
- Citations
- 0
Abstract
The real-time operating system has been widely used in national defense, industrial automatic control, communications and other embedded areas. Compared with the general-purpose operating system, real-time operating system, the main task is the timely handling of the incident, when random events must be able to respond within strict time limits, even if the system is in the high-load, otherwise will lead to serious consequences. Linux 2.6 kernel has been released in the end of 2003, has been proved to be an efficient and stable kernel. Not be preempted area compared to the 2.4 kernel, although 2.6 using some new technology makes real-time performance has been greatly improved, such as preemptive kernel, the new O (1) scheduling algorithm, but the kernel is still a lot of impact on system the real-time performance. In addition, the 2.6 kernel used is based on the O (1) scheduler priority preemptive priority preemption will inevitably lead to a priority inversion the (Priority Inversion) problem, caused by the uncertainty of the task scheduling and seriously affect the system real-time performance. Therefore, in order to meet the embedded system the demanding requirements of real-time, real-time optimized for Linux 2.6 kernel has become an urgent need to solve the problem. In this paper, on the basis of in-depth study of Linux2 .6 kernel, learn from Ingo Molnar's real-time transformation of thinking directly modify the kernel Linux2.6 kernel modifications. Lot Linux2.6 kernel spin lock is used the spinlock, resulting in a lot of the critical region, they will severely affect the real-time nature of the system. Introduced into spinlock spin lock manipulation spinlock mutex mutual demolition lock preemptible skillfully to achieve a new locking mechanism, improve Linux2.6 real-time performance. Not seize the real-time problems caused for the Linux 2.6 kernel interrupt, the interrupt threaded. Interrupt will be run as a kernel thread, but given a different real-time priority interrupt threading, real-time tasks can have higher priority than interrupt thread, so that real-time tasks can be used as the highest priority of execution units to run, even in severe load still guarantee real-time. Linux2.6 the O (1) scheduler priority inversion problem, in order to ensure real-time system, the paper proposes priority inheritance protocol and priority ceiling protocol are two ways to solve, and specific priority inheritance protocol implementations Linux2.6 kernel. Finally, use LMbench test software system context switching time test results show that the improved Linux2.6 kernel on the real-time performance than the original Linux2.6 and Linux2.4 kernel has been further improved, and more suitable for embedded real-time Application.
Table of contents
Abstract 3-4
ABSTRACT 4-8
first chapter 8-14
1.1 Background and Significance 8-10
Research
1.2 and abroad 10-13
1.3 of this paper mainly work 13-14
embedded real-time operating system overview 14-22
2.1 real-time operating system 14-16
2.1.1 Real-time operating system definition 14-15
2.1.2 Real-Time Operating System Features 15-16
2.2 embedded real-time operating system 16-19
2.2.1 embedded real-time operating system architecture 16-17
of 2.2.2 embedded real-time operating system classification 17-18
of 2.2.3 embedded real-time operating system development direction 18-19
2.3 several popular embedded RTOS 19-22
2.3.1 UC / OS II 19
2.3.2 eCos 19-20
2.3.3 VxWorks 20
2.3.4 Nucleus Plus 20-22
Chapter embedded Linux operating system and its real-time 22-28
3.1 embedded Linux operating system overview 22-23
3.2 embedded Linux operating system, real-time issues 23-25
3.2.1 Linux2.4 kernel constraints of real-time factors 23-24
3.2.2 Linux2.6 kernel constraints real-time factors 24-25
3.3 Linux kernel real-time method 25-28
3.3.1 directly modify the kernel 26
3.3.2 dual kernel method 26-27
3.3.3 Resource nuclear methods 27-28
Chapter Linux2.6 kernel analysis 28-37
4.1 O (1) scheduler algorithm 28-32
4.1.1 O (1) the characteristics of the scheduling algorithm 28
4.1.2 new data structure runqueue 28-30
4.1.3 Improved task struct data structure 30-31
4.1.4 scheduling function schedule () 31-32
4.2 spin lock a spinlock 32-34
4.2.1 spinlock introduced 32-33
4.2.2 spinlock API 33-34
new features in the 4.3 Linux 2.6 kernel 34-37
4.3.1 the preemptive kernel 35
4.3.2 scheduler 35
4.3.3 shared memory improvement 35-36
4.3.4 on 64-bit processor support 36
4.3.5 POSIX threads, signals and timers 36
4.3.6 microcontroller support 36-37
Chapter Linux2.6 kernel real-time optimization 37-56
5.1 with interaction demolition lock replacement the spinlock 37-41
5.1.1 spinlock failure to seize the purpose 37-38
5.1.2 a spinlock modify 38-40
5.1.3 big kernel lock preemptible 40-41
5.2 interrupt threaded 41-42
5.2.1 interrupt threaded 41
5.2.2 interrupt threaded implementations 41-42
5.3 priority inversion 42-48
5.3.1 priority inversion causes 42-43
5.3.2 priority inversion theory to solve 43-45
5.3.3 priority inheritance protocol implementations 45-48
5.4 Linux kernel development and testing 48-56
5.4.1 compile the kernel and kernel modules 48-49
5.4.2 several important indicators to measure real-time performance of the operating system 49-50
5.4.3 Testing and Analysis 50-56
Chapter Summary and Outlook 56-57
the
References 57-60
studied papers published by the Master of the period 60-61
Acknowledgements 61-62
Author 62-63
Related dissertations
- Study of Real-time Based on Embedded Linux Operating System
- Parse embedded Linux kernel
- Research and Implementation of Embedded Operating System Based on Linux
- The Drive Design of Linux 2.6 Embedded System
- 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
- Based on Can Field-bus Technology and Web Service Home Intelligent Control System Design and Realization
- Design of Dynamic Pressure Controller Based on μC/OS-Ⅱ
- Research of Heterogeneous System Integrated Optimization Based on OPC DX Technology
- Knitting Machine Hardware Control Platform Design and Implementation Based on NCUC-bus Fieldbus
- Research on Control System of a6-DOF Motion Platform
- Design and Application Research on Multi-Master Node TTCAN Network
- The Realization and Research on Real-time of CANopen Network
- Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
- The Research on Ethernet_based Interface of Embeded Motion Control System
- The Design and Implementation of Multi-functional Smart Home System
- Design of Distributed Concurrent State-aware System for the Quadruped Bionic Robot
- On-board Vision System for Humanoid Ping-Pong Robot
- Study of CPS Communication Based on MCU and Intelligent Optimization Algorithms
- The Research and Implementation of Embedded TCP/IP Stack Based on F28M35HX