Abstract
Virtual Machines are the key technology in cloud computing. In order to upgrade, repair or service the physical machine where a Virtual Machine is hosted, a common practice is to live-migrate the Virtual Machine to a different server. This involves copying all the guest memory over the network, which may take a non-negligible amount of time. In this work, we propose a technique to speed up the migration time by reducing the amount of guest memory to be transferred with the help of the guest OS. In particular, during live-migration, a paravirtualized driver running in the guest kernel obtains, and sends to the Virtual Machine Monitor, the list of guest page frames that are currently unused. The VMM can then safely skip these pages during the copy. We have integrated this technique in the live-migration implementation of QEMU [3], and we show the effects of our work in some experiments comparing the results against QEMU default implementation and VirtIO-Balloon.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Anjum, A., Parveen, A.: A dynamic approach for live virtual machine migration using OU detection algorithm. In: 2022 6th International Conference on Computing Methodologies and Communication (ICCMC), pp. 1092–1097 (2022). https://doi.org/10.1109/ICCMC53470.2022.9753974
Barham, P., et al.: Xen and the art of virtualization. SIGOPS Oper. Syst. Rev., 37(5), 164–177 (2003). ISSN 0163–5980, https://doi.org/10.1145/1165389.945462
Bellard, F.: Qemu, a fast and portable dynamic translator. In: USENIX Annual Technical Conference, FREENIX Track, vol. 41, p. 46. California, USA (2005)
Clark, C., et al. Live migration of virtual machines. In: Proceedings of the 2nd Conference on Symposium on Networked Systems Design & Implementation-Volume 2, pp. 273–286 (2005)
Das, R., Sidhanta, S.: LIMOCE: live migration of containers in the edge. In: 2021 IEEE/ACM 21st International Symposium on Cluster, Cloud and Internet Computing (CCGrid), pp. 606–609 (2021). https://doi.org/10.1109/CCGrid51090.2021.00070
Garfinkel, T., et al.: A virtual machine introspection based architecture for intrusion detection. In: Ndss, vol. 3, pp. 191–206. San Diega, CA (2003)
Hines, M.R., Gopalan, K.: Post-copy based live virtual machine migration using adaptive pre-paging and dynamic self-ballooning. In: Proceedings of the 2009 ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, pp. 51–60 (2009)
Ibrahim, K.Z., Hofmeyr, S., Iancu, C., Roman, E.: Optimized pre-copy live migration for memory intensive applications. In: Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis, SC 2011, New York, NY, USA (2011). Association for Computing Machinery. ISBN 9781450307710, https://doi.org/10.1145/2063384.2063437
Kivity, A., Kamay, Y., Laor, D., Lublin, U., Liguori, A.: KVM: the Linux virtual machine monitor. In: Proceedings of the Linux symposium, vol. 1, pp. 225–230. Dttawa, Dntorio, Canada (2007)
Leonardi, L., Lettieri, G., Pellicci, G.: eBPF-based extensible paravirtualization. In: Anzt, H., Bienz, A., Luszczek, P., Baboulin, M. (eds.) High Performance Computing. ISC High Performance 2022 International Workshops. ISC High Performance 2022. Lecture Notes in Computer Science, vol. 13387, pp. 383–393. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-23220-6_27
Liu, H., Jin, H., Liao, X., Deng, W., He, B., Cheng-zhong, X.: Hotplug or ballooning: a comparative study on dynamic memory management techniques for virtual machines. IEEE Trans. Parallel Distrib. Syst. 26(5), 1350–1363 (2015). https://doi.org/10.1109/TPDS.2014.2320915
Ma, Y., Wang, H., Dong, J., Li, Y., Cheng, S.: ME2: efficient live migration of virtual machine with memory exploration and encoding. In: 2012 IEEE International Conference on Cluster Computing, pp. 610–613. IEEE (2012)
Stoyanov, R., Kollingbaum, M.J.: Efficient live migration of Linux containers. In: Yokota, R., Weiland, M., Shalf, J., Alam, S. (eds.) ISC High Performance 2018. LNCS, vol. 11203, pp. 184–193. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-02465-9_13
Svärd, P., Hudzia, B., Tordsson, J., Elmroth, E.: Evaluation of delta compression techniques for efficient live migration of large virtual machines. In: Proceedings of the 7th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, VEE 2011, pp. 111–120, New York, NY, USA (2011). Association for Computing Machinery. ISBN 9781450306874, https://doi.org/10.1145/1952682.1952698
Wang, C., Hao, Z., Cui, L., Zhang, X., Yun, X.: Introspection-based memory pruning for live VM migration. Int. J. Parallel Prog. 45, 1298–1309 (2017)
Wood, T., Shenoy, P.J., Venkataramani, A., Yousif, M.S.: Black-box and gray-box strategies for virtual machine migration. In: Proceedings of the 4th USENIX Conference on Networked Systems Design & Implementation, NSDI 2007, pp. 17, USA (2007). USENIX Association
Xu, B., et al.: Sledge: towards efficient live migration of docker containers. In: 2020 IEEE 13th International Conference on Cloud Computing (CLOUD), pp. 321–328 (2020). https://doi.org/10.1109/CLOUD49709.2020.00052
Acknowledgments
Work partially supported by the Italian Ministry of Education and Research (MUR) in the framework of the FoReLab project (Departments of Excellence).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Storniolo, F., Leonardi, L., Lettieri, G. (2023). Improving Live Migration Efficiency in QEMU: A Paravirtualized Approach. In: Bienz, A., Weiland, M., Baboulin, M., Kruse, C. (eds) High Performance Computing. ISC High Performance 2023. Lecture Notes in Computer Science, vol 13999. Springer, Cham. https://doi.org/10.1007/978-3-031-40843-4_8
Download citation
DOI: https://doi.org/10.1007/978-3-031-40843-4_8
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-40842-7
Online ISBN: 978-3-031-40843-4
eBook Packages: Computer ScienceComputer Science (R0)