首页 | 本学科首页   官方微博 | 高级检索  
     

基于共享Cache多核处理器的Hash连接优化
引用本文:邓亚丹,景 宁,熊 伟.基于共享Cache多核处理器的Hash连接优化[J].软件学报,2010,21(6):1220-1232.
作者姓名:邓亚丹  景 宁  熊 伟
作者单位:国防科学技术大学,电子科学与工程学院,湖南,长沙,410073
基金项目:Supported by the National Natural Science Foundation of China under Grant No.40801160 (国家自然科学基金); the National High-Tech Research and Development Plan of China under Grant Nos.2007AA120400, 2007AA12Z208, 2006AA12Z205 (国家高技术研究发展计划(863))
摘    要:针对目前主流的多核处理器,研究了基于共享缓存多核处理器环境下的数据库Hash连接优化.首先提出基于Radix-Join算法的Hash连接多线程执行框架,通过实例分析了影响多线程Radix-Join算法性能的因素.在此基础上,优化了Hash连接多线程执行框架中的各种线程及其访问共享Cache的性能,优化了聚集连接时Hash连接算法的内存访问,并分析了多线程聚集划分的加速比.基于开源数据库INGRES和EaseDB,实现了所提出的连接多线程执行框架,在实验中测试了多线程Hash连接框架的性能.实验结果表明,该算法可以有效解决Hash连接执行时共享Cache在多线程条件下的访问冲突和处理器负载均衡问题,极大地提高了Hash连接性能.

关 键 词:Hash连接  Radix-Join  多核处理器    共享Cache  多线程性能分析

Hash Join Query Optimization Based on Shared-Cache Chip Multi-Processor
DENG Ya-Dan,JING Ning and XIONG Wei.Hash Join Query Optimization Based on Shared-Cache Chip Multi-Processor[J].Journal of Software,2010,21(6):1220-1232.
Authors:DENG Ya-Dan  JING Ning and XIONG Wei
Abstract:This paper presents hash join optimization based on shared cache CMP (chip multi-processor). Firstly, it proposes a multithreaded execution framework of hash join based on Radix-Join algorithm, and then analyzes the factors which affect the performance of multithreaded Radix-Join algorithm through two instances. Based on the analysis, the performance of various threads and their shared-cache access behaviors in the hash join multithreaded execution framework were optimized, and optimize memory access of hash join in cluster join phase. It then analyzes the speedup of multithreaded cluster partition in theory was analyzed. All of the algorithms are implemented in the INGRES and EaseDB. In the experiments, the performance of the multithreaded execution framework of hash join is tested, and the results show that the proposed algorithm could effectively resolve the cache access conflict and load balance of CMP cores in multithreaded environment and hash join performance is improved.
Keywords:hash join  Radix-Join  chip multi-processor  shared cache  multithread performance analysis
本文献已被 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号