Understanding Network Startup for Secure Containers in Multi-Tenant Clouds: Performance, Bottleneck and Optimization
Open Access
- 4 November 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 635-650
Abstract
In this paper, we use empirical measurements to show that container network startup is a key factor that contributes to the slow startup of secure containers in multi-tenant clouds, especially in the scenario of serverless computing, where the issue is pronounced by high-volume concurrent container invocations. We conduct extensive and detailed analysis on existing Container Network Interface (CNI) plugins and show that even the fastest one doubles the startup time from the no-network scenario. We show that the major cause of the blowup in total startup time is that enabling networking significantly increases the contention among different startup stages, particularly for global Linux kernel locks, including the Routing Table NetLink (RTNL) mutex lock and various spin locks. We reveal that contending for these locks hinders startup performance in three ways, including directly increasing stage time, causing poor pipeline overlap and wasting CPU resources. To mitigate such kernel lock contention, we propose a multi-stage concurrency control mechanism based on Bayesian optimization to limit the concurrency of each contended stage. Our results show that this lightweight mechanism can effectively reduce the end-to-end container startup time by 18.8% with negligible extra overhead.Keywords
Funding Information
- Key R\&D Program of Zhejiang Province (2023R5202)
- Alibaba Innovation Research Project (2022010307)
- National Natural Science Foundation of China (62072302)
This publication has 42 references indexed in Scilit:
- A reference architecture for serverless big data processingFuture Generation Computer Systems, 2024
- Bypass Container Overlay Networks with Transparent BPF-driven Socket Replacement2022
- Performance and isolation analysis of RunC, gVisor and Kata Containers runtimesCluster Computing, 2022
- Characterizing network performance of single-node large-scale container deployments2021
- Tackling Cold Start of Serverless Applications by Efficient and Adaptive Container Runtime Reusing2021
- Comparative experimental analysis of Docker container networking drivers2020
- Performance Analysis of CNI (Container Networking Interface) based Container Network2018
- Performance of Container Network Technologies in Cloud Environments2018
- An Analysis and Empirical Study of Container Networks2018
- Measurement and Evaluation for Docker Container Networking2017