The simulation oriented real-time operating system technology research
- Author
- JiangZhongQin
- Advisor
- YaoXinYu
- School
- National University of Defense Science and Technology
- Major
- Control Science and Engineering
- Classification
- TP316.2 Real-time operating system
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 73
- Citations
- 0
- real-time
- Operating system
- Linux
- Timing measurement
- clock interrupt
- Softirq
- root filesystem
- kernel thread
- socket
Abstract
Along with the expansion of the simulation system applications, more and more systems need to be constructed with HIL(Hardware In Loop),which strongly calls for real-time simulation.Real-time simulation,must provide better real-time characteristic and faster response characteristic^ support the complexity and large-size of nowaday simulation systems. Then, operating system of the computers, as the infrastructure for the simulation systems, is very important to give us a steady, unfluctuating and expedite feature.Even a good real-time OS can’t satisfy all requirements of every real-time simulation system. Then the better way is to develop a special real-time OS which meets our special needs. And the special OS should provide easy parameters-reconfiguration ability to adapt to different kinds of simulation systems.With a pretty good real-time performance and the open-source feature of the kernel codes, Linux OS helps us realize "simulation real-time OS" easily. Although Linux is a time-shared OS, its new edition kernel has a much better real-time characteristic .we can convert Linux to real-time OS by modifying kernel source codes according to our special requirments.Firstly, in this paper, we study the source codes of all kernel subsystems which are related to the real-time characteristics, and sum up the key kernel elements that affect the real-time characteristics, which include processes and process scheduling, interrupts and system calls, net management, timing measurement. At the same time we offer some methods for the improvements of every kernel elements.Secondly, we compile kernel source codes which has been modified, build a new neat root-file-system, combine the two parts above to get a new KD-Linux that is prepared for latter examination.In the end, we design a series of real-time simulation programs for different running conditions, analyze the means to realize real-time simulation and the accuracy of timing measurement in Linux OS step by step, and then test the programs in KD-Linux to validate above theories. What’s more, we design network data transfer programs to research the effects of network communications in real-time simulation.
Table of contents
Summary 5-6
ABSTRACT 6-7
Chapter Introduction 7-12
§ 1.1 real-time simulation and real-time operating system 7-8
§ 1.2 Linux operating system 8-9
§ 1.3 Development Status 9-10
§ 1.4 Linux OS real-time to improve program 10
§ 1.5 thesis of value and meaning to § 1.6 Thesis organization and structure of 10-11
11-12
real-time Linux OS kernel mechanism analysis the 12-39
§ 2.1, kernel structures 12-14
§ 2.2 processes and process scheduling mechanism 14-22
the § 2.2.1 Process attributes 14-15
§ 2.2.2 process creation, execution and disappearance to § 2.2.3 Process Scheduling 15-16
16-20
§ 2.2.3.1 process scheduling timing 17-19
§ 2.2.3.2 process scheduling policy 19-20
§ 2.2.4 process scheduling mechanism real-time improvements 20-22
§ 2.3 interrupt system call mechanism 22-28
§ 2.3.1 interrupt processing 22-24
§ 2.3.2 system calls the The
§ 2.3.3 can be delayed 24-25 function (soft interrupt) 25-27
§ 2.3.3.1 soft interrupt the tasklet is nbsp ; 25-26
§ 2.3.3.2 the lower half the
§ 2.3.4 interrupt mechanism 26-27 real-time improvements 27
§ 2.3.5 soft interrupt mechanism for real-time improvements 27-28
§ 2.4 network 28-34
§ 2.4.1 Linux network interfaces 28-29
§ 2.4. 2 network-related system calls 29-30
§ 2.4.3 to the network card to send data and receive data from NIC 30-34
§ 2.4.3.1 sent to the NIC data 31-32
§ 2.4.3.2 receive data from NIC 32-34
§ 2.4.4 network portion of the real-time improvements 34
§ 2.5 Timer measurement to the
§ 2.5.1 and timing measurements hard clock 34-38 34-35
§ 2.5.2 Linux kernel clock interrupt 35-37
to § 2.5.2.1 Linux clock interrupt initialized 35-36
§ 2.5.2.2, clock the interrupt service the program timer_interrupt () 36-37
§ 2.5 .3 timing measurements system call 37
§ 2.5.4 timing measurements in real time to improve 37-38
§ 2.6 Summary 38-39
Chapter establishment and performance of the KD-Linux 39-54
§ 3.1 KD-Linux system to establish 39-47
§ 3.1.1 KD-Linux the boot process to establish 39-41
§ 3.1.2 Linux kernel initialization KD-LINUX system initialization to establish 41-44
§ 3.1.3 KD -Linux kernel, modify and compile 44-45
§ 3.1.4 the KD-Linux root file system to establish 45-46
§ 3.1.5 the KD-Linux system integration the 46-47,
§ 3.2 KD-Linux system real-time performance optimization 47-53
§ 3.2.1 KD-Linux system kernel threads Analysis 49 - 53
§ 3.3 KD-Linux system using 53
§ 3.4 Summary 53-54
Chapter of real-time simulation analysis of the design and operation of the program 54-64 the
§ 4.1 real-time simulation test procedures designed 54-56
§ 4.1.1 timer mode the (kernel attitude Time) 54-55 < br /> § 4.1.2 single process mode (the user attitude Time) 55-56
§ 4.2 network transfer program designed 56-57
§ 4.2.1 Network data receiving program 56
§ 4.2.2 network data transmission procedures 56-57
§ 4.3 real-time simulation process running process analysis 57-63
§ 4.3.1 Timer mode program execution analysis 57-61
§ 4.3.2 single-process mode program to perform the analysis 61-63
§ 4.4 Summary 63-64
Chapter tests and data analysis 64-82
§ 5.1 Timer mode program related test 65-72
§ 5.1.1 Red Hat Linux system under test 65-69
§ 5.1.2 the KD-Linux system under test 69-72
§ 5.2 single process program related test 72-79
§ 5.2.1 Red Hat Linux system under test 72-77
§ 5.2.2 the KD-Linux system under test 77-79 the
§ 5.3 related tests in the presence of network data transmission the timer mode program test 79-81 the
§ 5.3.1 Network 79-80
§ 5.3 the .2 network as a single process program test 80-81
to § 5.3.3 Real-time simulation program network data transceiver test 81
§ 5.4 Summary 81-82
Chapter VI Summary and Outlook and 82-84
Appendix 84-89
thank the 89-90
References 90-91
Related dissertations
- Real-time Operating System Customization of Linux and Development of Device Driver
- Research and Development of Bottom Software of Inkjet Printer System Based on Embedded Linux
- Design and Implement of the Embedded Monitoring Terminal Based on
- Study of Real-time Based on Embedded Linux Operating System
- Fuzhou Mail Processing Center Optimization Research
- 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
- Design and Implementation of Multi-channel Data Acquisition System
- 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