Skip to main content
QUICK REVIEW

[Paper Review] A Comparative Study of Containers and Virtual Machines in Big Data Environment

Qi Zhang, Ling Liu|arXiv (Cornell University)|Jul 5, 2018
Cloud Computing and Resource ManagementComputer Science21 references11 citations
TL;DR

This paper conducts a comprehensive empirical comparison of Docker containers and virtual machines (VMs) in Spark-based big data workloads, evaluating deployment convenience, performance scalability, and resource utilization. Results show containers significantly outperform VMs in scalability and resource efficiency, with 14.31x faster execution on large clusters and superior CPU/memory utilization due to lighter-weight isolation and dynamic resource allocation.

ABSTRACT

Container technique is gaining increasing attention in recent years and has become an alternative to traditional virtual machines. Some of the primary motivations for the enterprise to adopt the container technology include its convenience to encapsulate and deploy applications, lightweight operations, as well as efficiency and flexibility in resources sharing. However, there still lacks an in-depth and systematic comparison study on how big data applications, such as Spark jobs, perform between a container environment and a virtual machine environment. In this paper, by running various Spark applications with different configurations, we evaluate the two environments from many interesting aspects, such as how convenient the execution environment can be set up, what are makespans of different workloads running in each setup, how efficient the hardware resources, such as CPU and memory, are utilized, and how well each environment can scale. The results show that compared with virtual machines, containers provide a more easy-to-deploy and scalable environment for big data workloads. The research work in this paper can help practitioners and researchers to make more informed decisions on tuning their cloud environment and configuring the big data applications, so as to achieve better performance and higher resources utilization.

Motivation & Objective

  • To evaluate the practical convenience of setting up big data environments using containers versus virtual machines.
  • To measure and compare the performance and scalability of diverse Spark workloads in container and VM-based cloud infrastructures.
  • To analyze the underlying system-level factors—such as CPU wait time and memory allocation—driving performance differences between containers and VMs.
  • To provide actionable insights for system administrators and researchers on optimizing cloud environments for big data workloads.

Proposed method

  • Deployed Spark workloads on a physical cluster using both Docker containers and KVM-based virtual machines with identical configurations.
  • Configured workloads with varying cluster sizes (from 8 to 48 nodes) to assess scalability under increasing load.
  • Measured execution time, makespan, and system-level metrics including CPU utilization (user, system, wait), and memory usage (cached, used, free).
  • Collected and analyzed runtime metrics to identify performance bottlenecks, particularly I/O latency and resource contention.
  • Used Dockerfiles to standardize container image creation and ensure consistent application deployment across environments.
  • Compared memory footprint and allocation behavior by monitoring pre- and post-workload memory usage on each node.

Experimental results

Research questions

  • RQ1How does the setup time for a big data computing environment differ between containers and virtual machines?
  • RQ2How do container and VM environments compare in terms of execution time and scalability for diverse Spark workloads?
  • RQ3What are the underlying system-level factors—such as CPU wait time and memory allocation—contributing to performance differences between containers and VMs?
  • RQ4How does resource utilization (CPU and memory) vary between containers and VMs under different cluster sizes and workloads?

Key findings

  • Containers reduced setup time and deployment complexity compared to VMs, making them more convenient for system administrators.
  • For a 48-node cluster, Logistic Regression completed in 238 seconds in containers versus 3643 seconds in VMs—a 14.31x performance improvement.
  • VMs failed to complete workloads at scale (48+ nodes) due to excessive task timeouts, while containers successfully executed all jobs.
  • CPU wait time increased significantly in VMs as cluster size grew, indicating higher I/O latency and resource contention, especially under high load.
  • Memory utilization was more efficient in containers: 2 containers used less than 2GB per node, while 2 VMs consumed ~4GB even before workload execution.
  • Containers released memory promptly after job completion, whereas VMs retained allocated memory, leading to inefficient resource usage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.