[论文解读] Virtualization & Microservice Architecture for Software-Defined Vehicles: An Evaluation and Exploration
本文评估了软件定义汽车(SDVs)中容器化、虚拟化和微服务架构的性能,表明通过合理配置,这些技术可实现接近裸金属的性能表现——在虚拟化环境中,磁盘I/O性能最高可降低35%;通过在AMD64平台上使用k3s进行微服务编排,启动时间可提升18%。
The emergence of Software-Defined Vehicles (SDVs) signifies a shift from a distributed network of electronic control units (ECUs) to a centralized computing architecture within the vehicle's electrical and electronic systems. This transition addresses the growing complexity and demand for enhanced functionality in traditional E/E architectures, with containerization and virtualization streamlining software development and updates within the SDV framework. While widely used in cloud computing, their performance and suitability for intelligent vehicles have yet to be thoroughly evaluated. In this work, we conduct a comprehensive performance evaluation of containerization and virtualization on embedded and high-performance AMD64 and ARM64 systems, focusing on CPU, memory, network, and disk metrics. In addition, we assess their impact on real-world automotive applications using the Autoware framework and further integrate a microservice-based architecture to evaluate its start-up time and resource consumption. Our extensive experiments reveal a slight 0-5% performance decline in CPU, memory, and network usage for both containerization and virtualization compared to bare-metal setups, with more significant reductions in disk operations-5-15% for containerized environments and up to 35% for virtualized setups. Despite these declines, experiments with actual vehicle applications demonstrate minimal impact on the Autoware framework, and in some cases, a microservice architecture integration improves start-up time by up to 18%.
研究动机与目标
- 评估嵌入式及高性能车载平台(AMD64与ARM64)上虚拟化与容器化的性能开销。
- 评估这些虚拟化技术对基于Autoware框架的真实自动驾驶工作负载的影响。
- 探索在SDVs中集成基于微服务的架构的可行性及其性能影响。
- 识别在扩展微服务时,系统灵活性与启动效率之间的性能权衡。
- 为SDV开发中选择最优虚拟化与容器化技术栈提供基于基准测试的参考依据。
提出的方法
- 在嵌入式、AMD64与ARM64平台的裸金属、KVM虚拟机及容器化环境(Docker、Podman、Nspawn)上开展全面基准测试。
- 使用标准化工具测量CPU、内存、网络和磁盘I/O性能,并将结果与裸金属基线进行对比。
- 通过将模块分解为10、16和26个专用容器,将基于微服务的架构集成到Autoware框架中。
- 使用k3s(一种轻量级Kubernetes发行版)编排容器,以评估启动时间和资源消耗。
- 在模拟自动驾驶车辆运行的工作负载条件下评估实际性能表现,包括ROS节点的扩展。
- 分析大规模场景下的性能偏差,特别是当容器数量超过系统启动容量时,以识别硬件瓶颈。
实验结果
研究问题
- RQ1在嵌入式及高性能车载平台(AMD64与ARM64)上,虚拟化与容器化在CPU、内存、网络和磁盘性能指标上的性能开销是多少?
- RQ2虚拟化与容器化对真实自动驾驶工作负载(特别是在Autoware框架内)有何影响?
- RQ3与单体部署相比,基于微服务的架构在SDVs中能在多大程度上提升启动速度和资源管理效率?
- RQ4在SDV环境中扩展微服务时,架构灵活性与性能之间存在哪些权衡?
- RQ5容器化与虚拟化环境是否能在车载工作负载中实现与裸金属系统相当的性能表现?
主要发现
- 与裸金属系统相比,虚拟化与容器化在CPU、内存和网络使用方面仅导致0–5%的性能下降。
- 磁盘I/O性能受到显著影响,虚拟化环境(KVM)相比裸金属系统最高损失达35%。
- 容器化环境的磁盘I/O性能下降5–15%,而虚拟化部署的性能下降更为严重。
- 在AMD64平台上,使用微服务架构时,k3s编排使Autoware的启动时间相比裸金属系统缩短18%。
- 在ARM64平台上,k3s的启动速度比裸金属快8%,而Docker和KVM则分别慢33%和23%。
- 过度容器化(26个容器)因硬件限制导致性能下降,启动时间因k3s无法同时启动所有容器而增加。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。