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

基于多线程的并行实例恢复方法
引用本文:卢栋栋,何清法.基于多线程的并行实例恢复方法[J].计算机应用,2016,36(4):1002-1007.
作者姓名:卢栋栋  何清法
作者单位:1. 中国航天工程咨询中心, 北京 100048;2. 北京神舟航天软件技术有限公司, 北京 100094
基金项目:天津市软件产业发展专项资金资助项目(201406101)~~
摘    要:针对数据库实例恢复串行化执行效率低的问题,以神通数据库为基础提出一种基于多线程的并行实例恢复方法。首先,在数据库原有实例恢复模型基础上,增加"构建脏页表"和"脏页预取"两个步骤,得到改进后的实例恢复模型;其次,结合多线程并发处理思想,提出并行实例恢复方法,对改进的实例恢复模型进行并发处理;最后,由于采用回滚段进行undo日志管理,可以实现undo日志的正常数据化管理,提前结束实例恢复。通过进行TPC-C基准测试,并行实例恢复方法的读取、解析redo日志效率与原有方法相比提高了2~7倍,重做redo日志效率提高了4~9倍,整体所用时间减少为原有方法的20%~40%。实验结果表明,并行实例恢复方法实现了各阶段的并行化,减少了实例恢复所需时间,保证了数据库在实际应用中的高效性。

关 键 词:实例恢复  并行恢复  多线程  redo日志  undo日志  日志序列号
收稿时间:2015-10-12
修稿时间:2015-11-10

Parallel instance recovery method based on multi-thread
LU Dongdong;HE Qingfa.Parallel instance recovery method based on multi-thread[J].journal of Computer Applications,2016,36(4):1002-1007.
Authors:LU Dongdong;HE Qingfa
Affiliation:1. China Aerospace Engineering Consultation Center, Beijing 100048, China;2. Beijing Shenzhou Aerospace Software Technology Company Limited, Beijing 100094, China
Abstract:Concerning the low efficiency of serialized execution in database instance recovery and relying on ShenTong database, a parallel instance recovery method based on multi-thread was proposed. First, two steps including "building dirty page table" and "prefetching dirty pages" were added to the original database instance recovery model to get an improved model. Second, the improved model was processed by the multi-threaded parallel processing way and a parallel instance recovery model was generated. Finally, by using rollback segment management strategy, undo log was managed as normal data and the parallel instance recovery could be finished earlier. In the comparison experiments with the original method, Transaction Processing performance Council-C (TPC-C) benchmark test result of the parallel recovery method showed that the efficiency of reading and parsing redo log increased by 2-7 times, the efficiency of redoing increased by 4-9 times, and the total time for recovery reduced to 20%-40%. The results prove that the parallel instance recovery method can accomplish parallel processing of each stage, reduce the time needed for recovery and ensure the high efficiency of database in practical applications.
Keywords:
本文献已被 CNKI 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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