Research on Key Techniques for Optimizing Last Level Cache Performance
- Author
- HuangTao
- Advisor
- WangKeYi , ChengXu
- School
- Beijing University
- Major
- Computer System Architecture
- Classification
- TP333 Memory
- Degree
- Doctoral dissertation
- Year
- 2013
- Downloads
- 77
- Citations
- 0
Abstract
Multiple level caches have been used in modern processors in order to bridge thewidening gap between processors and main memory speed. The design of last levelcache is different from the separate L1caches for instructions and data. The sharedlast level cache data are filtered by inner caches and have respectively weaker locality.Thus, the traditional management policy used in the management of small L1cache isdifficult to make effective utilization of last level cache capacity, which makes aserious impact on the processor memory access performance improvement. Theeffective management of last level cache can reduce cache misses and has importantpractical significance on the improvement of overall system performance.Operating system is responsible for allocating physical memory and sets up themapping between virtual and physical address. The data layout of last level cache canbe influenced by adjusting physical memory allocation policy in order to optimizedata locality and reduce last level cache misses. Compared with the traditionaloptimization techniques based on hardware and compiler, the above approaches havea lot of advantages including little changes on hardware and transparent toapplications. From the perspective of memory management policy and collaborativelast level cache design, we propose several new key techniques for optimizing lastlevel cache performance on the basis of related researches. The main contributionsand achievements of this dissertation are summarized into four aspects as follows:1. We propose a region-based software-only cache partitioning for reducing lastlevel cache pollution. If weak locality date enter last level cache, it could evict thefrequently accessed ones and cause last level cache pollution. A profiling feedbackmechanism is used to distinguish the weak locality pollute data regions in memoryintensive applications. This approach allocates a small last level cache slice formapping pollute data set by modifying physical page frame allocation policy ofoperating system. It can protect good locality data in last level cache and reduce lastlevel cache misses. The experimental results show that in comparison with theexisting Linux operating system, this approach reduces LLC MPKI, the last levelcache misses per1000instructions,15.23%on average and improves the applications performance7.01%on average.2. We propose a shared last level cache optimization by combiningprocess-based cache partitioning and pollute region isolation. The concurrentprocesses and the data regions of each process content the shared last level cachespace of multicore processor. It causes serious last level cache data access conflict.This approach detects and identifies the pollute region sets of a given application onthe different shared last level cache size configurations. It sets up a global pollutebuffer on shared last level cache to map the weak locality data regions of concurrentprocesses together and can further improve shared last level cache utilization onmulticore processors in multiprocessing environment. Our experimental results showthat in comparison with the existing Linux operating system and the process-basedcache partitioning RapidMRC, this approach respectively improves multicore systemperformance by26.31%and5.86%on average.3. We propose a page-grain last level cache insertion policy controlled bysoftware with a llightweight dardware support. Because of limited informationrecorded in it, the hardware-based last level cache management is difficult toeffectively exploit the behaviors of distinct data regions of a given application. Thisapproach designs page-grain last level cache software-controlled interface by usingthe reserved bits on page table entry of the existing processor. Guided by profilinginformation, it controls the last level cache insertion position of pollute regions data inpage grain. Compared with hardware-only insertion policy base on set dueling, it canfurther reduce last level cache pollution with little hardware overhead. Ourexperimental results show that in comparison with LRU, DIP and DRRIP, ourapproach can respectively reduces the MPKI,14.33%,9.68%and6.24%on average.;the processor performance is respectively improved8.3%,6.23%and4.24%onaverage.4. We propose a software and hardware collaborative last level cachemanagement for virtual address regions. The data of a continuous virtual addressregion are scattered over physical page frames during run time. The existing last levelcache performance monitor is difficult to make this distribution statistics and can notsupport for guiding runtime optimizations. Firstly, we design a region-basedperformance monitor in order to online record the last level cache memoryinformation of different data regions for a given application; Then, we also design alocality online profile with region-based performance monitor support; Lastly, wedesign a last level cache software-controlled interface. Guided by profiling information, operating system configures the bypass and insertion policies of differentdata regions according to their memory access behaviors. This apprach requires littleadditional hardware and can effectively improve last level cache utilization. Ourexperimental results show that in comparison with LRU, DIP and DRRIP, theprocessor performance is respectively improved8.05%、5.94%and4.01%on average.
Table of contents
Summary 4-6
Abstract 6-15
first chapter 15-39
1.1 Background 16-28
1.1.1 storage hierarchy importance 16-17
1.1.2 final cache 17-19
1.1.3 last level cache organization and management 19-22
1.1.4 last level cache performance analysis 22-25
1.1.5 operating system affect the last level cache performance 25-28
1.2 Research Status 28-33
1.2.1 shared last level cache to reduce scheduling conflicts strategy 28-29
1.2.2 on page coloring the last level cache software partitioning method 29-30
1.2.3 operating system support hardware-software co last level cache design 30-31
1.2.4 program cutaway memory access behavior analysis technology 31-33
1.3 research foundation 33-35
1.4 research work and contribution 35-38
1.5 this article organizational structure 38-39
chapter last level cache performance optimization technical analysis 39-55
2.1 replacement algorithm 40-44
2.1 .1 swapped out strategy 40-41
2.1.2 insertion strategy 41-42
2.1.3 strategy to promote 42-43
2.1. 4 for mixed mode memory access optimization strategies 43-44
2.2 bypass technology 44-46
2.2.1 PC -based analysis of the memory access instructions bypass technology 44-45
2.2.2 analysis based on data block bypass techniques 45-46
2.3 code and data layout 46-48
2.3.1 code layout 46
2.3.2 data layout 46-48
2.4 prefetching techniques 48-49
2.4.1 hardware prefetching techniques 48-49
2.4.2 software prefetching techniques 49
2.5 low-power technology 49-50
2.5.1 technology to reduce static power 49-50
2.5.2 reduce dynamic power technology 50
2.6 partitioning strategy 50-52
2.7 coherence protocol 52-53
2.8 Summary 53-55
Chapter III final stage of high-speed cache subregion software partitioning method 55-75
3.1 Research Overview 55-56
3.2 related work 56-57
3.3 motivation 57-60
3.4 subregional software division 60-69 <br / > 3.4.1 memory access traces generated 61
3.4.2 modeling regional conflicts 61-65
3.4.3 contaminated area detection 65 - 68
3.4.4 isolate the contaminated area 68-69
3.5 experimental evaluation 69-73
3.5.1 contaminated area detection information 70-71
3.5.2 MPKI evaluation 71-72
3.5.3 performance Evaluation 72
3.5.4 design overhead 72-73
3.6 Summary 73-75
shared last level cache optimization process is divided between the fourth chapter and isolate contaminated areas combining 75-95
4.1 Research Overview 75-77
4.2 related work 77-78
4.3 motivation 78-83
4.4 partial sectional analysis 83-86
4.5 shared last level cache software partitioning 86-87
4.6 experimental evaluation 87-94
4.6.1 evaluation procedures classified 87-90
4.6.2 conflict Analysis concurrent processes between 90
4.6.3 process of dividing the result contaminated area 90-91
4.6.4 different color distribution area configurations 91-92
4.6.5 weighted acceleration than the evaluation 92-93
4.6.6 running time of a single process evaluation 93-94
4.7 Summary 94-95
Chapter page granularity software control last level cache insertion policy 95-111
5.1 Research Overview 95-97 <br / > 5.2 related work 97-98
5.3 motivation 98-101
5.4 software controls the insertion strategy 101-102
5.5 experimental evaluation 102-109
5.5.1 page a failure rate statistics 103-104
5.5.2 MPKI evaluation 104-105
5.5.3 performance Evaluation 105-106
5.5.4 energy cost evaluation 106-107
5.5.5 energy efficiency evaluation 107
5.5.6 last level cache capacity the impact of changes 107-108
5.5.7 design overhead 108-109
5.6 Summary 109-111
Chapter VI software co last level cache sub-regional management strategies 111-129
Research Overview 6.1 111-113
6.2 motivation 113-114
6.3 Research Framework 114-116
6.4 software co last level cache management policy 116-120
6.4.1 regional Information table 116
6.4.2 sub-regional performance monitoring and control 116-118
6.4.3 online sectional analysis 118-120
6.5 experimental evaluation 120-127 <br / > 6.5.1 last level cache failure rate changes 121
6.5.2 performance Evaluation 121-123
6.5.3 energy cost evaluation 123 <br / > 6.5.4 energy efficiency evaluation influence 123-124
6.5.5 number of regional variation affect 124
6.5.6 final cache capacity changes 124 -125
6.5.7 design overhead 125-127
6.6 summary 127-129
Chapter VII summarizes the work prospects 129-133
References 133-147
Thanks 147-149
CVs, research results published during the study period and 149-151
Related dissertations
- Fuzhou Mail Processing Center Optimization Research
- Implementation and Design of Multi-core Support for Micro-kernel Operating System
- The Hybrid Opearting System with Hardware and Software
- The Key Technology Research of Array CCD Aerial Camera Manipulator System in the High Altitude
- Research of SC Mobile Data Service Operation System
- Probing into Small and Micro Enterprises Development Strategy
- Study on the Integration of Indemnificatory Housing Management in Chongqing
- Study on Standardized Operating System of China Real Estate Developer
- Research and Development on Control System of Automatic Steel Pipe Chamfering Machine
- Design of PID Controller Based on the LM3S9B96
- Design and implementation of Cortex-M3 core microcontroller based on embedded Web server
- Research and Design of Coal Level Monitoring System of Coal Warehouses Based on Image Recognition
- Based on the Data-mining Technology of Mobile Customer Brand Relationship Management
- Realization on Achieving Wineserver Mechanism in the Linux Kernel
- Design and Implementation of Army Training Management System
- Design and Implemention of Web Operating System Based on Cloud Computing
- Coupons Push System Base on Android
- Research on Key Techniques of Radio Resource Allocation in Relay-Enhanced Cellular Networks
- Research on Methodology of Formal Design and Verification for Security Operating System
- Research and implementation of recovery mechanisms of WINDOWS system platform based data