Quark:一种面向无服务器计算的高性能安全容器运行时
Quark: A High-Performance Secure Container Runtime for Serverless Computing
AI总结:
本研究针对现有安全容器运行时的性能损耗问题,通过协同设计定制轻量客户机内核QKernel与专用VMM QVisor,构建了高性能安全容器运行时Quark,在延迟、吞吐量、启动速度与内存开销上均显著优于Kata,且已开源。
摘要:
安全容器运行时是创建和运行容器的基础层,是微服务、无服务器计算等新兴计算范式的基石。现有安全容器运行时虽通过在客户机内核与虚拟机监控器(VMM,即Hypervisor)之上运行容器提升了安全性,但在网络、容器启动、I/O系统调用等关键领域会产生性能损耗。\n在我们运营微服务与无服务器计算的实践中,我们构建了名为Quark的高性能安全容器运行时。现有方案依赖传统虚拟机技术,采用Linux作为客户机内核、QEMU作为VMM,我们则采取了不同的思路从零构建Quark,为实现极致定制化以释放高性能铺平了道路。我们的开发核心是为安全容器协同设计定制化的客户机内核与VMM。为此,我们构建了名为QKernel的轻量客户机操作系统内核,以及名为QVisor的专用VMM。QKernel与QVisor的协同设计实现了三项关键突破:基于RDMA的高性能容器网络、快速容器启动模式,以及高效的I/O系统调用执行机制。在我们对Redis等真实应用的测试中,与Kata相比,Quark将P95延迟降低了79.3%,吞吐量提升了2.43倍。此外,Quark容器启动的延迟较冷启动模式降低96.5%,同时相比保活模式节省了81.3%的内存开销。Quark是开源项目,采用Rust编写的符合行业标准的代码库。
英文摘要:
Secure container runtimes serve as the foundational layer for creating and running containers, which is the bedrock of emerging computing paradigms like microservices and serverless computing. Although existing secure container runtimes indeed enhance security via running containers over a guest kernel and a Virtual Machine Monitor (VMM or Hypervisor), they incur performance penalties in critical areas such as networking, container startup, and I/O system calls. In our practice of operating microservices and serverless computing, we build a high-performance secure container runtime named Quark. Unlike existing solutions that rely on traditional VM technologies by importing Linux for the guest kernel and QEMU for the VMM, we take a different approach to building Quark from the ground up, paving the way for extreme customization to unlock high performance. Our development centers on co-designing a custom guest kernel and a VMM for secure containers. To this end, we build a lightweight guest OS kernel named QKernel and a specialized VMM named QVisor. The QKernel-QVisor codesign allows us to deliver three key advancements: high-performance RDMA-based container networking, fast container startup mode, and efficient mechanisms for executing I/O syscalls. In our practice with real-world apps like Redis, Quark cuts down P95 latency by 79.3% and increases throughput by 2.43x compared to Kata. Moreover, Quark container startup achieves 96.5% lower latency than the cold-start mode while saving 81.3% memory cost to the keep-warm mode. Quark is open-source with an industry-standard codebase in Rust.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。