Research and Realization of Linux Real-time Scheduling Algorithm and Test Bench

Author
YangLong
Advisor
LiuRiSheng
School
Dalian University of Technology
Major
Applied Computer Technology
Classification
TP316.81
Degree
Master's thesis
Year
2005
Downloads
332
Citations
1

Request the full text

Abstract

The real-time system grows up very fast over the past several years, but the price of realtime operating system that can offer real-time functions is usually extremely expensive. Because of opening source code and excellent performance, Linux becomes new favourite in the real-time system field. But as a general timesharing operating system, Linux has a lot of shortcomings and deficiencies when it is used under the embedded and real-time environment, so the existing Linux should be transformed.Valuable research on the realization mechanism of each part of Linux operating system according to the characteristics of real-time system is described in this thesis, and several aspects unsuitble for real-time application have been improved.To operating system, Precise timing is very important for the correct scheduling and timely response of task. The grain size of periodic clock of Linux is 10ms, and too coarse for real-time systems. In order to increasing the precision of the clock in case of not losing performance , the scheme of scheduling real-time process is designed and realized with fine-grain clock interrupt produced by local APIC timer in the CPU of Intel PII series or above, and original Linux clock interrupt is not changed yet. In this way, the precision of the clock is increased, and performance is not lossed too, so problem of precision of the clock is well solved.Design of Linux operating system is used for time-sharing application, it’s priority scheduling way does not relate with time, but each of real-time task have demand of deadline, three timers related with the time characteristic are used for change process’s running state, then the process can be scheduled according to time’s demand in the following scheduling function.The specific real-time scheduling algorithm is suitable for specific application. In order to examine the performance, general scheduling frame is adopted and realized in this thesis. This frame can use lots of real-time scheduling algorithm, time-driven algorithm is realized too.The experiment result proves that the improvement enables Linux to scheduling the realtime task of microsecond grade in the situation of not increasing system load.

Table of contents

Abstract 4-5 Abstraet 5-8 Introduction 8-10 1 Real System Overview 10-20 <br / > 1.1 real-time system defined 10 1.2 real-time requirements 10-11 1.3 real-time systems are characterized 11-12 1.4 real-time system predictability 12-14 1.5 commonly used real-time scheduling method 14-15 1.6 real-time operating systems and general-purpose operating system Compare 15-17 1.7 typical real-time operating system introduced 17-20 2 Limix operating system 20-33 2.1 Linux system features 20-22 2.2 Linux kernel structure 22-32 2.2.1 process Scheduling 23-24 2 .2.2 interrupt management 24-25 2.2.3 timer 25-26 2.2.4 system Calls 26-27 < br /> 2.2.5 module Management 27-28 2.2.6 storage Management 28-29 2.2.7 file System Management 29-30 2.2.8 device Manager 30-32 2.3 Summary 32-33 3 Linux real-time issues and approaches 33-42 3.1 Linux real-time critical issues 33 3.2 Linux real-time transformation of the typical method 33-37 3. three typical Linux-based real-time system 37-42 3.3.1 RTLinux 37-42 4 Linux real-time scheduling algorithm testing platform for the design and implementation of 42-59 4.1 grained parallel clock design and implementation 42-50 4.1.1 local APIC hardware description 43-47 4.1.2 The design and implementation on a single processor APIC programmable clock interrupt 47-50 4.2 generic scheduling framework for the design and implementation 50-54 4 .2.1 RED-Linux general framework 50-52 4.2.2 Universal scheduling framework design and implementation 52-54 4.3 clock -driven scheduling algorithm realization 54-57 4.3.1 clocked loop scheduling algorithms general structure 54-56 4.3.2 clocked algorithm 56-57 4.4 real-time performance test 57-59 Conclusion 59-60 References 60-62 Acknowledgements 62-63 Dalian University dissertation copyright attorney 63

Related dissertations

  1. Research on Key Technologies of Real-Time System Task Scheduling
    WangTao ·Harbin Engineering University ·2006 ·Doctoral dissertation
  2. Research on Supporting Techniques for High-Reliable Fault-Tolerant Real-Time Systems
    ChenYu ·University of Electronic Science and Technology ·2001 ·Doctoral dissertation
  3. Research on the Dynamic-Priority Scheduling Algorithms of Tasks in Real-Time Systems
    BaWei ·Dalian University of Technology ·2010 ·Doctoral dissertation
  4. Real-Time Scheduling and Load Balancing Algorithms in Fault Tolerant Systems
    WangJian ·Zhejiang University ·2009 ·Doctoral dissertation
  5. The Research of Weakly Hard Real-Time System Based Improved Constraint and Its Algorithms
    ChenJun ·Wuhan University of Technology ·2008 ·Master's thesis
  6. Research on Adaptive Scheduling Algorithm on Real-Time Embedded Operating System
    SunPing ·Chongqing University ·2007 ·Master's thesis
  7. Design and Implementation of Host Control Software in Spaceborne SAR Imaging System
    WangLei ·Institute of Computing Technology ·2004 ·Master's thesis
  8. A Research of Scheduling Method Based on the Real-Time Linux
    LiuLi ·Shenyang University of Technology ·2006 ·Master's thesis
  9. Embedded real-time scheduler LINUX and its design and implementation
  10. Research on Distributed Real-time Measurement and Control System Based on Linux Operating System
    WeiJianCheng ·Chongqing University ·2005 ·Master's thesis
  11. Research and Implementation of ATM access devices Software
  12. Research on Policy and Algorithm of Task Scheduling in Real-time System
    ZhangLiNa ·Harbin Engineering University ·2008 ·Master's thesis
  13. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  14. Research and Design of Embedded Building Security System
    YangChen ·Liaoning Normal University ·2012 ·Master's thesis
  15. The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
  16. The Research of Household Remote Monitoring Based on Embedded Web Server
  17. Research and Design of Intelligent Video Surveillance System Based on ARM
  18. Design of Video Monitoring System Based on the Embedded
  19. The Design of Embedded Network Video Surveillance System Based on ARM9
  20. Design and Application of the Distributed Monitoring System Based on Embedded Web