Research and Improvement of a Micro-Kernel System MINIX3Disseetation
- Author
- WangHuiMin
- Advisor
- BuFengLin , YangMing
- School
- Shanghai Jiaotong University
- Major
- Software Engineering
- Classification
- TP316 Operating system
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 35
- Citations
- 0
Abstract
Micro-kernel is a concept which is different with Macro-kernel. With the rapiddeveloping of hardware, Operating System is becoming larger and larger. Besides somefundamental mechanism, such as interrupt, clock, scheduling and messaging, there are also alot of other services in Macro-kernel, including file system, memory management and variousof drivers, which are famous for poor security.There are huge gaps between Micro-kernel and Macro-kernel on architecture. There areonly some inevitable functions implemented in Micro-kernel. A lot of other services areimplemented as independent processes in user mode. These services together with theMicro-kernel serve as the previous Macro-kernel.The differences on architecture show impact on the communication mechanism. InMacro-kernel, services are all in the some address space, they can communicate with directfunction call, which is really efficient but vulnerable. In order to serve a user’s request,services in user mode have to cooperate in Micro-kernel systems. They communicate with themessage mechanism provided by micro-kernel, which is robust but slow.MINIX3is a micro-kernel system. Messaging is the fundamental communicationmechanism in MINIX3.Messaging has two characteristics. First is that it’s bound to fall intothe kernel when messaging no matter sending or receiving messages. Another is that there isno existing way to avoid message copying. However, falling into the kernel is necessary insome cases but sometimes it’s not, and the same with message copying. Re-designing themessage communication mechanism of MINIX3will improve system efficiency.1. Eliminating unnecessary context switchingEntering kernel mode or not in messaging is determined by whether scheduling isnecessary. Actually, scheduling is not necessary in some scenarios. Taking some memory areain the user mode address spaces of processes and then mapping some messaging-relatedstructures to it will definitely eliminate the unnecessary context switching. Messaging takes place among different types of processes. But some defects ofimplementing fast context switching messaging (FCSM) with all of these processes should beserious considered. Applying FCSM among system services will be enough.2. Zero-copingZero-coping of messages will be realized by making the best use of the sharing memoryarea, which contains a messages pool shared by all system services.
Table of contents
Summary 3-5
ABSTRACT 5-10
first chapter . Nbsp;. 10-14
1.1 Introduction 10-11
1.2 contents and significance . 11-12
1.3 thesis organization . 12-14
the second chapter of the operating system classification and development . 14-23
2.1 operating system development history . 15-16
2.1.1 single -batch system . 15
2.1.2 multi-channel batches . processing system 15
2.1.3 timesharing system . 15-16
2.1.4 real-time systems . 16
2.2 operating system mainly . function 16-18
2.2.1 process Management . 16-17
2.2.2 memory Management . 17
2.2.3 device Manager . function 17
2.2.4 file management functions . 17-18
2.3 operating system structure . 18-19
2.3.1 None. structure of the operating system 18
2.3.2 hierarchical structure . . 18-19
2.3.3 client / server model 19
2.4. microkernel operating system 19-22
2.4.1 development microkernel technology 19-20
2.4.2 microkernel operating system architecture 20 -.. 21
2.4.3 microkernel advantage . 21-22
2.5 Summary . . 22-23
Chapter III MINIX3 operating system 23-35
3.1 MINIX operating system development history . . structure 23
3.2 MINIX3 of 23-26
3.3 MINIX3 process management . 26 -30
3.3.1 MINIX3 process scheduling . 26-28
3.3.2 LINUX process scheduling . 28-29
3.3.3 WINDOWS process scheduling nbsp. ; 29-30
3.3.4 of the similarities and differences between various scheduling algorithms . 30
3.4 MINIX memory management . 30-34
3.4.1 partners . system 31-33
3.4.2 linear zone management . . 33-34
3.5 Summary 34-35
Chapter IV operation. message mechanism system 35-54
4.1 common IPC mechanism . 35-36
4.1.1 critical area . 35
4.1.2 signal amount 35-36
4.1.3 shared Memory . 36
4.2 LINUX message mechanism . . 36-37
4.3 WINDOWS message mechanism 37-40
4.3.1 WINDOWS news programming principles . 37-38
4.3.2 WINDOWS message loop . 38-39
4.3. 3 processing messages . 39-40
4.4 MINIX message mechanism . 40-46
4.4.1 process status in communications . 40-42 < . br /> 4.4.2 related data structures 42-43
4.4.3 messaging process . 43-44
4.4.4 notification process . 44-45
4.4.5 receiver processes the message notification . 45-46
4.5 fast messaging mechanism related system calls . 46-53
4.5. 1 process system calls 47-48
4.5.2 MINIX3 process management system calls . 48-50
4.5.3 MINIX3 memory management system calls . . 50-52
4.5.4 MINIX3 messaging system calls 52-53
4.6 Chapter Summary . . 53-54
Chapter rapid transmission of information mechanism the design and implementation . 54-65
5.1 point improvement MINIX3 message mechanism . 54-56
5.1.1 kernel into a necessity 54-56 .
5.1.2 zero messages are copied . 56
5.2 fast User state space design nbsp message communication ; . 56-59
5.3 quickly realize the message passing mechanism . 59-64
5.3.1 process of creation and memory space allocation 59-60
5.3.2 implement the message processing flow . 60-64
5.4 Summary . . 64-65
Chapter VI experiments and conclusions 65-69
6.1 feasibility system . 65-67 < . br /> 6.1.1 sending messages without kernel 65-66
6.1.2 zero-copy message . 66-67
6.2 nbsp effectiveness of the system . ; 67
6.3 Conclusion . 67-69
References 69-71
Thanks 71-74
accessories 74
Related dissertations
- Implementation and Design of Multi-core Support for Micro-kernel Operating System
- Prison Administration Information System Design and Implementation
- Research and Implement of Key Techniques of User-space Parallel Network Stack
- Research and Design of Embedded Operating System Based on Multi-Core Processors
- Study on security application system data exchange based on ESB
- Asynchronous message -based distributed object Research and Implementation
- The Research and Implementation of Optimization to Collective Communication in Cluster Computing Environment
- Several key technologies of Mobile Agent System Problems
- Research on Parallel Computing Platform in the Grid Environment
- PC cluster environment, parallel ant colony algorithm research
- The Appliacation and Research on XML Data Exchange in Some BingTuan E-Government
- Study and Application of Smart Client Based on CSCW
- Research on Automatic Code Generation and Optimization Technology of Data Distribution and Collection
- Apply Message-Oriented and Object-Oriented Middleware in Distributed Financial Information System
- Research of Domain 0 Kernel Based on Xen
- The VLBI software approach cluster environment
- The Research and Design of the Post SMS and MMS System
- Design and Development of Engine for Network Game
- Research on Appliances of Bayesian Networks in Based-Geometry Detection of Building
- A Research on Parallel DFT Based on MPI in Cluster of PCs Environment