Performance Characterization of Containers in Edge Computing

Ragini Gupta, Klara NahrstedtarXiv 2025 · DOI

Introduction

Edge computing aims to mitigate latency and bandwidth constraints by moving data processing closer to the source. However, the edge environment is characterized by heterogeneous, resource-constrained devices like the Raspberry Pi. While containerization technologies like Docker offer essential portability for the Internet of Things (IoT), they were primarily designed for high-performance data center environments. This paper provides a comprehensive empirical evaluation of Docker containers on edge hardware, identifying significant performance trade-offs in I/O-heavy tasks, networking, and real-time processing.

Methodology

The researchers established a "hardware-in-the-loop" testbed utilizing Raspberry Pi 3 Model B+ nodes equipped with environmental sensors (DHT11) and camera modules. Performance was benchmarked by comparing native execution (Raspbian OS) against Docker containers configured in two networking modes: Bridge (isolated virtual network) and Host (shared network stack). The evaluation spanned microbenchmarks for raw CPU, memory, and network throughput, as well as macrobenchmarks simulating real-world applications such as AI-based facial recognition, home automation, and Internet of Medical Things (IoMT) workloads.

Key Insights: The Isolation Paradox and Performance Taxes

A primary finding of the study is the Isolation Paradox. While Docker's isolation layer typically introduces overhead, it can actually improve performance predictability for memory-intensive tasks.

Figure 1: Comparison of cache misses between Host and Docker environments across varying input sizes.

As illustrated in Figure 1, Docker maintains a stable cache miss rate regardless of input size, whereas the native host's misses scale significantly. This suggests that containers can provide a more deterministic environment for memory management on constrained devices, which is critical for certain IoT applications.

However, this isolation comes with several performance "taxes":

  • Networking Overhead: The default Bridge mode introduced nearly 4x the latency (10.1ms vs 2.5ms) compared to Host mode due to Network Address Translation (NAT) overhead.
  • I/O Bottlenecks: Interfacing with physical sensors through virtualization layers resulted in a 1-10ms latency penalty per I/O operation, potentially impacting real-time requirements.
  • Cryptographic Performance: AES encryption in Docker was up to 30x slower than native execution at high workloads, attributed to scheduler inefficiencies and namespace crossing penalties.

Performance Results

  • Compute & Memory: For standard compute tasks, Docker's overhead remained low, with approximately a 0.56% increase in latency.
  • Application Benchmarks: In facial recognition tasks, performance varied by implementation. A KNN-based classifier was significantly slower in Docker (900s vs 320s native), whereas an OpenCV-based model showed a much narrower gap (13s vs 10s).
  • Throughput: Host mode networking achieved 3.6 Gbps, while Bridge mode dropped to 3.1 Gbps.
  • Startup Latency: Docker introduced a 100-500ms initialization overhead, which may violate the sub-second constraints required for many real-time IoT systems.

Conclusion and Future Work

While Docker provides significant portability benefits for edge computing, its current driver model and virtualization overheads necessitate careful configuration—such as using Host networking or direct device mounting—to meet performance requirements. Future research should explore lightweight container orchestrators, shared runtime engines, and specialized runtimes like Unikernels or crun to further optimize containerized workloads for time-critical edge applications.

Summary updated

BibTeX
@misc{gupta2025performance,
  author = {Ragini Gupta and Klara Nahrstedt},
  title = {{Performance Characterization of Containers in Edge Computing}},
  year = {2025},
  eprint = {2505.02082},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.02082},
}
Figure