arXiv:2609.04478cs.DCSep 2026

Manuscript Offprint

arXiv:2609.04478

Performance Study of Serverless Workloads in Confidential Virtual Machines

Rikesh Niroula, Jianchen Shan, Xiaoning Ding

Rikesh Niroula, Jianchen Shan, Xiaoning Ding

Abstract—Confidential serverless computing is rapidly emerging as a critical paradigm for application domains requiring strong confidentiality guarantees, such as healthcare, finance, and machine learning. To enable this paradigm in untrusted cloud environments, Confidential Virtual Machines (CVMs) provide isolation by encrypting the entire guest memory, and thus securing serverless workloads against host-level access and interference. However, the implications of CVMs for serverless systems remain insufficiently understood.

This paper presents an empirical study of serverless workloads in CVMs, systematically covering memory efficiency and runtime overhead on both warm-starts and cold-starts. Our results show that CVMs incur substantial memory overhead because encrypted memory disables cross-VM page deduplication and reduces memory reclaimability, thereby limiting warm-container capacity under a fixed memory budget. Runtime overhead in warm-starts is workload dependent. Workloads with frequent VMEXITs, particularly idle transitions, suffer substantial slowdowns. These slowdowns are further amplified by common serverless deployment practice that couples vCPU allocation to memory size, as higher-memory configurations expose more vCPUs than some functions can use effectively. For cold starts, the study focuses on container creation, a common and major contributor to startup latency. Motivated by the memory-efficiency results, we consider the deployments in which multiple containers of the same function are consolidated within the same CVM to improve efficiency, and show that selectively relaxing certain isolation mechanisms in this setting can substantially reduce startup overhead. These results clarify the main performance tradeoffs of confidential serverless computing and suggest practical ways to improve efficiency and latency.

Index Terms—Serverless Computing, Confidential Virtual Machine, Intel TDX, Cloud Computing.

I. INTRODUCTION

SERVERLESS computing, also known as Function-as-a-Service (FaaS), has become a popular cloud paradigm, adopted by platforms such as AWS Lambda [1], Microsoft Azure Functions [2], and Google Cloud Functions [3], due to its scalability, fine-grained billing, and reduced operational overhead. It is well-suited for a broad range of applications, such as image processing, log aggregation, data transformation, and backend API services. By abstracting away infrastructure management, serverless platforms allow developers to focus solely on application logic.

Confidential serverless computing has recently attracted significant attention as it allows sensitive serverless functions to execute with hardware-backed confidentiality and isolation in untrusted cloud environments. It emerges as an important paradigm for application domains such as healthcare, finance, and privacy-preserving AI inference, where protecting sensitive data during execution is essential. In conventional serverless deployments, containers and VMs provide isolation between workloads, but the privileged cloud host and hypervisor may still access or inspect guest execution state and in-memory data. We therefore treat the cloud host and hypervisor as part of the untrusted infrastructure. Confidential Virtual Machines (CVMs) address this concern by establishing a hardware-protected execution boundary that prevents the untrusted host from directly accessing private guest memory. In the deployment model considered in this work, each serverless function is assigned a dedicated CVM, within which multiple container instances of that function may execute, while different functions are isolated in separate CVMs.

CVMs rely on hardware support such as Intel TDX [4], AMD SEV-SNP [5], ARM CCA [6] to provide hardware-backed isolation and full guest-memory encryption. Achieving end-to-end confidentiality, however, requires more than the CVM execution boundary alone. CVMs are used together with mechanisms such as remote attestation and encrypted storage and communication to protect data throughout its lifecycle. The CVM mechanisms providing this protected execution environment, however, introduce non-trivial resource inefficiency and performance overhead. In particular, memory encryption disables host-level memory optimizations such as cross-VM page deduplication, while enforcing the protected execution boundary can increase the cost of events such as VMEXIT handling.

These overheads are particularly important for serverless workloads, which are typically short-lived, latency-sensitive, and dynamically scaled in response to demand. Even modest resource inefficiency or execution slowdown can therefore have a substantial impact on invocation latency, resource utilization, and operating cost. Moreover, serverless resource provisioning can interact with CVM overheads in ways that do not arise as prominently in conventional workloads. Many serverless platforms couple vCPU allocation to the configured function memory: additional CPU resources can improve latency through parallelism, but can also introduce synchronization and idle transitions when the available parallelism is not fully utilized. Such transitions may generate frequent VM exits, whose handling is substantially more expensive in CVMs. Prior work has characterized fundamental CVM overheads using general-purpose workloads [7]–[9]. However, it remains unclear how these overheads affect key serverless requirements, such as keeping warm containers in memory,

Rikesh Niroula and Xiaoning Ding are with New Jersey Institute of Technology, New Jersey, USA. Email: {m382,xiaoninging.ding}@njit.edu.

Jianchen Shan is with Hofstra University, New York, USA. Email: jianchen.shan@hofstra.edu.

providing low-latency warm execution, and reducing cold-start delay.

To address these gaps, we systematically examine CVM-based serverless execution along three key dimensions: memory efficiency, warm-start execution, and cold-start container initialization. For each dimension, we characterize the observed overheads, investigate their underlying causes, and identify practical mitigation opportunities.

This paper evaluates a diverse set of serverless workloads and compares their behavior across CVMs and regular VMs. Our study reveals three key findings. First, confidential deployments incur substantial memory overhead, primarily due to the loss of cross-VM page deduplication and further increased by reduced memory reclaimability. This reduces the number of warm containers that can be maintained under a fixed memory budget and can consequently increase cold starts. Second, warm-start overhead depends strongly on the workload. Functions with frequent VM exits, particularly those involving idle transitions and thread synchronization, experience substantially higher slowdown, and this effect can be amplified by serverless resource provisioning that couples vCPU allocation with memory size. Our analysis also shows the limits of existing system-level mechanisms for mitigating this behavior. Third, we characterize container creation as a major component of cold-start latency and identify bottlenecks arising from CPU configuration, cgroup contention, and container-isolation mechanisms. We further evaluate practical mitigation strategies, including, under a restricted per-function trust model, selectively relaxing container-level isolation among mutually trusted instances of the same function. Overall, these findings clarify the main performance tradeoffs introduced by confidential serverless execution and point to practical ways to mitigate them.

References (29)