作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (13): 36-39. doi: 10.3969/j.issn.1000-3428.2011.13.010

• 专栏 • 上一篇    下一篇

基于预拷贝的虚拟机动态内存迁移机制改进

孙国飞,谷建华,胡金华,赵天海   

  1. (西北工业大学计算机学院,西安 710072)
  • 收稿日期:2010-12-06 出版日期:2011-07-05 发布日期:2011-07-05
  • 作者简介:孙国飞(1982-),男,硕士研究生,主研方向:分布式计算,虚拟机技术;谷建华,教授、博士、博士生导师;胡金华,硕士研究生;赵天海,讲师、博士
  • 基金资助:

    国家“863”计划基金资助项目(2209AA01Z142)

Improvement of Live Memory Migration Mechanism for Virtual Machine Based on Pre-copy

SUN Guo-fei, GU Jian-hua, HU Jin-hua, ZHAO Tian-hai   

  1. (College of Computer, Northwestern Polytechnical University, Xi’an 710072, China)
  • Received:2010-12-06 Online:2011-07-05 Published:2011-07-05

摘要:

针对内存预拷贝过程中迁移时间较长和内存页反复重传的特点,改进传统的内存动态迁移机制,引入马尔科夫预测模型,提出基于脏页概率预测的工作集测定算法。利用脏页的历史操作访问情况预测其下一轮迭代被修改的概率,只传输预测概率较低的页。实验结果表明,该算法缩短了迁移总时间和停机时间,能有效支持虚拟机动态迁移。

关键词: 内存迁移, 虚拟机, 虚拟机动态迁移, 马尔科夫模型, 可写工作集

Abstract:

Aiming at longer time and memory pages repeated retransmission in the process of memory pre-copy, this paper optimizes the mechanism of memory pre-copy migration and uses Markov prediction model to improve the algorithm that reckon the working set of memory dirty page, designs an new algorithm that calculate working set of memory dirty page by forecasting the probability of dirty pages. This algorithm calculates probability of being modified next round of iteration using dirty pages history of the operation visits, only the memory pages with a lower probability can be translated. Experimental results show that new algorithm shortens the total time of migration and downtime, and effectively support dynamic migration of Virtual Machine(VM).

Key words: memory migration, Virtual Machine(VM), VM live migration, Markov model, Writable Working Set(WWS)

中图分类号: