Skip to main content
Log in

A performance comparison of linux containers and virtual machines using Docker and KVM

  • Published:
Cluster Computing Aims and scope Submit manuscript

Abstract

Virtualization is a foundational element of cloud computing. Since cloud computing is slower than a native system, this study analyzes ways to improve performance. We compared the performance of Docker and Kernel-based virtual machine (KVM). KVM uses full virtualization, including \(\times \)86 hardware virtualization extensions. Docker is a solution provided by isolation in userspace instead of creating a virtual machine. The performance of KVM and Docker was compared in three ways. These comparisons show that Docker is faster than KVM.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15

Similar content being viewed by others

References

  1. Armbrust, M., Fox, A., Griffith, R., Joseph, A.D., Katz, R., Konwinski, A., Zaharia, M.: A view of cloud computing. Commun. ACM 53(4), 50–58 (2010)

    Article  Google Scholar 

  2. Joy, A.M.: Performance comparison between linux containers and virtual machines. In: 2015 International Conference on Advances in Computer Engineering and Applications (ICACEA), pp. 342–346. IEEE (2015)

  3. Elsayed, A., & Abdelbaki, N.: Performance evaluation and comparison of the top market virtualization hypervisors. In: 2013 8th International Conference on Computer Engineering & Systems (ICCES), pp. 45–50. IEEE (2013)

  4. Varrette, S., Guzek, M., Plugaru, V., Besseron, X., & Bouvry, P.: HPC performance and energy-efficiency of Xen, KVM and Vmware hypervisors. In: 2013 25th International Symposium on Computer Architecture and High Performance Computing (SBAC-PAD), pp. 89–96. IEEE (2013)

  5. Lee, H.M., Jeong, Y.S., Jang, H.J.: Performance analysis based resource allocation for green cloud computing. J. Supercomput. 69(3), 1013–1026 (2014)

    Article  Google Scholar 

  6. Bernstein, D.: Containers and cloud: from LXC to docker to kubernetes. IEEE Cloud Comput. 1(3), 81–84 (2014)

    Article  Google Scholar 

  7. Felter, W., Ferreira, A., Rajamony, R., & Rubio, J.: An updated performance comparison of virtual machines and linux containers. In: 2015 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), pp. 171–172. IEEE (2015)

  8. Desai, P.R.: A Survey of Performance Comparison between Virtual Machines and Containers. (2016). http://ijcseonline.org

  9. Seo, K.T., Hwang, H.S., Moon, I.Y., Kwon, O.Y., Kim, B.J.: Performance comparison analysis of linux container and virtual machine for building cloud. Adv. Sci. Technol. Lett. 66(105–111), 2 (2014)

    Google Scholar 

  10. Morabito, R., Kjällman, J., & Komu, M.: Hypervisors vs. lightweight virtualization: a performance comparison. In: 2015 IEEE International Conference on Cloud Engineering (IC2E), pp. 386–393. IEEE (2015)

  11. Raho, M., Spyridakis, A., Paolino, M., & Raho, D.: Kvm, xen and docker: a performance analysis for arm based nfv and cloud computing. In: 2015 IEEE 3rd Workshop on Advances in Information, Electronic and Electrical Engineering (AIEEE), pp. 1–8. IEEE (2015)

  12. Kozhirbayev, Z., Sinnott, R.O.: A performance comparison of container-based technologies for the cloud. Future Gener. Comput. Syst. 68, 175–182 (2017)

    Article  Google Scholar 

  13. Merkel, D.: Docker: lightweight linux containers for consistent development and deployment. Linux J. 2014(239), 2 (2014)

    Google Scholar 

  14. VMware.: A performance comparison of hypervisors VMware. White Pap. Feb. 1, 1–22 (2007)

  15. Morabito, R.: A Performance Evaluation of Container Technologies on Internet of Things Devices. In: 2016 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), pp. 999–1000. IEEE (2016)

  16. Barham, P., Dragovic, B., Fraser, K., Hand, S., Harris, T., Ho, A., ... & Warfield, A.: Xen and the art of virtualization. ACM SIGOPS Oper. Syst. Rev. 37(5), 164–177 (2003)

  17. Chowdhury, N.M.K., Boutaba, R.: A survey of network virtualization. Comput. Netw. 54(5), 862–876 (2010)

    Article  MATH  Google Scholar 

  18. García-Valls, M., Cucinotta, T., Lu, C.: Challenges in real-time virtualization and predictable cloud computing. J. Syst. Arch. 60(9), 726–740 (2014)

    Article  Google Scholar 

  19. Fink, J.: Docker: a software as a service, operating system-level virtualization framework. Code4Lib J. 25, 31 (2014)

  20. 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 (2007)

  21. Zhang, B., Wang, X., Lai, R., Yang, L., Wang, Z., Luo, Y., & Li, X.: Evaluating and optimizing I/O virtualization in kernel-based virtual machine (KVM). In: IFIP International Conference on Network and Parallel Computing, pp. 220–231. Springer, Berlin (2010)

  22. Dua, R., Raja, A.R., & Kakadia, D.: Virtualization vs containerization to support PaaS. In: 2014 IEEE International Conference on Cloud Engineering (IC2E), pp. 610–614. IEEE (2014)

  23. https://www.docker.com/. Accessed on 04 June (2017)

  24. https://www.kernel.org/doc/man-pages/. Accessed on 04 June (2017)

  25. https://jmeter.apache.org/. Accessed on 04 June (2017)

Download references

Acknowledgements

This work was supported by the National Research Foundation of Korea (NRF) Grant funded by the Korea government (Ministry of Science and ICT) (No. NRF-2017R1A2B4010570) and the Soonchunhyang University Research Fund.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to HwaMin Lee.

Ethics declarations

Conflict of interest

The authors declare that there is no conflictof interests regarding the publication of this paper.

Ethical Approval

This article does not contain any studies with human participants or animals performed by any of the authors.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chae, M., Lee, H. & Lee, K. A performance comparison of linux containers and virtual machines using Docker and KVM. Cluster Comput 22 (Suppl 1), 1765–1775 (2019). https://doi.org/10.1007/s10586-017-1511-2

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10586-017-1511-2

Keywords

Navigation