基于影子缓存的多增量虚拟机启动系统
发布时间:2018-11-03 17:11
【摘要】:在虚拟机镜像文件集中存储的环境下,大量虚拟机同时启动时,由于硬盘I/O吞吐能力有限,使得虚拟机镜像文件从硬盘传输到内存的时间过长,最终导致虚拟机启动速度过慢。 为了解决上述问题,基于影子缓存的多增量虚拟机启动系统Scache(StartingSystem of Multiple Incremental Virtual Machines Based on Shadow Cache)利用虚拟机间的相似性,使用基础镜像文件加增量镜像文件的方式为虚拟机提供虚拟块设备,,然后通过搭建由多个数据集缓冲结构组成的影子缓存,以及修改开源虚拟机管理系统Xen4.1.2上Qemu块设备模拟器中增量镜像文件异步读机制,将增量虚拟机启动过程中需要的数据单独缓存于特定的数据集缓冲结构中以供增量虚拟机启动时取用。其中,每一个数据集缓冲结构对应一种基础镜像文件,可被基于此基础镜像而创建的多个增量虚拟机共用。由此对于虚拟机而言,内存的缓存结构被设计得和硬盘中镜像文件的层次结构一致,犹如镜像文件栈的影子。与此同时, Scache系统还避免了多个增量虚拟机启动过程中被共用的基础镜像文件里部分数据被重复读取的情形。 经测试验证,Scache系统可最小化增量虚拟机启动过程中硬盘和网络上的负载,并对启动过程有较明显的加速效果。而针对一种基础镜像创建的多个增量虚拟机,Scache系统额外消耗的内存在具体数量上也很小,且不受虚拟机内存配置大小的影响。
[Abstract]:In the virtual machine image file centralized storage environment, when a large number of virtual machines start at the same time, due to the hard disk I / O throughput capacity is limited, so the virtual machine image file from the hard disk to memory transfer time is too long. The result is that the virtual machine starts too slowly. In order to solve the above problem, Scache (StartingSystem of Multiple Incremental Virtual Machines Based on Shadow Cache), a multi-increment virtual machine startup system based on shadow cache, utilizes the similarity between virtual machines. The virtual block device is provided for the virtual machine by using the basic image file and the incremental image file, and then the shadow cache composed of multiple data set buffering structures is built. And modify the asynchronous reading mechanism of incremental mirror files in the Qemu block device simulator on the open source virtual machine management system (Xen4.1.2). The data needed during the incremental virtual machine startup is cached separately in a specific data set buffer structure for the incremental virtual machine to be accessed at startup time. Each data set buffer structure corresponds to an underlying image file, which can be shared by multiple incremental virtual machines created based on the underlying image. Therefore, for virtual machines, the memory cache structure is designed to be consistent with the hierarchical structure of the mirror file in the hard disk, as the shadow of the mirror file stack. At the same time, the Scache system avoids the repeated reading of part of the data in the shared underlying image file during the startup of multiple incremental virtual machines. The test results show that the Scache system can minimize the load on the hard disk and network during the incremental virtual machine startup process and has obvious acceleration effect. However, for multiple incremental virtual machines created by a base image, the amount of extra consumption of Scache system is also very small, and it is not affected by the memory configuration size of virtual machine.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP302
本文编号:2308413
[Abstract]:In the virtual machine image file centralized storage environment, when a large number of virtual machines start at the same time, due to the hard disk I / O throughput capacity is limited, so the virtual machine image file from the hard disk to memory transfer time is too long. The result is that the virtual machine starts too slowly. In order to solve the above problem, Scache (StartingSystem of Multiple Incremental Virtual Machines Based on Shadow Cache), a multi-increment virtual machine startup system based on shadow cache, utilizes the similarity between virtual machines. The virtual block device is provided for the virtual machine by using the basic image file and the incremental image file, and then the shadow cache composed of multiple data set buffering structures is built. And modify the asynchronous reading mechanism of incremental mirror files in the Qemu block device simulator on the open source virtual machine management system (Xen4.1.2). The data needed during the incremental virtual machine startup is cached separately in a specific data set buffer structure for the incremental virtual machine to be accessed at startup time. Each data set buffer structure corresponds to an underlying image file, which can be shared by multiple incremental virtual machines created based on the underlying image. Therefore, for virtual machines, the memory cache structure is designed to be consistent with the hierarchical structure of the mirror file in the hard disk, as the shadow of the mirror file stack. At the same time, the Scache system avoids the repeated reading of part of the data in the shared underlying image file during the startup of multiple incremental virtual machines. The test results show that the Scache system can minimize the load on the hard disk and network during the incremental virtual machine startup process and has obvious acceleration effect. However, for multiple incremental virtual machines created by a base image, the amount of extra consumption of Scache system is also very small, and it is not affected by the memory configuration size of virtual machine.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP302
【共引文献】
相关期刊论文 前1条
1 袁野;赵海燕;曹健;陈庆奎;;虚拟机内存迁移技术研究[J];小型微型计算机系统;2014年02期
相关硕士学位论文 前1条
1 张凯;基于运行模式的云计算资源调度方法研究[D];哈尔滨理工大学;2013年
本文编号:2308413
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2308413.html