• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (10): 78-82.

• 论文 • 上一篇    下一篇

多虚拟机环境下磁盘写优化机制

余林琛 1, 2,廖小飞2   

  1. (1.中国地质大学(武汉)计算机学院,湖北 武汉 430074;2.华中科技大学计算机学院,湖北 武汉 430074)
  • 收稿日期:2012-04-25 修回日期:2012-07-10 出版日期:2012-10-25 发布日期:2012-10-25
  • 基金资助:

    中央高校基本科研业务费专项资金资助项目(CUGL110232);国家自然科学基金资助项目(60973133);国家863高技术研究发展计划资助项目(2012AA010905)

Optimization Scheme of Disk Write in Multiple Virtual Machines

YU Linchen 1, 2,LIAO Xiaofei2   

  1. (1.School of Computer Science,China University of Geosciences,Wuhan 430074; 2.School of Computer Science,Huazhong University of Science and Technology,Wuhan 430074,China)
  • Received:2012-04-25 Revised:2012-07-10 Online:2012-10-25 Published:2012-10-25

摘要:

在虚拟化环境下,如何在写直达法和写回法之间做出权衡以使系统既具有较好的可靠性又具有较高的磁盘读写性能,是一个亟待解决的问题。本文提出了基于XEN的兼有写直达法和写回法优点的磁盘数据写操作方法。通过修改虚拟机块设备前后端驱动程序,在虚拟机管理器中为每个虚拟机建立块级别的虚拟机磁盘缓存。虚拟机中的应用程序均采取写直达的方式,将数据直接写到位于虚拟机管理器的虚拟机磁盘缓存中。结果表明,该机制能为虚拟机提供高效率的磁盘读写操作,同时,在虚拟机系统突然宕机时也能保证用户数据的完整性和可靠性。

关键词: 计算系统虚拟化, 磁盘I/O, 操作系统

Abstract:

 In virtualization environment, how to develop a novel data transfer method, which not only ensures the stability but also guarantees the performance of the system based on writethrough and writeback schemes, is an attractive topic. Based on the platform of computing system virtualization XEN, this paper proposes a new scheme to deal with dirty memory data effectively and reliably with the help of virtualized environment. This method is equipped with the advantages of both writethrough and writeback method in traditional architectures. It not only ensures the integrity and reliability of user data in the situation of system crash, but also provides satisfying performance with applications. Experiments are carried out to evaluate the system. The results show that the new scheme is able to work efficiently and can well protect the integrity of user data even if the operating system crashes unexpectedly.

Key words: computing system virtualization;disk I/O;operating system