Skip to main content
QUICK REVIEW

[Paper Review] Performance Evaluation of Deep Learning Tools in Docker Containers

Pengfei Xu, Shaohuai Shi|arXiv (Cornell University)|Nov 9, 2017
Advanced Neural Network ApplicationsComputer Science28 references7 citations
TL;DR

This paper evaluates the performance overhead of running deep learning tools in Docker containers versus native host systems. Using benchmarks on CPU, GPU, and I/O workloads, along with real training workloads on popular frameworks like TensorFlow and MXNet, the study finds negligible performance penalties in computational tasks and I/O operations, demonstrating that Docker containers are a feasible and efficient solution for deploying deep learning applications with minimal overhead.

ABSTRACT

With the success of deep learning techniques in a broad range of application domains, many deep learning software frameworks have been developed and are being updated frequently to adapt to new hardware features and software libraries, which bring a big challenge for end users and system administrators. To address this problem, container techniques are widely used to simplify the deployment and management of deep learning software. However, it remains unknown whether container techniques bring any performance penalty to deep learning applications. The purpose of this work is to systematically evaluate the impact of docker container on the performance of deep learning applications. We first benchmark the performance of system components (IO, CPU and GPU) in a docker container and the host system and compare the results to see if there's any difference. According to our results, we find that computational intensive jobs, either running on CPU or GPU, have small overhead indicating docker containers can be applied to deep learning programs. Then we evaluate the performance of some popular deep learning tools deployed in a docker container and the host system. It turns out that the docker container will not cause noticeable drawbacks while running those deep learning tools. So encapsulating deep learning tool in a container is a feasible solution.

Motivation & Objective

  • To systematically evaluate the performance impact of Docker containers on deep learning applications.
  • To address the challenge of managing complex software dependencies and version conflicts in shared computing environments.
  • To determine whether containerization introduces significant performance overhead in CPU, GPU, and I/O-intensive deep learning workloads.
  • To assess the feasibility of deploying deep learning tools via Docker containers in production and shared computing environments.
  • To provide empirical evidence on the performance equivalence of Dockerized versus native deployments for deep learning frameworks.

Proposed method

  • Benchmarking system-level performance using HPL and HPCG for CPU, and GPU kernels for GPU workloads.
  • Evaluating disk I/O performance via ioping for sequential and random access, including direct I/O and cache-based access.
  • Measuring end-to-end training time for five deep learning frameworks (Caffe, CNTK, MXNet, TensorFlow, Torch) across multiple neural network architectures and datasets.
  • Comparing training performance between Docker containers and the host system, focusing on batch processing time and first-epoch I/O effects.
  • Analyzing the impact of preloading and caching mechanisms on I/O performance differences between containerized and native execution.
  • Using NVIDIA Docker to ensure GPU access compatibility and measure GPU-accelerated training performance in containers.

Experimental results

Research questions

  • RQ1Does running deep learning workloads in Docker containers introduce measurable performance overhead on CPU and GPU?
  • RQ2How does Docker containerization affect disk I/O performance, particularly for sequential and random access patterns?
  • RQ3What is the end-to-end training performance difference between deep learning tools running in Docker containers versus natively on the host system?
  • RQ4Why does MXNet show significantly faster first-epoch training in Docker containers compared to the host?
  • RQ5Can Docker containers effectively support coexistence of multiple deep learning frameworks and versions on shared systems without performance degradation?

Key findings

  • CPU and GPU workloads in Docker containers show negligible performance overhead, with differences within 5% for most benchmarks.
  • Sequential I/O performance in Docker containers is on par with the host system, indicating no significant I/O bottleneck.
  • Random access I/O performance in Docker containers is faster than on the host system for one disk drive, attributed to better use of NAND cache.
  • The first-epoch training time for MXNet in Docker is up to 77.2% faster than on the host, due to differences in initial I/O handling, but this gap closes in subsequent epochs.
  • Overall, deep learning training workloads in Docker containers perform as well as or better than on the host system, with no noticeable performance drawbacks.
  • The study confirms that containerizing deep learning tools via Docker is a feasible and efficient deployment strategy for shared and cloud environments.

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.