节点文献

Xen虚拟I/O优化策略

The Optimization Mechanism for Virtual I/O on Xen

【作者】 惠新忠

【导师】 郭禾;

【作者基本信息】 大连理工大学 , 计算机应用技术, 2010, 硕士

【摘要】 计算机硬件水平的进步,带来了计算性能的激增,促使虚拟化技术再次成为计算机科学领域的研究热门。虚拟化技术使得多个互相隔离的操作系统可以同时运行于一台物理主机之上,由虚拟机监视器VMM为各个虚拟系统之上的客户机提供虚拟硬件。虚拟化技术有利于提高计算机资源的利用率、整合企业计算环境、降低维护成本、实现服务的无缝迁移、部署云计算平台等。虚拟机技术涉及的CPU、内存、I/O设备的虚拟化是如今行业内的重点研究方向。Xen做为一款开源虚拟机软件受到广泛关注。虚拟化技术为客户机提供虚拟硬件,即虚拟CPU、虚拟内存、虚拟I/O设备等。虚拟机软件位于客户机与底层硬件之间,由虚拟机软件管理计算资源的分配,并提供客户域之间的隔离性。随着各大硬件厂商推出的对虚拟化技术的硬件支持,虚拟机的性能有了很大程度的提升,已经接近本地主机。如Intel VT与AMD-V对CPU虚拟化的支持,硬件MMU对内存虚拟化的支持等。由于I/O设备的特性使得I/O虚拟化目前大都是采用软件实现,其开销很大,I/O虚拟化的性能始终是虚拟化系统的瓶颈。虚拟I/O性能的提升必定带来整体系统性能的提升。本文分析了当前国内外虚拟化技术的研究现状,以Xen为平台具体研究了Xen虚拟化技术中所涉及的原理与机制,侧重研究了Xen的I/O虚拟化模型(分离驱动模型)与VCPU调度算法(Credit算法)在此基础上分析了现存I/O虚拟化技术的不足,提出了设备I/O请求调度优化方法,此方法将域的I/O请求按优先级排序,再按序处理请求,使得虚拟I/O的吞吐率得到提升。同时本文还提出了一种优化BOOST (Optimized BOOST)算法,在原有BOOST基础上添加了BOOST队列使VCPU按照优先级调度,I/O敏感类的域优先获得处理器资源,这种策略提高了I/O的响应速度,减少了I/O响应的波动现象,虚拟I/O的性能得到提高。综述,本文在设备模型与VCPU调度两个层面对虚拟I/O进行了优化。最后本文搭建虚拟化平台,对上述优化策略做了对比实验,并详细分析了实验结果,验证了上述优化策略的正确性。设备I/O调度与优化BOOST算法减少了I/O响应延时,提高了I/O的吞吐率,提高了虚拟I/O的性能。

【Abstract】 The development of level for manufacturing Computer Hardware bring the improvement of the computer performance and made the Virtualization Technology(VT) to be the popular topic in the computer research area. Virtualization is a technology which runs different isolated OS on a physical machine. It is Virtual Machine Manager (VMM)to providing virtual hardware. VT can providing high resources utilization ratio, integrating computing environment in enterprise,etc.The Virtualization of CPU, Memery I/O divice is the one of the most important research aspects currently.Much attention has been focused on Xen-a freesoftware.The VT provides Virtual Hardware for Guest. The VMM lies between Guest and physical device, which manages the allocation of the Computer Resources and provides the isolation among Guests.With the Hardwaresupport of the Virtualization of CPU and Memery,the performance of Guest has been close to the native machine. The Virtualization of I/O device has great cost of performance because of the character of I/O device. The Virtualization of I/O is always the bottleneck of the entire Virtualization System.The improvement of Virtual I/O can effects the performance of Virtual-System which is absolutely right. In this paper,we have discussed the research situation of VT. Also we have learned the theory and mechanism of VT on Xen, especially the I/O’s virtualization and VCPU schedule algorithm. We analysis the shortage of I/O virtualization model and Credit scheduler. Then we come up to the optimization of I/O request scheduling and Optimized BOOST mechanism. Both of these optimization are based on the priority of domain or I/O request itself. The optimized mechanisms have reduced the response latency of I/O request and increased the throughput of Virtual I/O. what’s more, the I/O intensive domain can preempt the other domain and be scheduled first. Above all, we have optimized the Virtual I/O in two aspects, device model and the scheduling algorithm of VCPU.At last, we build the platform for virtualization to do our experiment. The result has validated the effects of Optimized Mechansim. The optimized mechanisms have reduced the response latency of I/O requests and increased the throughput of Virtual I/O and also it provide different priorities for different domains which require different I/O latency.

节点文献中: 

本文链接的文献网络图示:

本文的引文网络