透過您的圖書館登入
IP:13.59.218.147
  • 學位論文

改善並行虛擬機器排程演算法之研究

Improving Scheduling for Concurrent Virtual Machines

指導教授 : 莊博任

摘要


在虛擬化平台Xen Hypervisor上,有許多組態設定,像是Virtual CPU(VCPU)、Virtual Memory、Scheduling等皆是用來架構虛擬機器所需要的各種組態與排程。其中Xen Hypervisor上面之CPU Scheduling的演算策略設計為我們所深入研究之項目。目的在於改善當前Xen CPU Schdeduling的排程策略Credit下,對於執行並行程式的虛擬機器(VM),有可能造成可觀的時間浪費。 由於在並行程式中各個同階段的任務之間需要互相通信與同步,而在Credit的排程策略下,並不會根據並行程式而同時間執行,導致各任務需要花費較多的時間,在執行同步的動作。而在Tseng et al.的方法提出,針對並行程式的VCPU,附加了Turbo的優先權,在排程階段時,將同是Turbo的VCPU一同搬移到執行佇列的頂端執行。但Credit與Tseng et al.的方法皆是使用較花費時間的佇列操作方法(插入、刪除、查找)。 我們提出利用Linux kernel 2.6版本所使用的CFS(Completely Fair Scheduler)排程方法來改善Credit所產生的影響,並藉由CFS的機制來消彌並行VM與其他VM之間的差距。CFS可以更公平的分配到處理器的時間,且基於RB-Tree的概念與操作,可以讓越少被執行到的任務,有更高的優先機率被處理器執行到,而在並行VCPU的處理上,透過標記與設置等待佇列,亦達成了並行VCPU的同步問題。 在我們的實驗與比較部分,使用NAS Benchmark所提供的並行程式做實驗,在VM中執行並逐步調整VM的權重使VCPU在RB-Tree中的Virtual runtime增減,以換取PCPU挑選VCPU的機會,最後獲取執行時間來統計效能的變化。 實驗結果可以看出在Credit、Tseng et al.的方法與我們的演算方法相比較下,確實大幅減少了全域的運行時間,在並行虛擬機器下的整體效能大幅增加。

關鍵字

虛擬化 排程

並列摘要


On the virtualization platform Xen Hypervisor, there are many configuration settings, such as Virtual CPU (VCPU), Virtual Memory, Scheduling are needed for a variety of configuration and scheduling for virtual machine architecture. The strategy design which Xen Hypervisor above the CPU Scheduling for our in-depth research project. The purpose is to improve the current under Xen CPU Schdeduling strategy Credit, for a virtual machine (VM) implementation of a concurrent application, it may result in considerable waste of CPU time. Due to need to communicate with each other with the phase synchronization between the various tasks in a concurrent application, and in the Credit scheduling strategy, not according to the concurrent application execution while at the same time, leading to spend more execution time for task is running synchronous operation. In Tseng et al. Methods proposed for VCPU of concurrent application, attached Turbo priority when scheduling phase, along with the Turbo's VCPU move to the top of the run queue to perform. However, Credit and Tseng et al. Methods are all the more time-consuming methods of operation (insert, delete, search). We propose the use of Linux kernel 2.6 version used CFS (Completely Fair Scheduler) scheduling methods to improve the problem of Credit generated, and by mechanisms to reduce the gap between the VM and the other VM. CFS may be a more equitable distribution to the CPU time, and RB-Tree is based on the concept of operations, allowing fewer tasks to be performed, there is a higher probability of being executed by the processor priority to, and in VCPU of concurrent processing, through the mark and set the concurrent wait queue, also reached a VCPU of concurrent synchronization problems. In our experiments and comparison, using the NAS Parallel Benchmark programs offered to do the experiment, the right to perform in a VM and VM weight gradually adjusted so that Virtual runtime in RB-Tree in a decrease for the chance to pick VCPU. At last, the execution time to obtain statistical performance changes. The results can be seen in the Credit, Tseng et al. compared with our strategy indeed significantly reduce the execution time, and substantial increase in concurrent virtual machine under the overall performance.

並列關鍵字

Xen scheduling

參考文獻


[12] D. Gupta, R. Gardner, L. Cherkasova, "XenMon: QoS monitoring and performance profiling tool", Hewlett-Packard Laboratories Labs Technical Reports, HPL-2005-187, 2005
[15] C. Y. Tseng, S. C. Lin, L. C. Chen, and H. K. Chung, "The Performance Improvement and Evaluation of an Enhanced CPU Scheduler in Virtualized Environment," Proceedings of the 2011 International Conference on e-Commerce, e-Administration, e-Society, e-Education, and e-Technology (e-CASE & e-Tech 2011), pp.3107-3123, Jan. 2011
[2] Virtualization. http://en.wikipedia.org/wiki/Virtualization.
[11] C. Weng, M. Guo, Y. Luo, M. Li, "Hybrid CPU Management for Adapting to the Diversity of Virtual Machines", in IEEE Transactions on Computers, April 2012
[19] P. K. Hoong , O. Y. Shyang, " Red-black tree architecture for P2P media streaming ", TENCON 2013 IEEE Region 10 Conference (31194), pp. 1-4, Oct 2013.

延伸閱讀