NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Virtualization & Microservice Architecture for Software-Defined Vehicles: An Evaluation and Exploration

Long Wen, Markus Rickert, Fengjunjie Pan, Jianjie Lin, Yu Zhang, Tobias Betz, Alois KnollarXiv 2024 · DOI

Abstract

Software-Defined Vehicles (SDVs) are driving a transition from distributed Electronic Control Units (ECUs) to centralized, cloud-native computing architectures. This shift promises greater flexibility but introduces concerns regarding the performance overhead of virtualization and containerization in resource-constrained automotive environments. This paper evaluates these technologies across embedded and high-performance platforms. Our findings indicate that while CPU and memory overhead is negligible, disk I/O performance decreases significantly. Furthermore, we demonstrate that refactoring monolithic autonomous driving stacks into containerized microservices can improve system start-up times by up to 18%.

Introduction

The automotive industry is undergoing a paradigm shift toward Software-Defined Vehicles (SDVs). Traditional vehicle architectures rely on numerous single-function ECUs, which are increasingly inadequate for the complex software requirements of modern autonomous driving systems. Centralized computing, leveraging Virtual Machines (VMs) for safety-critical isolation and containers for agile deployment, offers a solution.

Conceptual architecture of a Software-Defined Vehicle (SDV) utilizing centralized computing and virtualization.

However, the adoption of these data-center-born technologies in the automotive sector lacks comprehensive empirical performance data. This study addresses this gap by benchmarking virtualization and containerization on automotive-grade hardware and exploring the viability of microservice-based autonomous driving architectures.

Methodology

The evaluation consists of two primary components: generic performance benchmarking and a real-world automotive application simulation.

Benchmarking Environment

Performance was measured across three hardware platforms:

  • Embedded: Raspberry Pi 4 (ARM64).
  • AVA: Ampere Altra platform (ARM64), a high-performance automotive reference system.
  • Workstation: Intel i9-12900K (AMD64).

The technologies evaluated included the KVM hypervisor and various container engines (Docker, Podman, and Systemd-nspawn), alongside the lightweight Kubernetes orchestrator, k3s.

Automotive Simulation

The authors refactored the Autoware framework—a monolithic ROS 2-based autonomous driving stack—into varying levels of microservice granularity (10, 17, and 26 containers). Performance was evaluated using a rosbag containing real-world sensor data (LiDAR, cameras, IMU) to simulate realistic workloads.

Key Results and Discussion

Virtualization and Container Overhead

The benchmarking results reveal that CPU, memory, and network performance remain largely unaffected by virtualization, typically showing a 0–5% performance decline compared to bare-metal execution. However, disk I/O presents a significant bottleneck.

Disk I/O performance of KVM virtualization variants across different hardware platforms relative to bare-metal performance.

As shown in Figure 2, KVM-based virtualization incurs a substantial penalty, with performance dropping to approximately 60–70% of bare-metal levels depending on the storage backend (qcow2, raw, or partition). Containerized environments also experienced a 5–15% reduction in disk operations. This suggests that data-intensive automotive applications, such as high-frequency sensor logging, require careful architectural consideration to mitigate I/O latency.

The Microservice Advantage

A key finding of this research is that a microservice architecture can enhance system responsiveness. On the AMD64 workstation, a 17-container configuration of Autoware started 18% faster (a reduction of 0.57 seconds) than the bare-metal monolithic version. This improvement is attributed to the parallel initialization of independent modules and more efficient resource scheduling provided by Linux cgroups and namespaces.

However, there is a "Goldilocks" zone for granularity. Increasing the split to 26 containers led to increased orchestration overhead, eventually negating the benefits of parallelization.

Conclusion

This study confirms that cloud-native technologies are viable for automotive applications, provided that disk I/O bottlenecks are addressed. The transition to microservices not only facilitates modularity and updates but can also improve system boot performance through parallelization. Future work should focus on optimizing container orchestration for ARM64 automotive chips and developing analytical models to determine the optimal granularity for microservice architectures in SDVs.

Summary updated

BibTeX
@misc{wen2024virtualization,
  author = {Long Wen and Markus Rickert and Fengjunjie Pan and Jianjie Lin and Yu Zhang and Tobias Betz and Alois Knoll},
  title = {{Virtualization \& Microservice Architecture for Software-Defined Vehicles: An Evaluation and Exploration}},
  year = {2024},
  eprint = {2412.09995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.09995},
}
Figure