| 研究生: |
趙緯 CHAO WEI |
|---|---|
| 論文名稱: |
KVM 虛擬機器即時遷移可靠度與效能優化 Optimizing Reliability and Efficiency of Live Migration Mechanism for Kernel Virtual Machine |
| 指導教授: |
王尉任
Wei-Jen Wang |
| 口試委員: | |
| 學位類別: |
碩士 Master |
| 系所名稱: |
資訊電機學院 - 資訊工程學系 Department of Computer Science & Information Engineering |
| 論文出版年: | 2018 |
| 畢業學年度: | 106 |
| 語文別: | 中文 |
| 論文頁數: | 50 |
| 中文關鍵詞: | 即時遷移 、虛擬機器 、高可靠度 |
| 外文關鍵詞: | Qemu Kvm, Pre-Copy |
| 相關次數: | 點閱:7 下載:0 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
隨著虛擬化技術廣泛的被企業以及大眾所接納,各大產業服務已經逐漸偏向在雲端平台上佈署,但是雲端服務所在的實體機器有可能因為外在因素導致實體機器故障或是機器需要停機維修,這時如何提升雲端服務之可靠度成了提供雲端平台廠商重要的議題,這時各大雲端平台引進了即時遷移技術,此技術可以在虛擬機器不停止的狀態下搬移到其他不同的實體機器上。近年來容錯技術開始引進各大雲端平台並且使用即時遷移技術來同步虛擬機器,在提供高可靠度的服務前提是必須不能丟失平台上運行虛擬機器之任何狀態,所以本研究主要針對 Qemu KVM 之即時遷移採用的 Pre-Copy 演算法進行改進的研究而不是 Post-Copy演算法。我們發現在原生 Qemu Kvm 在運行不同應用程式時進行即時遷移會有遷移失敗的情況。針對此問題我們提出一演算法 MP (Memory Pattern) 來修正原生 Qemu Kvm 於即時遷移時失敗的情形,MP演算法透過監測每次迭代的記憶體群組,存取狀況來判斷虛擬機器是否屬於記憶體密集存取,若是則提早進入停止拷貝階段付出稍為多一點 down time 來避免過長的總遷移時間,以及長時間佔用網路頻寬。經過實驗測試此演算法與 Qemu Kvm原生之即時遷移演算法,Qemu Kvm於記憶體密集的時候即時遷移的成功率為 0%。我們提出的 MP 演算法成功率為100%,我們經由放寬 down time 條件來使原生 Qemu Kvm 完成即時遷移來與我們提出之 MP 演算法來做比較,在總遷移時間(Total migration time) MP 演算法可以減少 22%,在遷移過程中所傳送的資料總量減少了 19% 左右,同時能確保即時遷移的可靠度,也能減少網路頻寬之消耗。
As virtualization technology is widely used by enterprises and the general public, many industry services have been deployed on cloud platforms. However, the hardware crash or maintenance Downtime still lead to virtual machine down. At this time how to improve the reliability of cloud services has become an important issue for cloud platform vendors. Now many of cloud platforms have introduced Live migration. This technology can move the virtual machine into other physical machines without stopping the virtual machine. In recent years, fault-tolerance technology has begun to introduce to many cloud platforms. The premise of providing high-reliability services is that any virtual machines memory states must not be lost. Therefore, this research based on the Kvm Pre-Copy Live migration. We find out the virtual machine execute difference application will lead to Live migration fail. In response to this problem, we propose an algorithm MP (Memory Pattern) to correct the failure of the Kvm in Live migration. The MP algorithm checks the memory status of each iteration to determine whether the virtual machine belongs to memory intensive. If virtual machine belongs to memory intensive then enter the stop copy phase earlier, it pays a little more down time to avoid long total migration time, as well as occupying the network bandwidth. After an experimental test of the MP algorithm and Kvm Pre-copy algorithm, Kvm achieved 0% success rate for Live migration in the memory intensive case. Our proposed MP algorithm success rate achieved 100% in the memory intensive case. We have made the Kvm perform live migration by relaxing the down time condition to compare with our proposed MP algorithm. In the total migration time MP algorithm can be reduced by 22%, and the total amount of data transmitted during the migration process is reduced by about 19%. At the same time, it can ensure the reliability of instant migration and can also reduce the consumption of network bandwidth.
[1] L. G. Cully B, Meyer D, Feeley M, Hutchinson N, Warfield A, "Remus: High Availability via Asynchronous Virtual Machine Replication," presented at the 5th {USENIX} Symposium on Networked Systems Design and Implementation ({NSDI} 08), San Francisco, CA, 2008.
[2] M. N. Daniel J. Scales , Ganesh Venkitachalam, "The design of a practical system for fault-tolerant virtual machines," in ACM SIGOPS Operating Systems Review vol. 44, ed: ACM New York, NY, USA, 2010, pp. 30-39.
[3] K. F. Christopher Clark, Steven Hand, Jacob Gorm Hansen, Eric Jul, Christian Limpach, Ian Pratt, Andrew Warfield, "Live migration of virtual machines," in Networked Systems Design & Implementation, Berkeley, CA, USA, 2005 pp. 273-286
[4] L. A. N. L. Wu-chun Feng. (2003, 10-01) Making a Case for Efficient Supercomputing. Queue - Power Management. 54.
[5] Y. Goto, "Kernel-based virtual machine technology," Fujitsu scientific & technical journal vol. 47, pp. 362-368, July 2011.
[6] M. ı. Zabalj´auregui. (2008, June). Hardware assisted virtualization intel virtualization technology.
[7] (2006, 26-Jun). AMD Virtualization. Available: https://www.amd.com/en/technologies/virtualization
[8] F. D. Dejan S. Milojičić, Yves Paindaveine, Richard Wheeler, Songnian Zhou, "Process migration," ACM Computing Surveys, vol. 32, pp. 241-299 Sept 2000.
[9] U. D. Michael R. Hines, Umesh Deshpande, Kartik Gopalan, "Post-copy live migration of virtual machines," in ACM SIGOPS Operating Systems Review vol. 43, ed: ACM New York, NY, USA, 2009 pp. 14-26
[10] M. Noack, "Diploma Thesis Comparative Evaluation of Process Migration Algorithms," 2003.
[11] W. Hu, A. Hicks, L. Zhang, E. M. Dow, V. Soni, H. Jiang, et al., "A quantitative study of virtual machine live migration," in Proceedings of the 2013 ACM Cloud and Autonomic Computing Conference, 2013, p. 11.
[12] J. Song, W. Liu, F. Yin, and C. Gao, "Tsmc: A novel approach for live virtual machine migration," Journal of Applied Mathematics, vol. 2014, 2014.
[13] H. Liu, H. Jin, X. Liao, L. Hu, and C. Yu, "Live migration of virtual machine based on full system trace and replay," in Proceedings of the 18th ACM international symposium on High performance distributed computing, 2009, pp. 101-110.
[14] P. Svärd, J. Tordsson, B. Hudzia, and E. Elmroth, "High performance live migration through dynamic page transfer reordering and compression," in 2011 Third IEEE International Conference on Coud Computing Technology and Science, 2011, pp. 542-548.
[15] K. Z. Ibrahim, S. Hofmeyr, C. Iancu, and E. Roman, "Optimized pre-copy live migration for memory intensive applications," in Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis, 2011, p. 40.
[16] Z. Liu, W. Qu, T. Yan, H. Li, and K. Li, "Hierarchical copy algorithm for Xen live migration," in Cyber-Enabled Distributed Computing and Knowledge Discovery (CyberC), 2010 International Conference on, 2010, pp. 361-364.
[17] E. H. Halili, Apache JMeter: A practical beginner's guide to automated testing and performance measurement for your websites: Packt Publishing Ltd, 2008.
[18] (03-July). Ubuntu stress. Available: http://manpages.ubuntu.com/manpages/trusty/man1/stress.1.html
[19] (03-July). Web Server. Available: https://hub.docker.com/r/tutum/lamp/
[20] (03-July). Stream Server. Available: https://hub.docker.com/r/r0gger/mistserver/