Research on Graph Coloring Based Optimization Technologies for Memory Hierarchies

Author
DengYu
Advisor
YangXueJun
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP333 Memory
Degree
Doctoral dissertation
Year
2007
Downloads
106
Citations
2

Request the full text

Abstract

The performance gap between processor and memory causes the problem known as "Memory Wall", which makes the memory system become the bottleneck of the computer system. The developing trends of current semiconductor and computer architecture techniques show that this gap will keep increasing. Consequently, the optimization to the memory system will be one of the key technologies to improve the overall performance of the computer system in the visible future.This thesis focuses on applying the graph coloring theory to the management optimizing problem of the memory hierarchies. Novel management approaches in compile-time have been presented in the aspects of cache, large on-chip register files represented by Stream Register File (SRF) and the main memory. Primary innovative works in this paper could be summarized as follows:(i) A graph coloring based management optimizing algorithm for cache, namely Cache Coloring, has been proposed. This algorithm first partitions the data into several data objects according to their memory accessing behaviors. Then it partitions the cache into a pseudo register file with alias according to the size of the data objects. Each pseudo register in this register file can hold one of the data objects. Finally, it uses an extended graph coloring register allocation algorithm to determine the position of each data object in the cache and their replacement relationship. The data object partitioning divides the management of cache into two levels, one for the coarse-granularity management of the data objects in the compile-time and the other for the fine-granularity management of the cache lines in the run-time. So the advantages of both compiler and hardware are exploited. The conflict matrix which contains more information about interference than the traditional live-range interference graph is constructed as a guide to deal with the conflicts of register allocation. Cache Coloring is implemented in GCC. A hardware simulation platform which supports Cache Coloring is built based on simplescalar. The primary experimental results show that Cache Coloring can exploit the locality well and reduce the cache miss rate.(ii) A graph coloring based SRF allocation algorithm, namely SRF Coloring, is proposed. This algorithm formulates the problem of SRF allocation into a register allocation problem which can be solved by a well understood graph coloring algorithm by partitioning the SRF into a traditional register file with fixed position and length. The existing graph coloring algorithm is extended and modified to address the unique aspect of the SRF allocation problems. A reusing-first double-buffering strategy is presented to address the uncoloralbe problem caused by very long streams. The SRF Coloring algorithm is implemented in the compiler framework of SF95Compiler, which is developed for FT64 stream processor and its programming language SF95. The experimental results demonstrate that SRF Coloring represents a promising compiler approach for the SRF management.(iii)An interval coloring based allocation algorithm for main memory, namely MM Coloring, is proposed. The main memory allocation problem is mapped to an interval coloring problem by taking arrays as candidates for memory allocation. As the general interval coloring problem is NP-complete, a property of the program, namely the containment of arrays’ live-ranges, is used to decrease the hardness of interval coloring and simplify it as an interval coloring problem for superperfect graph. Based on this, a judgment theorem for optimal interval coloring together with the implementation algorithm is proposed. Live-range splitting can be used to make the graph satisfy the optimal interval coloring condition. Two strategies for live-range splitting are proposed. One is a top-down aggressive strategy which first splits the live-ranges into minimum and then merges them gradually when the coloring condition is satisfied. The other one is a bottom-up passive strategy which keeps the live-ranges as long as possible and splits some of them only when the coloring condition is not satisfied. MM Coloring with both aggressive and passive strategies is implemented in GCC. Modeling tests show that it is an efficient approach for compile-time memory allocation.

Table of contents

Abstract 12-14 ABSTRACT 14-16 first chapter 16-32 1.1 Background topics 16-19 1.1.1 processor and memory performance differences 16-17 1.1.2 hierarchical storage systems 17 1.1.3 process and architecture development has brought new challenges 17-19 1.2 research content 19-22 1.2.1 subject sources 19 1.2.2 research focus 19-21 1.2.3 research difficulty 21-22 1.3 research 22-29 1.3.1 Cache optimization work 22-23 1.3.2 slices on a large register file allocation 23 1.3.3 storage management aspects related work 23-24 1.3.4 based resource allocation graph coloring theory 24-29 1.4 of this paper work and innovation 29-30 1.5 paper structure 30-32 graph coloring based cache optimization algorithm 32-64 2.1 problem background 32-33 2.2 The basic idea 33-39 2.2.1 LRU algorithm results 34-36 2.2.2 Cache Coloring process and effect 36-39 2.3 object divided 39-47 2.3.1 sequence from memory access to data objects abstract 39-40 2.3.2 partitioning algorithm 40-46 2.3.3 on scalar data processing 46-47 2.4 Cache divided 47-50 2.4.1 data object classification 47-48 2.4.2 tectonic register file 48-50 2.5 the Cache allocation 50-58 2.5.1 Cache allocation process 50-51 2.5.2 coherent information representation 51-54 2.5.3 algorithm 54-58 2.6 hardware support 58-60 2.6.1 data positioning 59 2.6.2 Data loading 59-60 2.7 evaluation 60-63 2.8 This chapter Summary 63-64 stream register file allocation based on graph coloring algorithm 64-89 3.1 problem background 64-68 3.1.1 FT64 stream processor 64-66 3.1.2 FT64 programming language and compiled 66-68 3.2 basic SRF Coloring 68-71 3.3 pairs of basic SRF Coloring improved 71-73 3.3.1 compatible stream shared space 71 3.3.2 space reserved 71-73 3.4 SRF Coloring realization 73-78 3.4.1 algorithm framework 73 3.4.2 algorithm to achieve 73-78 3.5 pairs of long-stream support 78-82 3.5.1 double buffering principle 78-79 3.5.2 reuse priority to the basic idea of ??the double buffering strategy 79-80 3.5.3 reuse priorities double buffering strategy algorithm to achieve 80-82 3.6 evaluation 82-87 3.6.1 optimization strategy effects 83-85 3.6.2 Flow Scheduling 85-86 3.6.3 reuse priority double buffering strategy evaluation 86-87 3.7 This chapter Summary 87-89 is fourth computing storage allocation algorithm based on interval coloring of nuclear research 89-115 4.1 problem background 89-91 4.2 based on the interval of the perfect graph coloring method 91-97 4.2.1 Description 91-92 4.2.2 Life cycle contains 92-93 4.2.3 coloring judgment 93-95 4.2.4 optimal coloring algorithm 95-97 4.3 Coloring based the active segmentation strategy a-MM 97-104 4.3.1 basic process 97-100 4.3.2 algorithm to achieve 100-104 4.4 p-MM Coloring based on passive partitioning strategy 104-110 4.4.1 basic process 104-105 4.4.2 algorithm to achieve 105-110 4.5 evaluation 110-113 4.5.1 evaluation methods 110-111 4.5.2 GCC-based compiler 111 4.5.3 Experimental results 111-113 4.6 This chapter Summary 113-115 Chapter V Conclusion 115-118 5.1 work summarizes 115-116 5.2 Research Prospects 116-118 Acknowledgements 118-119 the References 119-127 the PhD period has been published and the papers to be published 127 the PhD period has been published and the papers to be published 127-128 studying for a doctorate during participation in scientific research 128

Related dissertations

  1. Research on Graph Coloring and Applications in Wireless Network Channel Resource Allocation
    ZuoChao ·Hefei University of Technology ·2013 ·Doctoral dissertation
  2. Parallelization of Graph Algorithms
    ChenMeiXian ·Shanghai Jiaotong University ·2013 ·Master's thesis
  3. The Research and Implementation of Performance Optimization Technique on Java EE Gateway Website
    ZhangGuangQing ·Hunan University ·2011 ·Master's thesis
  4. Research on Anti-Collision for UHF RFID System
    ChenTaiWei ·Guangdong University of Technology ·2012 ·Master's thesis
  5. Resech on Spectrum Allocation Algorithm in Cognitive Radio Based on Graph Theory
    LiMeng ·Southwest Jiaotong University ·2012 ·Master's thesis
  6. Component Carrier Selection in Lte-Advanced System with Carrier Aggregation
  7. Research on TDMA Scheduling Algorithm in Wireless Sensor Network
    ZhaoYaZuo ·Jilin University ·2013 ·Master's thesis
  8. The Research of Spectrum Allocation Technology in Cognitive Radio Network
    LiuJuan ·Henan University of Technology ·2012 ·Master's thesis
  9. The Management Model and Implementation for Ubiquitous Device of Internet of Things Based on Cloud
    ZuoFanZuo ·Beijing University of Technology ·2013 ·Master's thesis
  10. Research on Spectrum Sensing and Transmit Power Allocation in Cognitive Radio Network
    ZhangGaoFei ·Zhejiang University of Technology ·2013 ·Master's thesis
  11. Research on Spectrum Allocation Techology of Cognitive Radio
  12. Research on Spectrum Allocation Algorithm Based on Graph Coloring Theory in Cognitive Radio
    SunYongQiang ·Jilin University ·2012 ·Master's thesis
  13. The Strong Edge Coloring of One Class of Halin Graphs
    LuHuiPing ·East China Normal University ·2013 ·Master's thesis
  14. Polynomial with Coloring the Graph
    YangHongLing ·Liaoning Normal University ·2012 ·Master's thesis
  15. Research on Basic Theory of Graphical Models
    MengXianYong ·Northeast Normal University ·2012 ·Doctoral dissertation
  16. Register Allocation for Machines with Connected and Partitioned Register Banks
    ZhangJunChao ·Institute of Computing Technology ·2005 ·Doctoral dissertation
  17. The Study on Coding and Some Optimization Models of DNA Computing and Genetic Algorithms
    LiuXiKui ·Huazhong University of Science and Technology ·2004 ·Doctoral dissertation
  18. The Contributions of William Tutte to Graph Theory
    WangXianFen ·Hebei Normal ·2010 ·Doctoral dissertation
  19. Research of Rendering Acceleration Techniques for Parallel Environments
    XiongHua ·Zhejiang University ·2008 ·Doctoral dissertation
  20. Self-assembled DNA computing model and its application