当前位置:主页 > 科技论文 > 计算机论文 >

虚拟化环境下的内存脏数据回写机制研究

发布时间:2018-03-14 06:30

  本文选题:计算系统虚拟化 切入点:磁盘I/O 出处:《华中科技大学》2012年硕士论文 论文类型:学位论文


【摘要】:在以机械磁盘为存储介质的计算机系统中,数据读写操作的效率和可靠性将直接影响整个计算机系统的性能和稳定性。为了在存储介质的读写速度、容量以及成本价格方面做出权衡,现代计算机操作系统一般采取了以高速缓存、内存以及机械磁盘所组成的三级存储结构,操作系统会在内存中专门开辟出一块空间作为磁盘缓存。在这种结构中,磁盘数据写操作的方法通常分为两种:写直达法和写回法。如何在这两种写方法之间做出权衡以使得系统既具有较好的可靠性又具有较高的磁盘读写性能是一个亟待解决的问题。 基于开源虚拟化平台Xen的内存脏数据回写系统(VWrite)利用计算机系统虚拟化环境的结构特点和用户使用习惯,实现了一种兼有写直达法和写回法优点的磁盘数据写操作的方法。此方法通过修改虚拟机块设备前后端驱动程序,在虚拟机管理器中为每个虚拟机建立块级别的虚拟机磁盘缓存。虚拟机中的应用程序均采取写直达的方式,将数据直接写到位于虚拟机管理器的虚拟机磁盘缓存中,当虚拟机意外崩溃时,虚拟机管理器可以将对应的虚拟机磁盘缓存上的数据写入物理磁盘,以防止虚拟机数据的意外丢失。同时,与传统写直达方式不同的是,虚拟机中的应用程序只需要将数据写到磁盘缓存即可返回,无需等待数据被写入慢速的物理磁盘,从而在保证虚拟机数据完整性的情况下大幅度提高了传统写直达法的效率。另外,此系统还做了以下工作来进一步提高虚拟机磁盘I/O的性能:在虚拟机管理器中选择合适的磁盘I/O调度算法以减小其对虚拟机磁盘I/O的性能影响;将虚拟机磁盘缓存中的请求进行统一的排序和合并以提高虚拟机随机磁盘I/O操作的性能;实现分时刷新策略以保证多个虚拟机对物理磁盘I/O带宽的合理利用。 实验结果表明,,VWrite系统能兼有写回法和写直达法的优点,能够为虚拟机提供高效率的磁盘读写操作,同时,在虚拟机系统突然宕机时也能保证其用户数据的完整性和可靠性。
[Abstract]:In computer system with mechanical disk as storage medium, the efficiency and reliability of data read-write operation will directly affect the performance and stability of the whole computer system. In terms of capacity and cost, modern computer operating systems typically use a three-tier storage structure consisting of cache, memory, and mechanical disks. The operating system creates a special piece of space in memory for disk caching. In this structure, There are usually two ways to write disk data: write direct and write back. How to make a trade-off between these two writing methods so that the system has better reliability and higher disk read and write performance is a. An urgent problem. Based on the open source virtualization platform Xen, the memory dirty data write-back system (VWrite3) utilizes the structural characteristics of the virtualization environment of computer system and the usage habits of users. In this paper, a method of disk data writing with both the advantages of write direct method and write back method is implemented, which modifies the driver of the front and rear end of the virtual machine block device. Create a block level virtual machine disk cache for each virtual machine in the virtual machine manager. Applications in the virtual machine write the data directly to the virtual machine disk cache located in the virtual machine manager. When the virtual machine crashes unexpectedly, the virtual machine manager can write the data on the corresponding virtual machine disk cache to the physical disk to prevent the accidental loss of the virtual machine data. An application in a virtual machine simply writes the data to the disk cache and returns it without waiting for the data to be written to a slow physical disk. In order to ensure the integrity of the virtual machine data, greatly improve the efficiency of the traditional write direct method. The system also does the following work to further improve the performance of the virtual machine disk I / O: select the appropriate disk I / O scheduling algorithm in the virtual machine manager to reduce its impact on the virtual machine disk I / O performance; In order to improve the performance of random disk I / O operation in virtual machine, the request in virtual machine disk cache is sorted and merged uniformly, and a time-sharing refresh strategy is implemented to ensure the reasonable utilization of physical disk I / O bandwidth by multiple virtual machines. The experimental results show that the VWrite system has the advantages of both write-back and write-direct, and can provide high efficiency disk read and write operation for virtual machine. At the same time, the integrity and reliability of user data can be guaranteed when the virtual machine system goes down suddenly.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP333.1

【参考文献】

相关期刊论文 前1条

1 朱智林,左天军,牛淑龄;基于日志的脏数据检测与恢复[J];电子科技;2004年05期



本文编号:1610048

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1610048.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户17de1***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com