Research on Improving Linux Real-time Performance and Its Application in a Measurement and Control System
- Author
- LiZhiWen
- Advisor
- ChenZengHan
- School
- Chongqing University
- Major
- Electrical Engineering
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 274
- Citations
- 1
Abstract
The importance of real-time operating system in a real-time monitoring and control system is self-evident. Currently, most of the commercial real-time operating systems commonly used in the domestic market to foreign products, these products are usually high price of the urgent need to develop their own real-time operating system. Free, open-source operating system Linux appear, for us to change this passive situation brings opportunity. Abroad have developed a number of real-time Linux and the success achieved in the practical application of research in this area in the country is still in its infancy, and rare example of the success of PC real-time monitoring and control systems used in industrial real-time Linux. In this context, this paper discusses the research and practice of Linux real focus is to enhance the development of the Linux real-time and real-time monitoring and control system. The paper first analyzes the Linux kernel clock and scheduling mechanism, analyzes the Linux real-time and non-real-time process scheduling algorithms and strategies, and then summed up the main reason affecting the real-time performance of the Linux. Then Linux real-time technology. Linux real-time transformation is usually achieved by the underlying programming underlying programming is divided into the external expansion of Linux and the kernel's internal transformation. The analysis and comparison of the mainstream of today's real-time Linux operating system to achieve ideological. Focuses on the realization of the principle of a typical representative of the most suitable for applications in the field of industrial measurement and control in hard real-time Linux system RTLinux. The RTLinux using 8254 set of system timer mode trigger into a single (one-shot) to improve the accuracy of the system clock, while avoiding the frequent interruptions CPU overhead. Of 8254 initial value of this single trigger mode placement algorithm. On this basis, developed a set of real-time monitoring and control system based on RTLinux. On the basis of the above studies, combined with the specific industrial PC system, a new Linux real-time programs. The scheme affect the system real-time kernel to the cut, to make the system run more fast, stable; introduced UTIME package and its improvements, set the timer 8254 as a one-shot mode, both to improve the system clock accuracy, but also reduce the additional burden of CPU; interval timer generates periodic soft interrupt signal; highest priority setting process system process to seize the problem to solve, to reduce the impact of the non-real-time tasks on real-time tasks; specific tasks in the system which is designed to simplify the multi-task scheduler, the scheduler is simple, and high efficiency. The last use of the program in a set of industrial measurement and control systems, the actual operation proves that the system meets the requirements of real-time and stability, and to verify the feasibility of the program.
Table of contents
Chinese Abstract 4-5
Abstract 5-9
1 Introduction 9-14
1.1 Overview 9-10 <br / > 1.2 research the meaning and purpose 10-11
1.3 LINUX Introduction 11-13
1.3.1 Linux emergence and development 11 <br / > 1.3.2 Linux features 11-12
1.3.3 choose Linux as the research object causes 12-13
1.4 the main content of this paper 13 -14
2 Linux kernel clock and process scheduling mechanism analysis 14-25
2.1 core clock 14-18
2.1.1 hardware clock 14
2.1.2 Linux versus time indicates 14-15
2.1.3 Linux timekeeping architecture 15-16
2.1.4 software timer 16-18
2.2 LINUX process 18-21
2.2.1 process 18-19
2.2.2 process control block 19 -21
2.3 LINUX process scheduling 21-23
2.3.1 process scheduling based 21
2.3.2 process scheduling strategy 21-23
2.4 LINUX real-time impact of the main factors 23-24
2.5 chapter Summary 24-25
3 real-time Linux operating system 25-33 < br /> 3.1 LINUX real-time transformation of the main methods 25
3.2 RTLINUX works 25-29
3.3 LINUX other major real introduction 29-31 < br /> 3.4 Summary 31-33
4 RTLinux programming structure and application examples 33-45
4.1 RTLINUX under real-time software programming constructs 33 < br /> 4.2 modules and threads 33-35
4.3 RTLINUX common application programming interface 35-37
4.4 ONE-SHOT clock mode 37-40 <br / > 4.5 RTLINUX -based real-time control system 40-44
4.5.1 system Overview 40-41
4.5.2 hardware Structure 41
4.5.3 software Design 41-44
4.6 chapter Summary 44-45
5 a new real-time Linux solutions 45-61
5.1 requirements Analysis 45
5.2 design ideas 45-47
5.3 kernels cut 47-48
5.4 LINUX improved clock accuracy 48 -52
5.4.1 UTIME 48-51
5.4.2 transplantation UTIME 51
5.4.3 test 51-52
5.5 real-time task scheduling 52-58
5.5.1 scheduling model 52-55
5.5.2 timer interrupt achieve 55-58
5.6 software implementation 58-60
5.7 chapter Summary 60-61
6 Conclusion and Outlook 61-63
6.1 Conclusion 61 -62
6.2 further work 62-63
Thanks 63-64
References 64-66
Appendix : the authors studied papers published during master directory 66-67
originality statement 67
dissertation copyright attorney 67
Related dissertations
- Real-time Operating System Customization of Linux and Development of Device Driver
- Study of Real-time Based on Embedded Linux Operating System
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- Research and Design of Embedded Building Security System
- The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
- The Research of Household Remote Monitoring Based on Embedded Web Server
- 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 and Design of Intelligent Video Surveillance System Based on ARM
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Study on Embedded Data Acquisition System Application
- Embedded Software Design of AC Field Detection Instrument Based on ARM
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
- 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