The Research and Implementation of Application-Specific Buffer Management Mechanism
- Author
- ZhuYanXu
- Advisor
- YinJunWen
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 92
- Citations
- 2
Abstract
In order to fill the speed gap between processor and disk, many computer systemsuse buffer cache to buffer the disk data that has been accessed. At present, most of thebuffer management mechanism only use one kind buffer replacement policy, like LRU,MRU and so on. But seen from more and more applications, the characters of dataaccess are diversiform.Obviously one policy can not suit multiple applications.Therefore,unifying two policy-replacement-integrated and application-specificbuffer management mechanism, this thesis propose a new application-specific buffermanagement mechanism,which not only can support applications designate their owndata reference patterns and choose replacement policy according to reference patterndynamically, but also can detect correctness of reference pattern,which could beconsidered as a refer for application to adapt its actual reference patternThrough the analysis of the data access character from some applications,this thesisput forward four reference patterns: sequential reference pattem, looping referencepattem, probabilistic reference pattem and temporally-clustered reference pattern.According to these patterns, the system integrates three policies LRU, MRU and LFU,and designates the correlation between reference pattern and policy;To supply theapplication with feedback information, the system provides check-up function, to checkwhether the application’s real reference pattern match the designated pattern;Afterunderstanding buffer management mechanism of Linux, we build our new mechanismbased on it.Finally, this thesis use trace-driven method to simulate the new mechanism ondisksim simulator. The simulation results show that, the disk I/O system with newmechanism can reduce the response latency and the disk I/O time, and has a betterperformance than the traditional system that use unique replacement policy,and it showsits advantage a certain extent comparing with ones using other application-specificmechanisms.
Table of contents
Summary 9-10
ABSTRACT 10-11
The first chapter 11-16
1.1 research background and significance 11-12
Status
1.2 and the research work of this project 12-15
1.3 Thesis structure 15-16
block access sequence mode
Chapter II applications 16-23
Formal
2.1 users block access sequence patterns describe 16-17
2.2 sequential access mode detection 17-21
defined
2.2.1 block access attributes 17-19
2.2.2 Detection methods 19-21
2.3 sequential access patterns and corresponding replacement policy 21-22
2.3.1 buffer replacement policy 21-22
2.3.2 correspondence 22
2.4 Summary 22-23
Chapter III Linux buffer management 23-41
3.1 buffer management framework and working mechanism 23-25
3.2 basic data structures 25-35
3.2.1 Buffer Cache 25-30
3.2.2 page cache 30-33
3.2.3 address_space structure 33-35
allocate 3.3 buffer
35-37
3.3.1 buffer page 36
3.3.2 allocate buffer page 36-37
3.4 Page caching , buffer and buffer cache relations page 37-38
3.5 buffer replacement 38-40
3.6 Summary 40-41
Design and implementation of Chapter IV
application-oriented management mechanism 41-55
4.1 Working principle and main features 41-42
4.2 buffer allocation 42-48
4.2.1 allocation algorithm 42-44
Management 4.2.2 RU 44-48
4.3 buffer replacement 48-49
4.3.1 recovery algorithm 48
4.3.2 Recycling fairness algorithm 48-49
4.4 detecting member 49-52
4.5 to achieve application-oriented interfaces 52-54
4.6 Summary 54-55
Chapter V performance test 55-63
Methods
5.1 disk I / O system testing 55-57
5.1.1 Mathematical modeling and analytic 55
5.1.2 Benchmark Measurement 55-56
5.1.3 simulation 56-57
5.2 DiskSim introduced 57
5.3 details and simulation results 57-63
Chapter VI Conclusion 63-65
6.1 Thesis summary 63
6.2 deficiencies and future work 63-65
Thanks 65-66
References 66-69
authors during the school academic achievements 69