Linux real-time signal driven I / O improvements
- Author
- HeQing
- Advisor
- LuXianLiang
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 241
- Citations
- 1
Abstract
With the rapid development of the network, the number of network users rapid expansion. As a direct provider of a variety of network services, high-performance network server has also become one of the focus of attention. Network server performance depends first and foremost on the hardware it's running platform. Subject to the limited increase peripheral speed, low I / O performance is still the major bottleneck restricting improve the overall performance of the computer. When running on a computer network servers simultaneously serving thousands of users, this contradiction is more prominent. But on the other hand, the web server software itself structure determines whether it can make full use of existing hardware environment. The defects of the traditional server architecture and I / O model is also constrained the important factors to improve server performance, Therefore, how to improve it to become another increase network server performance to start. Based on event-driven I / O model is one of the focuses of the research in this field. Traditional UNIX / Linux provides the select / poll to achieve the multiplexer-based event-driven I / O model, however, due to the realization of the imperfections, select / poll scalability has been limited. Select / poll lack a variety of platforms also have the alternative, such as Solaris / dev / poll, the BSD to KQUEUE, and Linux epoll. Real-time signal driven I / O is also a strong contender, especially on the Linux platform, thanks to the complete implementation of POSIX real-time signals, it has been proven to be of great value. However, this model still exist shortcomings and needs to be further improved. This paper first introduces the traditional UNIX / Linux system server architecture and I / O model and explains why they have not qualified for the network server. After analysis of the defects of select / poll-based event-driven I / O model, and describes the various alternatives, which focuses on analysis of real-time signal-driven I / O. Next, identify the real-time signal-driven I / O under Linux platform to achieve the performance and potential reliability problems, and proposed solutions and gives the specific implementation. Finally, the reliability and performance testing and the results were analyzed. Tested, has been greatly improved, improved real-time signal driven I / O model reliability and performance to meet or exceed the level of other similar solutions.
Table of contents
Abstract 4-5
ABSTRACT 5-6
directory 6-8
Chapter Introduction 8-10 <br / > 1.1 Background 8-9
1.2 Thesis Organization 9-10
Chapter traditional I / O model and server architecture 10-22 <br / > 2.1 I / O model 10-16
2.1.1 blocking I / O 11-12
2.1.2 nonblocking I / O 12-13
2.1.3 multiplexed I / O 13-14
2.1.4 signal drive I / O 14-15
2.1.5 asynchronous I / O 15-16
2.2 server architecture 16-22
2.2.1 single process cycle server 17
2.2.2 Multi-process server 17-19
2.2.3 multithreaded server 19-20
2.2.4 Single-process event-driven (Single-Process Event-Driven-SPED) server 20 - 22
Chapter III event-driven I / O improvements 22-28
3.1 对 select / poll analysis 22-24
3.1.1 select / poll principle 22-23
3.1.2 select / poll defect 23-24
3.2 Several alternatives 24-28
3.2 .1 Solaris the / dev / poll 24-25
3.2.2 BSD's Kqueue 25-26
3.2.3 Linux's epoll 26-27 < br /> 3.2.4 Real-time signal drive I / O 27-28
Chapter real-time signal driven I / O 28-32
4.1 real-time signal 28-29
4.2 real-time signal driven I / O 29
4.3 real-time signal driven I / O defects and improve vision 29-32
Chapter Design and implementation 32-69
5.1 Summary of design 32-36
5.1.1 signal values ??indexed array 32-33
5.1.2 descriptor hash 33-34
5.1.3 Structure of the signal on the system to open the file structure 34-35
5.1.4 View and modify kernel parameters 35 -36
5.2 Detailed Design and Implementation 36-69
5.2.1 basically a (descriptor-based hash tables) 36-51
5.2.1.1 Signal value of the index array 36-39
5.2.1.2 descriptor hash table structure 39-41
5.2.1.3 space allocation 41-42
5.2 .1.4 signal generator 42-46
5.2.1.5 signal delivered 46-49
5.2.1.6 Each descriptor is a signal 49-51 <br / > 5.2.2 basic realization of two (the signal to open the file structure on the system configuration) 51-59
5.2.2.1 Modify to open the file structure 51
5.2.2.2 Signal queue structure 51-52
5.2.2.3 space allocation 52
5.2.2.4 Signal Generator 52-56
5.2.2.5 signal delivered 56-57
5.2.2.6 open and close each descriptor a signal 57-59
5.2.3 basic realization of some of the problems 59-61
5.2.3.1 close the file descriptor 59-61
5.2.3.2 passed between processes descriptor 61
5.2.4 View and modify kernel parameters 61-69
5.2.4.1 / proc File System Introduction 61-63
5.2.4.2 Create / proc entry documents 63-66
5.2.4.3 reader example implementation of kernel parameters 66-69
Chapter VI test and results analysis 69-76
6.1 test environment 69
6.2 Functional Test 69-70
6.3 performance test 70-76
6.3.1 Analog Communications Server 70-75
6.3.2 Analog WEB server 75
6.3.3 simultaneous use of multiple signal efficiency 75-76
Chapter VII Conclusion 76-77
References 77 - 78
Thanks 78-79
biographical 79
Related dissertations
- Study of Related Issues of Network Accounting Information System Establishment
- Research and Implementation of the Evaluation Technology of Energy Consumption in Wireless Sensor Networks under the Complex Environments
- Research and Implementation of Scalable Server Cluster
- The Design and Implementation of Engineering Project Management System
- Research and Implementation of Node Energy Modeling in Wsn Based on Queueing Petri Nets
- A Study on Erp Financial Management System Based on Agile Financial Chain
- Event-Driven Based Hierarchical and Adaptive Network Management System
- Research on the Techniques for Componentized Control Functions of Reconfigurable Network
- Application Research on Event Driven and Protocol Driven of Given Field Oriented of Topic Crawler
- Design and Application of the Integrated Platfom of the Remote Meter Reading System
- Modular design and optimization of front banking system
- Based on QP-nano Automobile ABS Simulation Software System Design and Realization
- Design and Implementation of an Epoll-Based Information Push System
- Testing for Selecting Atm Equipments Based on Event-Driven
- Study and Implementation of State Machine Code Generation Technology for Quantum Framework in Embedded Systems
- Research and Application of Low-Power Mac Protocal in Wireless Sensor Network
- A Study on the Routing Algorithm Based with the Unequal Clustering
- Design and Implementation of the Simulation and Evaluation System of Energy Consumption in Wireless Sensor Networks Based on Event-driven
- The Research and Design of the Open Platform of the Internet of Things
- Design and Implementation of Embedded Operating System for Sensor Network