Research and Improvement of the Linux dynamic scheduling algorithm

Author
ShiYing
Advisor
HeJia
School
Chengdu University of Information
Major
Applied Computer Technology
Classification
TP316.81
Degree
Master's thesis
Year
2007
Downloads
233
Citations
0

Request the full text

Abstract

In recent years, with the rapid development of information techonology, the real-time system is making big effect on people’s life and it will be applied in more and more areas.Meanwhile, Linux, as its open source, high stability, low cost and some other characteristics,has become the fastest developing operating system in this area. Eevn it’s still not a firm real-time system,it actually has great possibility to be a real one.Improving general Linux’s real-time capability to make it more fit for some special applications (like for embedded system developments)is in great practical significance and has become one of hot research directions in domestic and foreign computer fields.In the Linux big family, the new kernel 2.6 has been proved to be more stable and highly efficient. Compared with 2.4 version kernel, 2.6 has been improved in real-time performance by adopting some new technologies, such as preemptible kernel, the O(1) schedule algorithm etc. Although the developer of RTOS can benefit from these changes, Linux 2.6 is still not a real-time kernel. All these changes make it possible to convert Linux to a RTOS.Since we get the Linux 2.6 kernel and a lot of research based on the new version, we finally decided to start the conversion from the scheduling system.As the new O(1) schedule algorithm is quite efficient but still some shortcomings included.,one of them is the priority of the real-time process is actually“static”,it will not be changed during the whole scheduling process after it was set. As the improvement solution, because of the problem of Linux 2.6 kernel is lacking of real-time scheduling algorithms and policies in the scheduler mechanism, the "laxity" is introduced from the good dynamic real-time schedule algorithm LLF(least laxity first) into the 2.6 kernel. 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.In the part of real-time capability testing, Linux 2.4.20 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 improved Linux system has the stronger real-time capability than Linux 2.6 kernel. Also, instead of adding new algorthem to the system, we make the most of the original structure of the kernel and make the“laxity”idea of LLF to be part of the original system. At last, we conclued the whole project and some of the continual research aims for some limitation are also narrated.

Table of contents

Abstract 2-4 Abstract 4-8 1 Introduction 8-12 1.1 research background 8-9 1.2 Research and meaning 9-10 1.3 papers organizational structure 10-12 a 2 Linux real-time programs 12-25 2.1 real-time operating system 12-17 2.1.1 Real-Time Operating System Introduction 12 2.1.2 Real-time System Features 12-13 2.1.3 Real-Time System classification 13 2.1.4 real-time operating system architecture 13-15 2.1.5 Real-time system performance analysis 15-17 2.2 of the advantages of using a Linux construct real-time system 17-18 2.3 Linux enhanced real-time method 18-20 2.4 some typical Linux real-time programs 20-24 2.4.1 RTLinux and RTAI 20-21 2.4.2 KURT 21-22 2.4.3 RED-Linux 22-23 2.4.4 MVLinux 23 2.4.5 Linux-SRT 23-24 2.5 Summary 24-25 3 Linux scheduling algorithm analysis and design 25-35 3.1 of Linux2.6 kernel processes and process scheduling analysis 25-32 3.1.1 2.6 kernel process described 25-28 3.1.2 Linux2.6 runqueue structure 28-30 3.1.3 process scheduling policy analysis 30-32 the workflow 3.2 O (1) scheduler 32-34 3.3 shortcomings 34 3.4 Summary 34-35 4 kernel scheduling mechanism improved 35-46 4.1 EDF dynamic priority scheduling algorithm 35 4.2 LLF algorithm 35-36 4.3 nbsp Improved principle; 36-38 4.4 Improved scheduling algorithm analysis 38-45 4.4.1 data structure extensions 38-39 4.4.2 Real-time process Insert Function 39-41 4.4.3 Real-time process time property updates 41-43 4.4.4 Real-time process to select 43-45 4.5 Summary 45-46 improve system performance analysis and testing 46-54 The the 5.1 improved system scheduler performance 46 5.2 Linux kernel configuration and compile 46-48 5.2.1 Linux kernel configuration 46-47 5.2.2 Linux kernel compiled 47-48 5.3 Testing and Analysis 48-53 5.3.1 Real-time system performance evaluation 48-49 5.3.2 testing tools LTT 49-50 5.3.3 transformation kernel performance test 50-53 5.4 Summary 53-54 6 Conclusion 54-55 the References 55-58 Acknowledgements 58-59 the author of academic papers published during the master's degree 59

Related dissertations

  1. Research and Improvement of Linux and RTAI Based Real-time Operating System
    WangXiang ·Chongqing University ·2009 ·Master's thesis
  2. Research on the Scheduling Algorithms in Real-Time Multimedia Systems
  3. Design and Implementation of Vibration Spectrum Analyzer
    WangSheng ·Zhejiang University of Technology ·2013 ·Master's thesis
  4. Reseach on Intelligent Control of Elevator Gate Based on Image Recognition
    WangFei ·Zhejiang University of Technology ·2009 ·Master's thesis
  5. Study on the transplantation of FreeRTOS real-time operating system based on Lwip protocol
  6. The kernel of embedded real-time operating system FreeRTOS
  7. Research on the Context Switching Method in Preempitive Real-Time System
    CaiXueLiang ·Northeastern University ·2010 ·Master's thesis
  8. Design and Implementation of Embedded Operating System WebitX for Internet of Things
    GuoNaiMing ·Northeastern University ·2010 ·Master's thesis
  9. The Interrupt Mechanism of Real-time Operating System on ARM
  10. A Tailoring and Research of Embedded Operating System in Intelligent Car Equipment
  11. Memory Management of an ARM-based Embedded Real-Time Operating System
  12. Design and Implementation of an Automotive Embedded Real-Time Operating System Kernel Supporting Homogeneous Multicore
    JiangBin ·Hunan University ·2012 ·Master's thesis
  13. Formal Verification of Real-time Operating System in Binary Code Level
    ShiJianZuo ·East China Normal University ·2012 ·Doctoral dissertation
  14. Semi-physical Simulation of Aircraft Brake Control Algorithm
    YangZhenGeng ·Central South University ·2012 ·Master's thesis
  15. Research and Application on Optimization Technologies for Real-time Operating System in Open CNC System
  16. Reconfigurable embedded system prototyping platform and operating system
    ZhouXueGong ·Fudan University ·2007 ·Doctoral dissertation
  17. Open real-time Linux research and design
    ZhuXiangBin ·Fudan University ·2005 ·Doctoral dissertation
  18. Research on novel piezoelectric feeder
    FanZunQiang ·Jilin University ·2008 ·Doctoral dissertation
  19. Research on Operating System Support for Reconfigurable Computing
    ZhouBo ·Fudan University ·2006 ·Doctoral dissertation
  20. Design of Beam Steering System Based on Embedded Computer