Research on Techniuques for Microprocessor Cache Access Behavior Analysis
- Author
- ZhaoTianLei
- Advisor
- ZhangMinXuan
- School
- National University of Defense Science and Technology
- Major
- Electronic Science and Technology
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Doctoral dissertation
- Year
- 2011
- Downloads
- 15
- Citations
- 0
- Memo ry Wall
- Rep resentative Simulation Points
- P rog ram ExecutionTrace
- Cache Space Sensitivity
- Ideal Add ress Trace
- Stack Distance Histog ram
- TimeDistance Histog ram
Abstract
The“memory wall problem has been a serious obstacle to the development ofhigh performance microprocessors for a long time In the multi-core era,the speedgap between computation and memory access is enlarged quickly since the incre-ment of the offCchip memory bandwidth is much slower than that of the number ofprocessor cores Consequently.the“memory wall”problem is getting deterioratedUnder such circumstances,the efficiency of the on-chip memory system becomesthe key to the performance of a multi-core system Therefore,in the multi-core era,the on-chip memory system must be optimized as much as possible to mitigate theharmful effect of the“memory wall”problemThe rise of the multi--core architecture means both challenges and opportuni--ties to on-chip memory system optimization On the one hand,both the last levelcache and offCchip memory bandwidth are usually shared among all processor coresin a multi-core processor This sharing.due to resource contention among processorcores,will lead to the degradation of overall performance,fairness and quality of ser-vice On the other hand.plenty of transistor resources are available in a multi-corechip,which means multiple policies can be implemented simultaneously from whichone policy can be chosen that matches the behavior of the currently running applica-tion the best This kind of“application behavior specific optimization’’can raise theefficiency of the on-chip memory system to a new level However.a prerequisite toeither resource contention mitigation methods or application specific optimizationsis the deep understanding of the cache access behaviors of programs Therefore,cache access behavior analysis is fundamental to the solution of the“memory wall”problem in the multi-core eraThis paper thoroughly studied the cache access behavior analysis techniquesfrom the methodology and the model perspectives,respectively The main contri-butions are as follows:1 A dynamic binary translation(DBT)based program behavior analysis ac- celeration technique is proposed Program behavior is traditionally analyzed through simulation,which is quite inefficient This paper studies the prob- lems related to program behavior analysis through DBT technique A general framework of DBT based basic block vector(BBV)profiling,DBT-BBV,is proposed Several of its key design choices are discussed and evaluated Two optimization methods is proposed to reduce the BBV profiling overhead One counter compensation method is proposed to improve accuracy A highly ef- ficient BBV profiler,QPoint,is implemented based on the DBT-BBV frame- work and the proposed efficiency-and accuracy-enhancing techniques Exper- imental results show that the performance of QPoint is l 0 5 times of that of a functional simulator based BBV profiler.and l 73 times of that of a simple implementation2 A method is proposed to improve the accuracy of the SimPoint based program behavior analysis technique In SimPoint based program behavior analysis,if the same simulator is used for both BBV profiling and detailed simula- tion,then the simulation points generated by BBV profiling can be used to guide the detailed simulation accurately Unfortunately,when BBV profiling is carried out through DBT technique,the execution traces differs quite a lot between the BBV profiling execution and the detailed simulation execution of the program,which makes the simulation points obtained by DBT tech- nique inaccurate for guiding detailed simulation This paper shows that if not handled appropriately,the difference of the execution trace may cause serious accuracy problems to the simulation results A program execution trace model is proposed to determine various factors that may affect program execution trace,and several methods are proposed to eliminate these factors’influence Experimental results show that the proposed methods can effectively elimi- nate the errors caused by DBT based BBV profiling Experimental results show that the proposed methods can eliminate the execution trace difference of 23 out of 28 SPEC2006 benchmarks The execution differences of the other 5 SPEC2006 benchmarks are also very small,and are negligible3 An accurate model is proposed for estimating SDH(stack distance histogram) from TDH(time distance histogram)Through in-depth analysis of the prop- erties of time distance,this paper discovers a constraint that is inherent to time distance series:the“shadowing”effect This effect can seriously affect the accuracy of the TDH based cache access behavior analysis models By studying the property of the“shadowing”effect and its impact on present cache models,this paper proposes the SASS(Shadowing aware STATSTACK model)model,which is an improvement over the STATSTACK model Ex- perimental results show that by taking into account the“shadowing”effect.the SASS model can improve the SDH estimation accuracy effectively and iS the most accurate SDH estimation model when evaluated with SPEC2006 benchmarks4 A method fOr ideal address trace synthesis from arbitrary data reuse patterns is proposed Ideal address traces with various data reuse patterns are impor- tant tools fOr cache access behavior model construction and evaluation This paper proposes methods fOr ideal address trace synthesis from either SDH or TDH Although synthesis algorithm fOr SDH is straightforward.synthesis al- gorithm fOr TDH must take into account the“shadowing”effect Otherwise.the synthesized address traces would be wrong This paper proposes two ideas,probability transformation and probability compensation,to accommo- date the“shadowing”effect in ideal address trace synthesis Experimental results show that the proposed algorithms can efficiently synthesize ideal ad- dress traces with arbitrary data reuse patterns
Table of contents
Summary 10-12
ABSTRACT 12-15
first chapter 15-35
1.1 subject background 15-25 < br /> 1.1.1 memory wall 17-19
the 1.1.2 the challenges and opportunities facing the multicore era storage system 19-22
1.1.3 Cache access behavior the significance 22-25
1.2 Related Research 25-30
1.2.1 Cache access behavior analysis method 25-26
1.2.2 Cache access behavior analysis model 26-27
1.2.3 memory access behavior of shared cache space is divided 27-28
1.2.4 memory access behavior of shared memory access the bandwidth divided 28
1.2.5 memory access behavior analysis and task scheduling 28-30
1.3 research content 30-32
1.3.1 C-ache access behavior analysis methods 30-31
1.3.2 Cache access behavior analysis model 31-32
1.4 The main work and innovation 32 - 33
1.5 paper structure 33-35
first part of the memory access behavior analysis methods 35-77
Chapter II application behavior analysis acceleration technology 37-61
2.1 issues raised 37-40
2.2 DBT-BBV framework 40-43
2.2.1 the BBV Pro k About 40
2.2.2 DBT-BBV framework introduced the 40-42
2.2.3 key design choices 42-43
2.3 QPoint: Design and Optimization 43-46
2.3.1 Dynamic Instrumentation process 43-45
of 2.3.2 BBID and counter allocation 45
2.3.3 unusual event processing 45-46
2.3.4 the precise identification execution fragments boundary 46
2.4 Experimental results and analysis the experimental configuration 46-59
2.4.1 46
2.4.2 different design choices performance compare the the 46-48
2.4.3 QPoint performance, assessment 48-50
2.4.4 overhead analysis nbsp 50-51
2.4.5 sPEc2006 program phase behavior analysis; 51-59
2.5 Summary 59-61
Chapter application behavior analysis accuracy upgrade technology 61-77
3.1 problem raised 61-62
3.2 the DBT method the accuracy of the simulation results 62-67 <br / > 3.2.1 based on DBT accelerated simulation process nbsp 62-63
3.2.2 Analog point positioning; 63-64
3.2.3 of DBT method of simulation results accuracy impact 64-67
3.3 DBT method to improve the accuracy the 67-74
3.3.1 affect program execution traces of possible factors 68-69
3.3.2 Process initial state the 69-71
3.3.3 Status update process 71-74
3.4 Experimental results and analysis 74-76 < br /> 3.5 Summary 76-77
The second part of the memory access behavior analysis model 77-117
Chapter application cache capacity sensitivity prediction 79 -103
4.1 issues raised 79
4.2 Research 79-88
4.2.1 stack reuse distance distribution 79-83 <br / > 4.2.2 time reuse distance distribution 83-88
4.3 reuse distance \br /> 4.5 Experimental results and analysis 91-101
4.5.1 fully associative cache 92-93
4.5.2 associated cache 93 - 101
4.6 Summary 101-103
Chapter ideal memory access sequence structure technology the the 103-117
the 5.1 issues raised 103-104 < br /> 5.2 the basic process the 5.3 stack distance sequence 104-105
hook-made methods 105
5.4 from serial cards hook manufacturing methods 105-113 < br /> 5.4.1 thinking: generous rate conversion 108-111
5.4.2 thinking: generous rate of compensation 111-113
5.5 Results and analysis 113-116
5.5.1 good accuracy assessment the 113-114
5.5.2 algorithms run faster 114-116
5.6 Summary 116-117
Chapter VI Conclusion 117-121
6.1 summarizes 117-118
6.2 Future research directions 118-121 <br / > Acknowledgements 121-123
Reference nbsp the achieved academic achievements 123-141 the
author in the study period; 141-145
Appendix A Abbreviations and symbols list 145-146