Research on High Performance Optimization Algorithms of Database Query Based on CMP

Author
ChenYongHeng
Advisor
ZuoWanLi
School
Jilin University
Major
Applied Computer Technology
Classification
TP311.13 Database theory and systems
Degree
Doctoral dissertation
Year
2012
Downloads
76
Citations
0

Request the full text

Abstract

CMP improves the computing power and storage space for the computer,increases thecommunication speed and bandwidth of chip. CMP provides the foundation for parallelcomputing. Moreover, the cost and consumption of CMP provide the conditions for itspopularity. Due to the structural features of the multicore architecture,Processormanufacturers take advantage of improvements in manufacturing technology to implementtwo or more“execution cores”within a single processor. Every execution core, in essence, isa relatively simple microprocessor of single-threaded or Multi-threaded microprocessor.Multi-core processors embed two or more independent execution cores into a single processorpackage. By providing multiple execution cores, each sequence of instructions, or thread, hasa hardware execution environment entirely to itself. This enables each thread run in a trulyparallel manner. so Multi-core processors has the high level of thread parallelism. In thecomputer industry, the development of hardware and software are usually complement oneanother, promotes mutually. The revolution of hardware with multi-core processors alsocontributed to the revolution of software. A large number of software design personnel use theMulti-core processors as the realization platform of parallel program design.In the relational database setting today, large queries containing many joins arebecoming increasingly common. The processing power of traditional database system basedon the platform of single processor and single computer can not meet today’s requirement.How best can we correctly and effectively gain the information of complex queries, improvethe processing ability of database query? This question becomes an urgent problem, and animportant research direction of Database management technology. Chip Multi-Processor(CMP) present new opportunities for improving database performance on large queries. Theoptimizer of database management system combined with high performance running platformand the higher level thread parallelism of Multi-core processors can resolve the problemresulted from database rapid expansion. This becomes a new database research branch.Database query optimization research mainly is the optimization problem of more joinsoperation of complex relation database. Based on Multi-core processors platform and parallelcomputing technique,the research of database query optimization can be divided into twosteps. The first step uses parallel technology to produce sequential query plan. The secondstep applies the parallelization method to distinguish the unit executed in parallel in sequentialquery plan, constructs efficiently parallel query execution plan. According to these steps, the research of database parallel query optimization is divided into three aspects: the query plan、the parallel query execution plan and the parallel algorithm of operation.For the research of query plan, this paper firstly proposed the optimization constructingalgorithm of join pairs based on the bottom up enumeration algorithm, and proves rationalityof this algorithm. Based on the constructed set of effectively join pairs, this paper achievedthe parallel optimization for bottom up enumeration algorithm. The top-down algorithmbegins with a group consisting entirely of node, then considers generate all candidate logicallyequivalent multi-expression. This processing is called as logical-to-logical transformations.The traditional strategy relies on transformation rules, which do not consider the query graphto generate logical join pairs. Since the enumeration of this method is very fast, this is a veryefficient strategy if the search space is dense, e.g. for clique queries. However, if the searchspace is spare, e.g. for chain queries, this method will product many logical join pairs whichare not connected and, therefore, are not relevant for the solution. In order to resolve theseproblems, the paper improved the logical-to-logical transformations performance. Moreover,the paper proposed an algorithm to realize top-down join enumeration methods withnon-inner join predicates, extends the function of optimizer.The question of the query plan’s construction is optimized combination. As the numberof join operation increasing exponentially, the search space is radical expansion. Dynamicprogramming methods, regardless of Top-down or not, face a difficult for complex queriesbecause of its inherent exponential nature owing to the explosive search space. When thenumber of relation of query outnumbers ten, the achievement based on the dynamicprogramming enumeration algorithm realizes the impossible. In order to improve theefficiency of the query processor, this paper further combined the measurement of similarsub-queries with the constructing connected join pairs. In order to take advantage ofmulti-cores architecture, a comprehensive and practical framework for parallelizing top-downdynamic programming query optimization is further been proposed to achieve partialsolutions among the identified similar sub-queries and global execution plan among theconstructed connected join pairs according to the generated partial similar sub-query plans.This method of the measurement of similar sub-queries reduces the search space, improvesthe utilization rate of storage space, and relieves the memory access latency.For the search of parallel execution plan, this paper based on the granularity of queryplan put forward optimization methods of two levels, i.e. the optimal execution strategy ofquery plan and the operation algorithm of the executive strategy. Because the resources ofCMP are shared by multiple threads, CMP system essentially is different frommulti-processors and concurrent multithreaded system (SMT). How to achieve themulti-threading execution plan, obtain the biggest resource utilization rate, are the key of thispart. This paper firstly researches how to construct the optimal execution strategy of queryplan based on CMP system. Based on the constructed pipeline executive tree, this paper analysises the parallel execution strategy of pipeline, and allots every basic operation ofincomplete pipeline executive tree among threads. This paper considered the workload ofoperation in the process of distribution, and realizes the optimal distribution of threadsworkload and pipeline buffers. Finally, this paper realized further optimization algorithmthrough parallel buffer. The high efficiency algorithms are always the concerns of importantissue by database researchers. This paper presented a new multithreaded cluster partitionstrategy according to thread allocation scheme of the partitioner, and optimized more accurateestimates for ideal partitioning fanout to reduce the cache access conflict in the multithreadedjoin phase. In the second phase, based on the radix-clustered hash tables, this paper proposeda novel multithreaded join execution strategy to achieve the workload-balancing assignmentamong threads as well as hide mostly cache miss and conflict of L2-cache.

Table of contents

Summary 4-5 Summary 5-7 Abstract 7-12 Chapter 1 Introduction 12-22 <br / > 1.1 Background 12-13 1.2 multicore architectures and compare 13-15 1.2.1 multicore architecture 13-14 1.2 .2 multi-core hardware architecture and Hyper-Threading technology comparison 14 1.2.3 on multi-core and single-core multi-thread technology platform comparison 14-15 1.3 the main contents and Status development 15-18 1.3.1 multicore architecture ; 15-16 1.3.2 algorithm nbsp database query optimization based multicore 16-18 1.4 This work 18-22 1.4.1 significance and working 18-19 1.4.2 The paper is organized 19-20 <br / > 1.4.3 innovation dynamic Programming 20-22 Chapter 2 to build a query plan enumeration algorithm 22-56 2.1 Introduction 22-24 2.2 bottom-up enumeration optimization algorithm 24-42 2.2.1 enumeration bottom-up dynamic programming algorithm 24-26 2.2.2 ; study the optimization algorithm to build connections nbsp 26-30 2.2.3 subset of a subset of the connector framework algorithm justification 30-34 2.2.4 self- based multi-core bottom-up connection to enumerate parallel algorithms 34-42 2.3 top-down enumeration optimization algorithm 42-52 2.3.1 topdown dynamic programming enumeration algorithm 42-44 2.3.2 supports the connection of non- top- down enumeration algorithm 44-48 2.3.3 optimized parallel logic-based conversion to top under the enumeration algorithm 48-52 2.4 algorithm performance evaluation 52-54 2.5 This chapter summarizes 54-56 query plan in Chapter 3 Construction of non- enumeration algorithm 56-80 3.1 Introduction 56-58 3.2 genetic algorithm 58-60 3.2.1 improved iterative algorithm 58-59 3.2.2 annealing 59 3.2.3 two-stage optimization algorithm 59-60 3.3 iterative dynamic programming algorithm 60-61 3.4 based query graph similarity query plan construction algorithm 61-72 3.4.1 similar queries sub Atlas DP algorithm 63-66 <br / > 3.4.2 build similar query subgraphs nbsp 66-70 3.4.3 build similar subgraph query plan ; 70-72 3.5 is similar to the query sub- Atlas the optimization algorithm 72-76 3.5.1 preferred seed similar to 72-73 3.5.2 preferred similar subgraphs 73-75 <br / > 3.5.3 based on similar queries sub Atlas IDP algorithm 75-76 3.6 is similar to the query sub atlas construction algorithm performance analysis 76-78 3.7 chapter summary implementation strategies nbsp next 78-80 Chapter 4 multicore environments query plan ; 80-114 4.1 Introduction 80-82 4.2 relational database system inherent parallelism 82-83 4.3 parallel query plan execution algorithms 83-95 4.3.1 data flow execution policy tree 84-87 4.3.2 parallel data flow execution strategy chart 87-91 4.3.3 buffer computing workload and 91-94 4.3.4 parallel execution optimization strategy 94-95 4.4 multicore environment HASH connected parallel algorithm 95-110 4.4.1 operating parallel algorithms commonly used to connect 96-97 4.4.2 hash -based value decomposition -based parallel connection to achieve frame 97-102 4.4.3 base value decomposition -based parallel connection hash algorithm 102-106 4.4.4 load balancing optimization 106-110 4.5 multi-threaded parallel algorithm performance analysis 110-112 4.6 summary 112-114 summarize Chapter 5 and Prospect 114-116 5.1 entirety summary 114-115 5.2 future Work 115-116 References 116 - 122 study published during the PhD thesis 122-124 Thanks 124

Related dissertations

  1. Study of Vision-based Tracking and Positioning System for Moving Target in a Large-scale Space
    ZhangChen ·Tianjin University ·2012 ·Master's thesis
  2. A Study on Code Optimization Method of eOLC Control Algorithm
  3. A Three-dimension Medical Registration Algorithm Based on Multistep Matching
    XingXu ·Tianjin University ·2012 ·Master's thesis
  4. Research on Topology Structure and Optimal Design of Hybrid Active Power Filter in Microgrid
    LiYongAn ·Hunan University of Technology ·2013 ·Master's thesis
  5. Analysis of Interference Signal in Electronic Experiment and Design of Anti-jamming Simulation
  6. Research on Household Electricity Load Control Strategy Based on Demand Response
  7. Optimal Schedule Methods of Reservoir Flood Control and Refill Operation
    LiYu ·Wuhan University ·2013 ·Doctoral dissertation
  8. Multidisciplinary Design Optimization for Mini Autonomous Underwater Vehicle
    CuiTong ·Harbin Engineering University ·2013 ·Master's thesis
  9. Research on Resouce Scheduling Problems during Ship Block Assembly Process
    TaoNingRong ·Shanghai Jiaotong University ·2013 ·Doctoral dissertation
  10. Optimization on Express Transportation Network and Vehicle Loading and Routing Plan
    YuBo ·Dalian Maritime University ·2013 ·Doctoral dissertation
  11. Pavement Reconstruction Technology of High-grade Highway Rehabilitation and Extension Projects
    LiuGuoQing ·Chang'an University ·2013 ·Master's thesis
  12. Study on Models and Algorithms of Train Operation Control Towards Energy Saving and Emission Reduction
    HuHui ·Beijing Jiaotong University ·2014 ·Doctoral dissertation
  13. Improved LHD and SVR Parameter Optimization Method Based Structure Optimization Design
  14. The Research in Simulation on the Hot Stamping of High Strength Steel Sheet
    WangWei ·West China University ·2013 ·Master's thesis
  15. Research of Membrane Computing Based on FPGA
  16. The Application of Some Optimization Algorithms in the Portfolio Models
    WeiZuo ·Guangxi University ·2013 ·Master's thesis
  17. Research on the Method for Solving a Class of Steady-state Optimization Problems of Biochemical Systems
    LvYingZuo ·Bohai University ·2014 ·Master's thesis
  18. Research on the Algorithm for Steady-state Optimizing Control of Industrial Processes
    XingYanBing ·Bohai University ·2014 ·Master's thesis
  19. Research on Parameter Identification for a Class of Nonlinear Biochemical Systems
    YuChao ·Bohai University ·2014 ·Master's thesis
  20. The Implementation of Embedded Video Monitoring System and its Video Algorithm Research
    ChenZhiQuan ·Harbin Institute of Technology ·2013 ·Master's thesis