Research of memory management strategy for high performance IPC
- Author
- LiuYang
- Advisor
- LiYi
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 25
- Citations
- 0
Abstract
With the development of operating system technology, multi-task has become one of essential features. More than one tasks running on a same computer provides users convenience and flexibility and allows many jobs to share resources on one single computer. In the meantime, processes need communicate with other ones for completing related work, which need features like inter-process communication (IPC) provided by operating systems. Better IPC performance means shorter responding time, which could have tasks complete more efficient. Starting from memory management strategy and implementation method, costs during IPC are analyzed in this thesis to find out ways to increase IPC performance on Linux based on modifying memory management strategy.First, it is introduced in this thesis that background and worth of this study, as well as related domestic and oversea researches. Requirement of memory manager in modern operating systems and inter-process communication problems on such architectures are demonstrated. Several types of OS kernels and appropriate memory management strategies are described. Different IPC mechanisms for different kernel design models are also introduced.Next, several IPC mechanisms and implementations on representative OS kernels are drawn to attention. Memory structure and IPC methods for user land processes of Linux kernel, a typical monolithic kernel, are carefully studied. It is analyzed how Linux IPC is implemented by reading related source code. Differences of IPC methods and their cost are also summarized. It is then analyzed that IPC methods for system services of MINIX3and L4, both of which are micro kernels. After reading research materials of these kernels, analyzing their design principles, and reading related source code, their IPC mechanisms on different memory models are studied.After comparison of previous IPC methods and analysis on ways of improving Linux IPC performance, it is tried that bring L4’s memory management strategies to Linux and applying IPC with direct memory mapping cross process address spaces. Sematic of several operations for direct memory mapping is also designed. Then, feasibility of such mapping on Linux kernel is analyzed. Detailed implementation on Linux kernel, as well as its impact to other part of the kernel, is also introduced.Finally, several tests of the direct memory mapping against existing Linux IPC methods on their transmission speed and single transmission overhead are done. Results show that direct memory mapping has shorter overhead than existing memory sharing method does for a single transmission, while it can transmit as fast as the latter does for large amount of data.
Table of contents
Summary 4-6
ABSTRACT 6-10
first chapter 10-15
1.1 subject background 10-12
1.2 related research status major work 12-13
1.3 article organizational structure 13-14
1.4 article 14-15
between the second chapter of modern operating system's memory management strategy and process communication 15-22
2.1 operating system kernel types 15-17
2.2 kernel memory management strategies 17-20
2.3 kernel provides interprocess communication 20-21
2.4 Summary 21-22
Chapter typical operating system IPC method 22-41
3.1 Linux kernel user -process communication 22-35
3.1.1 -process communication methods 23-25 ??
3.1.2 pipes and named pipes 25-27
3.1.3 signal 27-28
3.1.4 message queue 28-31
3.1.5 semaphore 31-32
3.1.6 shared Memory 32-34
3.1.7 Linux IPC summary 34-35
3.2 MINIX kernel process communication 35-37
3.3 L4 kernel process communication 37-40
3.4 Summary 40-41
Chapter IV Linux in direct memory -mapped Research 41-62
4.1 to further improve the performance of the IPC method 41-42
4.2 direct memory mapping 42-46
4.2.1 direct Memory semantic mapping and page tables operate 43-45
4.2.2 direct Memory usage mapped 45-46
4.3 direct memory mapping to achieve 46 - 61
4.3.1 kernel modification method of investigation 46-49
4.3.2 page mapping method of investigation 49-51
4.3.3 direct memory -mapped detailed implementation 51-61
4.4 Summary 61-62
Chapter Linux direct memory mapping test 62-68
5.1 testing environment and principle 62-63
5.2 throughput testing and analysis 63-65
5.3 single communication performance testing and analysis 65-67
5.4 summary 67-68
Chapter VI summary and Outlook 68-71
Thanks 71-72
References 72 obtained during -75
attack Shuo research 75
Related dissertations
- Research on Optimizing Memory Management of Java Operating System
- Research on the Performance of National Audit Results Announcement and Its Influencing Factors
- " Jinsui" Farmers Benefitial Card and Farmer Credit Loan Business Development Research
- Research on the Performance of Property Insurance Lines in China
- Study on Chinese Agricultural Futures Hedging Performance of Low Level
- Study of China’s Securities Industry Based on SCP Paradigm
- The Liquidity Effect on the Relationship between the Size and the Performance of the Equity Open-ended Fund
- An Empirical Study on the Performance of Chinese Mutual Funds
- The Study on the Development of Socially Responsible Investment Funds in China
- The Performance Analysis on the City Commercial Banks in China before and after the Listing
- Research on Performance Evaluation and Innovation of New-type Rural Financial Institutions
- Analysis on Village Banks’Performance and Factors
- Research on the ownership structure of China's small and medium-sized commercial banks influence on its performance
- A Study on the Effectiveness of Performance Evaluation System of A Bank Shaanxi Branch
- Study on Internal Governance and Product Design for Rural Credit Union Funds Performance Influencing
- Research on the diversification of commercial bank China
- The Performance Evaluation of Listed Banks in China an Empirical Study on Lnfluencing Factors
- Evaluation and Empirical Study of China’s Listed Banks Operating Performance
- Research about Impact of Financial Openness on Commercial Bank Performance in China
- Research on Performance Evaluation Index System of Listed Commercial Banks