Research and Improvement of Real-Time Capability of Embedded Linux System

Author
LiZuo
Advisor
XuZhanWen
School
Shenyang University of Technology
Major
Computer Software and Theory
Classification
TP316.81
Degree
Master's thesis
Year
2006
Downloads
149
Citations
0

Request the full text

Abstract

In today, embedded technology is popularizing rapidly. Linux, as its open source, high stability, low cost and some other characteristics, is so fit for embedded system developments and has become the fastest developing operating system in this field. Improving general Linux’s real-time capability to make it more fit for embedded system applications is in great practical significance and has become one of hot research directions in domestic and foreign computer fields.On the basis of reading and research of Linux 2.6 kernel resource codes and lots of documents and materials, the paper gives the deep analyses and summaries of Linux 2.6 kernel’s task scheduler mechanism, timer mechanism, virtual memory mechanism and resource preemption technology. As the improvement solution, as to the problem of Linux 2.6 kernel lacking in real-time scheduling algorithms and policies in the scheduler mechanism, the "laxity" notion is introduced from the good dynamic real-time scheduling algorithm LSF(laxity small first). Combination of the laxity and 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;As to the problem of Linux 2.6 kernel’s too large timer granularity in timer mechanism, One-shot Mode is introduced in Linux timers from the principle of timer mechanism improvement in Kurt-Linux. For the more, using of real-time task’s "laxity" attribute in the improved dynamic real-time scheduler system, the new timer mechanism is implemented skillfully. The new timer mechanism makes the system reached the microsecond level timer precision and maintains its original load capability.In the part of real-time capability testing, Linux 2.4 kernel, Linux 2.6 kernel and the improved system are compared 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 improvedLinux system which uses the real-time task’s "laxity" as the connection to make the combination of the real-time dynamic scheduler mechanism and one-shot minute granularity timer mechanism has the stronger real-time capability than Linux 2.6 kernel. It is more fit for the high real-time application in embedded fields.In addition, as the prospect of Linux system’s real-time capability research, on the base of the kernel preemption implementation, the research and implementation of preemption mechanism as to the system resources besides CPU (e.g. memory, disk) is a more valuable research direction.

Table of contents

Summary 5-6 Abstract 6-11 1 Introduction 11-14 1.1 research background 11-12 < br /> 1.2 Research and meaning the work 12-13 1.3 papers made 13-14 embedded Linux 14-26 <br / > 2.1 Embedded Systems 14-17 the 2.1.1 embedded systems concept 14-15 the 2.1.2 embedded systems development 15-17 2.2 real-time operating system 17-20 2.2.1 The concept of real-time operating system 17-19 2.2.2 Real-time operating systems and embedded systems 19 2.2.3 the mainstream embedded real-time operating system 19-20 2.3 embedded Linux system 20-26 2.3.1 embedded Llnux advantage 20-21 2.3.2 General Linux system for real-time applications limitations the 21-22 2.3.3 Linux real-time technology and typical products 22-24 2.3.4 Linux2.6 kernel in the real-time nature of the improvements 24-26 Linux2.6 kernel the scheduling mechanisms transformation 26-42 3.1 Linux2 the .6 kernel scheduling mechanism 26-32 3.1.1 new runnable queue runqueue 26-28 3.1.2 Improved the task_struct data structures 28 -29 3.1.3 scheduling function sehedule () 29-30 3.1.4 O (1) scheduling algorithm 30-31 3.1.5 Real-time scheduling defects 31-32 3.2 commonly used in real-time scheduling algorithm 32-35 3.2.1 priority-based scheduling algorithm 32-33 3.2.2 based on proportional share scheduling algorithm the 33-34 3.2.3 Time-based process scheduling algorithm 34 3.2.4 LSF scheduling algorithm based on priority 34-35 3.3 improved dynamic real-time scheduling mechanism 35-42 3.3.1 The basic principle of the improved scheduling system 35-38 3.3.2 Improved scheduling system code analysis scheduling 38-40 3.3.3 improve system performance analysis 40-42 Linux 2.6 kernel the clock mechanisms transformation 42 - 48 4.1 Linux 2.6 kernel clock mechanism 42-44 420 single trigger mode (One-shot Mode) 44-45 4.3 improved fine-grained clock mechanism 45-48 4.3.1 improved the basic principles of the clock mechanism the 45-46 4.3.2 Improved clock mechanisms Code Analysis 46-47 < br /> 4.3.3 improved system performance of the clock mechanism 47-48 Linux 2.6 kernel virtual memory management technology analysis 48-51 5.1 Linux virtual memory mechanism the 48-49 5.2 reverse mapping technology 49-51 Linux 2.6 kernel resources to seize the technical analysis 51-56 6.1 kernel preemption technology 51-54 6.1.1 basic principles of analysis 51-52 6.1.2 main function analysis 52-54 6.2 other resources to seize 54-56 improved real-time performance of the system test 56-63 7.1 Linux kernel configuration and compile 56-58 7.1.1 Linux the kernel configuration 56-57 7.1.2 Linux kernel compilation 57-58 7.2 test and analysis 58-63 7.2.1 Linux Trace Toolkit 58-60 7.2.2 transformation kernel real-time performance test 60-63 8 Conclusion to References 63-64 the outcome of the study, 64-68 68-69 thank the 69

Related dissertations

  1. The Research on the Real-Time of Embedded Linux
    SangJinGe ·Hebei University of Technology ·2007 ·Master's thesis
  2. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  3. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  4. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  5. Video Surveillance System Based on Embedded Technology Research
  6. Design of Video Monitoring System Based on the Embedded
  7. The Design of Embedded Network Video Surveillance System Based on ARM9
  8. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  9. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis
  10. Data Acquisition System of Cavern Based on Embedded Web Server
  11. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  12. Research on the Indoor Air Monitoring System Based on Embedded Linux
  13. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  14. Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
  15. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  16. The Research of the Design and Application for Embedded Remote Terminal Unit
    XiaRui ·Northeastern University ·2013 ·Master's thesis
  17. Design and Implementation of Magnetic Card Detection System Based on Embedded System
  18. Design of distributed control system based on embedded platform
    JieZhouKai ·Xi'an Optics and Fine Mechanics ·2010 ·Master's thesis
  19. Design and Implementation of Car Embedded Systems to Multimedia Intelligent Terminal
    LiShun ·Northeastern University ·2012 ·Master's thesis
  20. The Research of CANopen Protocol Based on Embedded Systems