Research of Real-Time Capability of Embedded Linux System
- Author
- LiuNiNa
- Advisor
- WangXiBo
- School
- Shenyang University of Technology
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 129
- Citations
- 1
Abstract
Real-time Operating System (RTOS) is now becoming a research hot spot. RTOS can be wildly used in various real-time application fields, such as defense, industrial automation control and communication. Nowadays, real-time applications need more strict timing request, and response time of the system need to be reduced from milliseconds to microseconds or even nanosecond, thus stronger real-time perfermance of RTOS that support hard real time application are needed. Linux is originally designed as a time-sharing OS for general purpose and mainly stick to fairness and system throughput; it is quite different from rapid response demand of real-time OS. This article focus on Linux clock system, discovered factors of affecting its real-time capability through analysis of Linux kernel code and proposed the thought of increasing parallel and precision clock system with fine grain and gives method of design and realization so as to improve real-time performance of Linux operating system.Common methods of modifying Linux time clock system are based on software level by rewrite kernel clock module, which have insufficiencies such as increasing system burden, larger changes in the kernel and so on. The rapid development of hardware nowadays can provide a great convenience for promotion real-time system performance. Therefore, through hardware programming, realizing a precision clock system coexisted with original clock system to supported applications with stronger real-time requirements can be a new approach to promote Linux real-time capability. Technical route to realize a new fine clock system ai as follow: resetting interrupt vectors; designing a new queue structure of real-time timer; carrying on programming on high-level programmable interrupt controller APIC. Firstly, Linux original timer queue uses "calendar structure", and response time is only a millisecond level, thus, another real-time timer queue specialized for real-time processes in the kernel is established. Secondly, APIC interruption function code is modified to complete the interrupt control of the new clock system. Finally, coexistence problem of old and new clock is resolved by the way of closing interrupt.Testing verification scheme has been designed and performed. Experiments result show that the reformed kernel can meet real-time demands in microsecond level during its long time running on PC . The response time is only 1/12 of Linux 2.6 and excellent result has been achieved. As can be seen through analysis and comparison that double clock system can effectively meet real-time applications’ respond requests in time, met need of hard real-time missions’ deadline, and having advantage of small modification for the kerne. This method orient to hardware, and will have certain reference significance for promotion systemreal-time performance.
Table of contents
Abstract 5-6
Abstract 6-10
first chapter 10-14
1.1 Background and significance 10-11
1.2 research status 11-13
1.3 research content 13-14
Chapter II real-time operating system 14-18
2.1 real-time operating system definition 14-15
2.2 real-time operating system classification 15-16
2.3 design real-time operating system used 16-18
Chapter Linux operating system 18-23
3.1 Linux operating system advantages 18-19
3.2 Linux time-sharing properties 19
3.3 Linux as a real-time operating system defects 19-20
3.4 analysis and evaluation of several real-time Linux 20-22
3.4.1 KURT 20-21
3.4.2 RT-Linux 21
3.4.3 RTAI 21
3.4.4 Comparison and Evaluation 21-22
3.5 This chapter Summary 22-23
Chapter Linux real-time analysis 23-32
4.1 Linux clock system 23-28
4.1.1 clock source 23
4.1.2 clock interrupt handling 23-26
4.1.3 Linux timer 26-28
4.2 Linux2.6 real-time analysis 28-29
4.2.1 preemptible kernel 28
4.2.2 scheduler 28-29
4.2.3 new clock accuracy 29
4.2.4 new I / O subsystem 29
the
modifications 4.3 In this paper, 29-31
the
of 4.4 clock system modified design ideas 31-32
real-time clock system improvements 32-47
5.1 modify the clock frequency 32-34
5.2 prevent the redundant clock interrupt service routine running 34-37
5.3 multi-mode clock interrupt 37-39
5.4 real-time clock system 39-46
5.4.1 Real-time timer queue 40-42
5.4.2 APIC programming 42-43
5.4.3 APIC 8254 coexistence issues 43-46
5.5 This chapter Summary 46-47
Chapter transformation test of the real-time performance of Linux 47-53
6.1 initialization environment 47
6.2 configure the kernel 47
6.3 compiled kernel 47-48
6.4 testing methods and results 48-52
6.5 Analysis of 52-53
Chapter VII Conclusion 53-54
the
References 54-56
learn research 56-57
Acknowledgements 57
Related dissertations
- Wireless sensor networks and its application in communication interrupt handling mechanisms
- Study and Improvement on Real Time about Embedded Linux
- Study of An Improved Method of Attenuating Linux Time Granularity
- Analysis and Improvement of Real-time Capability of Embedded Linux2.6
- Research on Real-Time Technology of Virtual Test 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
- 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
- The Research on Ethernet_based Interface of Embeded Motion Control 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
- Design and Implementation of DNS Proxy on High Concurrency Router Platform
- The Research and Implementation of Embedded TCP/IP Stack Based on F28M35HX
- Optical Capture Based Development of Virtual Interaction System
- Real-time Performance of the Semi-physical Simulation System Based on RTX