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

Request the full text

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

  1. Wireless sensor networks and its application in communication interrupt handling mechanisms
  2. Study and Improvement on Real Time about Embedded Linux
    ZhangXingFa ·Southwest Jiaotong University ·2006 ·Master's thesis
  3. Study of An Improved Method of Attenuating Linux Time Granularity
    WangYinHui ·Chongqing University ·2005 ·Master's thesis
  4. Analysis and Improvement of Real-time Capability of Embedded Linux2.6
    ZhangLei ·Harbin Engineering University ·2009 ·Master's thesis
  5. Research on Real-Time Technology of Virtual Test System
    LiZuo ·Harbin Institute of Technology ·2009 ·Master's thesis
  6. Study of Real-time Grid Monitoring System Based-on Complex Event Processing
  7. Research and Implementation of the Web-integrated Real-time Video Surveillance System Based on Flex
    ZhouBin ·Central South University ·2013 ·Master's thesis
  8. Research of Heterogeneous System Integrated Optimization Based on OPC DX Technology
    HaoYongLiang ·Tianjin University of Technology ·2013 ·Master's thesis
  9. Knitting Machine Hardware Control Platform Design and Implementation Based on NCUC-bus Fieldbus
  10. Research on Control System of a6-DOF Motion Platform
    YaoShiLei ·Harbin Engineering University ·2013 ·Master's thesis
  11. Design and Application Research on Multi-Master Node TTCAN Network
  12. The Realization and Research on Real-time of CANopen Network
  13. The Research on Ethernet_based Interface of Embeded Motion Control System
  14. Design of Distributed Concurrent State-aware System for the Quadruped Bionic Robot
    LiuMingLiang ·Central South University ·2013 ·Master's thesis
  15. On-board Vision System for Humanoid Ping-Pong Robot
    XieZuo ·Zhejiang University ·2014 ·Master's thesis
  16. Study of CPS Communication Based on MCU and Intelligent Optimization Algorithms
    FuJiaXin ·Shenyang University of construction ·2013 ·Master's thesis
  17. Design and Implementation of DNS Proxy on High Concurrency Router Platform
  18. The Research and Implementation of Embedded TCP/IP Stack Based on F28M35HX
  19. Optical Capture Based Development of Virtual Interaction System
    ZhouXiaoYang ·Harbin Institute of Technology ·2012 ·Master's thesis
  20. Real-time Performance of the Semi-physical Simulation System Based on RTX