GPU fork 与 CoW专题概览译稿与校审目录

ServerlessPD:全文中文机器译稿

Mingxuan Liu, Jianhua Gu, Tianhai Zhao · 版本:11169657

机器初译,尚未完成逐段校审。 已修正部分明显错误,仍可能漏译或曲解,不能作为精确译文引用。作者姓名、代码及参考文献以原文为准。依据用户提供的 11 页 PDF;双栏、图表、公式的提取可能遗漏或错序。 原文出处 ↗

← 译稿目录 GPU fork 专题 

数值核验提醒:原文存在 1.2 s / 0.9 s 与 1.14 倍不符、220 GB/s 与 100 Gbps 跨机网络口径不明等问题。译文保留原文并附译注;“零拷贝”不表示网络不传数据。图表提取异常处不作猜测。

PDF 第 1 页

ServerlessPD:面向无服务器大语言模型推理的 RDMA 协同设计式预填充与解码分离。作者 Mingxuan Liu、Jianhua Gu;西北工业大学计算机科学学院、高性能计算中心,中国西安。

查看该段英文原文

ServerlessPD: Fast RDMA-codesigned Disaggregated Prefill-Decoding for Serverless Inference of Large Language Models Mingxuan Liu School of Computer Science Center for HPC Northwestern Polytechnical University Xi’an, China liumingxuan@mail.nwpu.edu.cn Jianhua Gu

作者 Jianhua Gu、Tianhai Zhao;西北工业大学计算机科学学院、高性能计算中心,中国西安。摘要:大语言模型(LLM)推理中,耦合的预填充(P)和解码(D)阶段存在效率问题,导致资源利用不足与调度瓶颈。

查看该段英文原文

School of Computer Science Center for HPC Northwestern Polytechnical University Xi’an, China gujh@nwpu.edu.cn Tianhai Zhao School of Computer Science Center for HPC Northwestern Polytechnical University Xi’an, China zhaoth@nwpu.edu.cn Abstract—Large Language Model (LLM) inference suffers from inefficiencies in coupled prefill (P) and decoding (D) phases, leading to resource underutilization and scheduling bottlenecks.

尽管 P/D 分离架构通过在非对称集群中隔离两个阶段缓解了这些问题,无服务器部署仍面临重大挑战:自动扩缩容时的冷启动延迟,以及分布式预填充与解码实例之间代价高昂的中间状态传输,例如 KV 缓存传输。

查看该段英文原文

While disaggregated P-D architectures address this by isolating phases across asymmetric clusters, serverless deployments introduce critical challenges: cold-start latency during autoscaling and costly intermediate state transfers (e.g., KV cache) between distributed prefill and decoding instances.

我们提出 ServerlessPD:它将远程 fork 与 RDMA 协同设计,以支持无服务器 LLM 推理中的近乎即时自动扩缩容和零拷贝状态传输。ServerlessPD 提供一个集成于操作系统内核、基于 RDMA 的原语,可跨机器将活跃的预填充实例远程分叉为解码实例。它通过复用预先构建好的 GPU 状态绕过冷启动,使子容器能够以写时复制方式直接访问父实例的 GPU 内存。系统还通过截获 GPU 上下文来捕获并复制执行状态,以实现状态交接。为优化资源利用,ServerlessPD 利用动态启动点算法,根据预填充与解码的实时状态调度 fork,减少空闲时间,让计算与状态传输重叠。作者据此展示 RDMA 协同的远程 fork 可用于 LLM 服务中的快速扩容与高效状态分离。

查看该段英文原文

We present ServerlessPD, a system that co-designs remote fork with RDMA to enable near-instant autoscaling and zero-copy state transferring for serverless LLM inference. ServerlessPD introduces a RDMA-based OS kernel-integrated primitive that remotely forks active prefill instances into decoding instances across machines, bypassing cold starts by reusing pre-materialized GPU states, which grants child containers direct copy-on-write access to parent GPU memory. The system further employs GPU context interception to efficiently capture and replicate execution states, ensuring seamless state transfer. To optimize resource utilization, ServerlessPD integrates a dynamic launch-point algorithm that schedules fork operations based on real-time prefill-decoding dynamics, minimizing idle time and overlapping computation with state transfers. ServerlessPD demonstrates that RDMA- codeigned remote fork can unlock near-instant autoscaling and efficient state disaggregation for LLM serving.

关键词:无服务器计算、大语言模型、RDMA、远程 fork、GPU 管理、预填充与解码分离、LLM 推理。

查看该段英文原文

Index Terms—Serverless Computing, Large Language Model, RDMA, Remote Fork, GPU Management, Prefill-Decoding Disaggregation, LLM Inference

I. 引言。大语言模型(LLM)在现代人工智能中具有重要作用,但其推理分为预填充(P)和解码(D)两个阶段,计算需求不同,在共享 GPU 集群中容易产生低效率。预填充是计算密集阶段,需要较高算术吞吐量来初始化 KV 缓存等中间状态;解码受内存限制,依靠低延迟访问这些状态来逐 token 自回归生成。这种不匹配会造成系统瓶颈、调度低效和资源利用不足。

查看该段英文原文

I. I NTRODUCTION Large Language Models (LLMs) are pivotal in modern AI, yet their inference process—divided into prefill (P) and decoding (D) phases—faces inefficiencies in shared GPU clusters due to the divergent computational demands of these stages. The prefill phase is compute-intensive, requiring high arithmetic throughput to initialize intermediate states like the KV cache, whereas decoding is memory-bound, prioritizing low-latency access to these states for autoregressive token generation. This mismatch creates systemic bottlenecks, scheduling inefficiency and resource underutilization.

这项工作由中国国家关键研发计划 (NO. 2022YFB501701) 支持.

查看该段英文原文

This work is supported by the National Key R&D Program of China (NO. 2022YFB501701).

Jianhua Gu 为通信作者。将预填充和解码分置于不同集群能够缓解这些问题,尤其适用于高性能 GPU 负责预填充、成本较低 GPU 负责解码的非对称部署。Microsoft [1]、Moonshot [2] 等服务提供商,以及 vLLM [3] 等框架,已采用这一方式优化资源利用。

查看该段英文原文

Jianhua Gu is the corresponding author. Disaggregating prefill and decoding into separate clusters addresses these issues, especially in asymmetric setups where high-performance GPUs handle prefill and cost-efficient GPUs handle decoding. Leading providers like Microsoft [1], Moonshot [2] and frameworks like vLLM [3] have adopted this approach to optimize resource utilization.

由于其依赖输出长度,LLM推理的延迟具有显著变化,由于token生成发生反复 [3], [4] 并且动态变化.

查看该段英文原文

The latency of LLM inference exhibits significant variability due to its dependence on output length, which dynamically varies because token generation occurs iteratively [3], [4].

因此,执行低延迟的LLM请求通常需要将多个GPU分配给长时间,从秒到分钟. 因此,为了满足开发人员的多样性,LLM服务提供商必须保持活跃的推断实例和超额供应计算能力,从而导致相当的GPU资源消耗 [2], [5], [6].

查看该段英文原文

Consequently, executing an LLM request with low latency often necessitates allocating multiple GPUs for extended periods, from seconds to minutes. To accommodate diverse developer demands, LLM service providers must therefore maintain active inference instances and over-provision computational capacity, resulting in considerable GPU resource consumption [2], [5], [6].

为了减少GPU消耗,LLM服务运营商越来越多地采用无服务器推断,如亚马逊Bedrock [7],Azure [8],KServe [9],和ServerlessLLM [10]等平台所示. 无服务器平台[7][10]允许开发人员将LLM检查点上传到共享存储中,请求动态转移到短暂的预填和解码实例,从而改善资源多重化,并通过每次请求收费用户降低成本.

查看该段英文原文

To reduce GPU consumption, LLM service operators are increasingly adopting serverless inference, as demonstrated by platforms like Amazon Bedrock [7], Azure [8], KServe [9], and ServerlessLLM [10]. Serverless platforms [7]–[10] allow developers to upload LLM checkpoints to shared storage, with requests dynamically routed to ephemeral prefill and decoding instances, which improves resource multiplexing and reduces costs by charging users per request.

然而,无服务器的LLM推断面临两个关键挑战.第一,冷启动延迟从零开始启动容器1既延迟预填实例 (加载多吉加字节检查站) 和解码实例 (等待预填完成). 另一方面,中级状态转移总费占执行时间的主导地位:通过串联化或云存储来通过预填和解码实例之间转移KV缓存耗费了严重的功能运行时间 [16], [17]. 这些效率低下突出了单一机制的必要性,以分离执行阶段,同时实现近瞬间自动扩展和零拷贝状态转移.

查看该段英文原文

However, serverless LLM inference faces two critical challenges. First, cold-start latency—initializing containers 1 from scratch—delays both prefill instances (loading multi-gigabyte checkpoints) and decoding instances (waiting for prefill completion). Second, intermediate state transfer overhead dominates execution time: transferring KV caches between prefill and decoding instances via serialization or cloud storage consumes serious function runtime [16], [17]. These inefficiencies highlight the need for a unified mechanism to decouple execution phases while enabling near-instant autoscaling and zero-copy state transferring.

1我们在本文中重点关注使用容器执行无服务器函数,该函数已被现有平台广泛采用 [11][15].

查看该段英文原文

1We focus on executing serverless functions with containers in this paper, which is widely adopted by existing platforms [11]–[15].

2025 IEEE International Conference on Web Services(ICWS)。©2025 IEEE。DOI:10.1109/ICWS67624.2025.00045。

查看该段英文原文

2025 IEEE International Conference on Web Services (ICWS) 2836-3868/25/$31.00 ©2025 IEEE DOI 10.1109/ICWS67624.2025.00045 2025 IEEE International Conference on Web Services (ICWS) | 979-8-3315-5563-4/25/$31.00 ©2025 IEEE | DOI: 10.1109/ICWS67624.2025.00045

PDF 第 2 页

我们认为,受 Mitosis [18]、[19] 启发的远程 fork 是同时解决实例启动和预填充至解码状态传输的有前景原语:像本地进程 fork 一样,跨机器分叉预填充实例以创建解码实例。但现有系统主要通过感知 GPU 的检查点/恢复(C/R)实现远程 fork [20]、[21]。我们的分析表明,将父容器内存保存成文件、经网络传输并通过分布式文件系统访问会产生较大开销,甚至慢于冷启动。即使使用 RDMA,检查点和分布式文件访问的软件开销也使 C/R 无法充分发挥其高吞吐、低延迟优势。

查看该段英文原文

We argue that Remote Fork in serverless LLM inference inspired by Mitosis [18], [19]—forking prefill instances across machines to create decoding instances, akin to local process forking—is a promising primitive to address both efficient instance launching and fast state transferring between prefill and decoding instances. However, state-of-the-art systems achieve remote fork only through GPU-aware checkpoint/restore (C/R) techniques [20], [21]. Our analysis reveals that these methods are inefficient, as they are even slower than cold starts due to the overheads of checkpointing parent container memory into files, transferring these files over the network, and accessing them through a distributed file system. Even with modern interconnects like RDMA, the software overheads of checkpointing and distributed file access prevent C/R from fully utilizing RDMA’s high throughput and low latency.

本文提出 ServerlessPD:一种与 RDMA 深度协同设计、在预填充与解码实例间提供快速远程 fork 的操作系统原语。

查看该段英文原文

In this paper, we present ServerlessPD, an operating system primitive that provides fast remote fork between prefill and decoding instances by deeply co-designing with RDMA.

关键观察是:操作系统内核可通过支持 RDMA 的网卡(RNIC)直接访问远端物理内存 [22]、[23],不必让远端操作系统内核和 CPU 参与。这样,无需生成检查点,就能将子容器的 CPU/GPU 异构虚拟内存映射到父容器的物理内存,以实现远程 fork。子容器通过 RNIC 以写时复制方式读取父内存,绕过传统 C/R 引入的分布式文件系统等软件栈。

查看该段英文原文

The key insight is that the OS kernel can directly access physical memory on remote machines via RDMA-capable NICs (RNICs) [22], [23], bypassing remote OS kernel and CPU interventions. This allows us to implement remote fork by mapping a child container’s CPU/GPU heterogeneous virtual memory to the parent container’s physical memory without checkpointing. The child container can directly read the parent’s memory in a copy-on-write manner using RNIC, bypassing the software stacks (e.g., distributed file systems) introduced by traditional C/R.

将 RDMA 与操作系统内核结合用于无服务器 LLM 推理中的远程 fork,有三个关键挑战:(1)GPU 上下文管理,即高效捕获并复制 GPU 执行状态;(2)快速 KV 缓存传输,即远程预填充与解码实例间的高速状态传递;(3)启动点优化,即决定何时分叉预填充实例以创建解码实例。ServerlessPD 分别采用 GPU 上下文拦截、内核态 RDMA 直接访问 CPU/GPU 异构内存,以及依据两阶段动态情况调整 fork 时机的算法。广义轻量容器 [18]、[24] 还用于减少容器化开销。作者据此认为,普通 RNIC 上也能够实现高效实用的无服务器远程 fork。

查看该段英文原文

Leveraging RDMA for remote fork with OS kernel integration poses three key challenges in serverless LLM inference: (1) GPU context management —efficiently capturing and replicating GPU execution states; (2) fast KV cache transfer—enabling high-speed intermediate state transferring between remote prefill and decoding instances; and (3) launchpoint optimization—determining the optimal timing for forking prefill instances to create decoding instances. ServerlessPD addresses these through (1) GPU context interception for seamless state replication; (2) kernel-space RDMA for direct CPU/GPU heterogeneous memory access to bypass traditional communication overheads, and (3) a dynamic launch-point algorithm that optimizes fork timing based on prefill and decoding dynamics. Additionally, techniques like generalized lean containers [18], [24] reduce containerization overhead. In summary, ServerlessPD demonstrates that remote fork can be made efficient, feasible, and practical for serverless computing on commodity RNICs.

II. R ELATED WORK

服务器式计算为LLC部署提供了一个有前途的模式,使得按需GPU配置能够实现 [10], [25].

查看该段英文原文

A. Serverless LLM Inference Serverless computing presents a promising model for LLM deployment, enabling on-demand GPU provisioning [10], [25].

开发人员将模型上传到云存储中.收到请求后,模型加载计划器分配GPU来启动预填和解码实例.请求路由器然后将推断请求转向预填实例的GPU.这些生成中间状态 (例如KV缓存),转发到解码实例的GPU. 这种方法允许基础设施提供商高效地将LLM多个化在GPU上,从而提高资源利用率.它还为用户提供了经济优势,用户只需按要求收费,而没有昂贵的长期GPU承诺.

查看该段英文原文

Developers upload models to cloud storage. Upon receiving a request, a model loading scheduler allocates GPUs to initiate prefill and decoding instances. A request router then directs the inference request to the prefill instance’s GPUs. These generate intermediate states (e.g., KV cache), forwarded to the decoding instance’s GPUs. This approach allows infrastructure providers to efficiently multiplex LLMs on GPUs, enhancing resource utilization. It also provides economic advantages to users, who are billed only per request without costly long-term GPU commitments.

虽然无服务器推断减少了GPU使用,但它引入了主要由于冷启动-初始化容器的功能,在无服务器工作负载中是一个文档化挑战 [1], [26][28].预填冷启动涉及加载大型模型;解码冷启动需要等待预填.

查看该段英文原文

While serverless inference reduces GPU usage, it introduces significant latency due primarily to cold starts-initializing containers per function, a well-documented challenge in serverless workloads [1], [26]–[28]. Prefill cold starts involve loading large models; decoding cold starts require waiting for prefills.

由于部署每台机器多个缓存容器,在分布式环境中扩展时,通常的解决方案 (例如,使用缓存容器实例[29][35]) 承担着显著的资源上费.

查看该段英文原文

Common solutions like provisioned concurrency (e.g., using cached container instances [29]–[35]) incur significant resource overhead when scaling across distributed environments due to deploying multiple cached containers per machine.

关键挑战是独立容器运行的依赖预填和解码实例无法直接传输状态.它们必须依赖于更慢的机制,如传输消息或云存储,引入 (脱序列化),内存复制和存储操作的总费.

查看该段英文原文

A critical challenge is the inability of dependent prefill and decoding instances, running in separate containers, to directly transfer states. They must rely on slower mechanisms like message passing or cloud storage, introducing overheads from (de)serialization, memory copying, and storage operations.

这些总费用可以占据功能执行时间的主导地位 [16],

查看该段英文原文

These overheads can dominate function execution time [16],

虽然在单个机器上共存实例会通过共享内存降低总费用,但它牺牲了异性集群的好处.至关重要的是,状态转移,特别是KV缓存,仍然是P-D分类架构中的常见性能瓶 [1], [2], [36][38]. 【数值待核对,原文:[17]. While co-locating instances on a single machine reduces overhead via shared memory, it sacrifices the benefits of heterogeneous clusters. Crucially, state transfers, especially for the KV cache, remain a common performance bottleneck in P-D disaggregation architectures [1], [2], [36]–[38].】

查看该段英文原文

[17]. While co-locating instances on a single machine reduces overhead via shared memory, it sacrifices the benefits of heterogeneous clusters. Crucially, state transfers, especially for the KV cache, remain a common performance bottleneck in P-D disaggregation architectures [1], [2], [36]–[38].

B. 分类式LLM推理LLM推理由两个不同的阶段组成:预填 (P),处理输入提示以初始化中间状态 (例如KV缓存),并解码 (D),以自动降低生成token.结合这些阶段引入了两个关键问题 [1], [2], [36][40]. 首先,调度效率低下是由于解码请求等待预填计算,

查看该段英文原文

B. Disaggregated LLM Inference LLM inference consists of two distinct phases: prefill (P), which processes input prompts to initialize intermediate states (e.g., KV cache), and decoding (D), which generates tokens autoregressively. Combining these phases introduces two key problems [1], [2], [36]–[40]. First, scheduling inefficiency arises as decoding requests wait for prefill computations, underutilizing GPUs during the memory-bound decoding phase.

其次,资源和平行性冲突发生,因为预填 (计算密集型) 和解码 (内存密集型) 具有不同的硬件和平行性需求. 分类预填和解码成单独的集群解决了这些问题,特别是在高性能GPU处理预填和成本效益高的GPU处理解码的不对称设置中.

查看该段英文原文

Second, resource and parallelism conflicts occur because prefill (compute-intensive) and decoding (memory-intensive) have divergent hardware and parallelism needs. Disaggregating prefill and decoding into separate clusters addresses these issues, especially in asymmetric setups where high-performance GPUs handle prefill and cost-efficient GPUs handle decoding.

这种方法优化了不对称环境中的资源利用,但引入了国家管理和跨集群协调的新挑战.

查看该段英文原文

This approach optimizes resource utilization in asymmetric environments but introduces new challenges in state management and cross-cluster coordination.

预填充与解码物理分离后,需要频繁经网络传输 KV 缓存等中间状态,序列化开销和存储栈瓶颈会主导端到端延迟。现有 C/R [26] 或消息传递 [27] 难以同时实现低延迟和高吞吐:正文称,即使使用 NVLink,将数 GB 的 GPU 上下文序列化成文件仍有 8-12 秒检查点开销;频繁内存复制则使消息传递的 CPU 利用率提高 2-4 倍。

查看该段英文原文

The physical separation of prefill and decoding phases necessitates frequent transfers of intermediate states (e.g., KV cache) over the network, which dominates end-to-end latency due to serialization overheads and storage stack bottlenecks. Existing solutions like checkpoint/restore (C/R) mechanisms [26] or message passing [27] struggle to achieve both low latency and high throughput: C/R serializes multigigabyte GPU contexts into files, incurring 8–12 seconds of checkpointing overhead even with NVLink interconnects, while message passing introduces 2–4× higher CPU utilization from frequent memory copies.

此外,无服务器工作负载的动态性质加剧了协调挑战.

查看该段英文原文

Furthermore, the dynamic nature of serverless workloads exacerbates coordination challenges. Autoscaling decoding

PDF 第 3 页

实例需要与预填充进度精确同步,以避免空等或读取过时状态。但传统冷启动机制 [28] 要等预填充完成后才能启动解码实例,每个请求增加 200-500 ms 延迟。即使是预置并发 [10],在分布式场景中也有不足:跨数千节点维持热容器会浪费 30-45% 的 GPU 内存。

查看该段英文原文

instances requires precise synchronization with prefill instance progress to avoid idle waiting or stale state access. However, traditional cold-start mechanisms [28] cannot launch decoding instances until prefill completing, adding 200–500 ms latency per request. Even provisioned concurrency [10] fails in distributed settings, as maintaining warm containers across thousands of nodes wastes 30–45% of GPU memory.

这些限制源于无服务器平台无状态执行模型和LLM推理中的P-D工作流程的状态,相互依存性之间的根本不匹配.没有对GPU执行状态和内存访问模式的细微控制,实现高效的分类仍然难以实现生产规模部署.

查看该段英文原文

These limitations stem from a fundamental mismatch between the stateless execution model of serverless platforms and the stateful, interdependent nature of P-D workflows in LLM inference. Without fine-grained control over GPU execution states and memory access patterns, achieving efficient disaggregation remains elusive for production-scale deployments.

III. 动机。ServerlessPD 的远程 fork(rfork)机制针对无服务器 LLM 推理的两项低效:高昂的实例启动成本与中间状态传输瓶颈。通过把 fork 原语扩展到感知 GPU 的分布式场景,ServerlessPD 旨在支持 P/D 分离工作流中的近乎即时扩缩容与零拷贝状态传输。

查看该段英文原文

III. M OTIVATION ServerlessPD’s remote fork (rfork) mechanism addresses two critical inefficiencies in serverless LLM inference: highcost instance launching and bottlenecked intermediate state transfers. By extending the fork primitive to a distributed, GPU-aware context, ServerlessPD unlocks near-instant autoscaling and zero-copy state transferring for disaggregated prefill-decoding workflows.

高效启动远程实例。传统无服务器平台依靠冷启动或预置并发,开发者需要超额配置 GPU 来达到延迟目标。作者称,rfork 能使单个活跃预填充实例以很小开销在集群内产生数千解码实例,将资源预置管理复杂度降为 O(1):开发者只需指定是否需要热启动资源,而无需指定数量和位置。

查看该段英文原文

Efficient remote instance launching. Traditional serverless platforms rely on cold starts or provisioned concurrency to launch instances, requiring developers to over-provision GPU resources to meet latency targets. ServerlessPD’s rfork mechanism eliminates this trade-off by enabling a single active prefill instance to spawn thousands of decoding instances across a cluster with minimal overhead. This approach reduces resource provisioning complexity to O(1)—developers specify only whether warmstart resources are needed, not their quantity or location.

透明,零复制状态转移.预填和解码实例之间的中间状态转移 (例如KV缓存) 是分类的LLM服务的主要瓶.

查看该段英文原文

Transparent, zero-copy state transfer. Intermediate state transfers (e.g., KV cache) between prefill and decoding instances are a major bottleneck in disaggregated LLM serving.

现有系统通过云存储或消息传递序列化状态,最多占用函数执行时间的 95%。ServerlessPD 利用 RDMA 统一预填充与解码实例的 CPU/GPU 异构虚拟内存空间。子解码实例经共享内存抽象访问父实例预先准备好的 KV 缓存,避免序列化、内存复制和存储开销。

查看该段英文原文

Existing systems serialize states through cloud storage or message passing, consuming up to 95% of function execution time. ServerlessPD bridges this gap by unifying the CPU/GPU heterogeneous virtual memory spaces of prefill and decoding instances via RDMA. The child decoding instance accesses the parent’s pre-materialized KV cache through a shared memory abstraction, eliminating serialization, memory copies, and storage costs.

远程 fork 的效率挑战。尽管远程 fork 很有前景,其理论收益仍受到实际开销限制。传统 C/R 方法需要序列化 50 GB GPU 上下文(作者称这在现代 LLM 中很常见),耗时 8.2 秒;再通过 100 Gbps 网络传输检查点需要 4.1 秒。

查看该段英文原文

The efficiency challenge of remote fork. While remote fork offers a promising paradigm for serverless LLM inference, realizing its theoretical benefits in practice faces significant efficiency barriers. Traditional approaches based on checkpoint/restore (C/R) incur prohibitive overheads: serializing a 50 GB GPU context (common in modern LLMs) takes 8.2 seconds, while transferring the checkpoint over a 100 Gbps network adds another 4.1 seconds.

即使采用 RDMA,RC 等面向连接的传输也限制扩展性:按每连接 4 ms 计算,建立 10,000 个连接需要 40 秒。正文还给出典型每秒 700 个连接的硬件限制。缓存连接虽有帮助,但在超过 10,000 节点的大集群中不实用,负载突增时连接抖动使吞吐下降 55%。【译注:原文把队列对容量与连接建立速率并列,二者量纲不同,应进一步核验。】

查看该段英文原文

Even with RDMA, connection-oriented transports (e.g., RC) limit scalability—establishing 10,000 connections would require 40 seconds (4 ms per connection) and exceed the hardware’s maximum queue pair capacity (typically 700 connections/second). Caching connections mitigates this but becomes impractical in large-scale clusters (more than 10,000 nodes), where connection thrashing degrades throughput by 55% under load spikes.

IV. ServerlessPD 概览。机会:ServerlessPD 中的内核态 RDMA。

查看该段英文原文

IV. O VERVIEW OF SERVERLESS PD Opportunity: kernel-space RDMA in ServerlessPD.

ServerlessPD利用内核空间RDMA [22], [23], [41],

查看该段英文原文

ServerlessPD leverages kernel-space RDMA [22], [23], [41],

[42] 实现高性能远程 fork,为低延迟 P/D 分离 LLM 推理提供支持。与需昂贵内存注册和上下文切换的传统用户态 RDMA 不同,内核态 RDMA 提供预初始化的队列对(QP)池,并通过单边 RDMA READ 直接访问远端物理内存。作者称,现代 RNIC 能绕过远端 CPU 和软件栈,达到 2 µs 延迟、最高接近 400 Gbps 的硬件带宽。

查看该段英文原文

[42] to enable high-performance remote fork, a critical enabler for low-latency disaggregated LLM inference. Unlike traditional user-space RDMA, which requires costly memory registration and context switching, kernel-space RDMA grants the pre-init Queue Pair (QP) pool of OS kernel and direct access to remote physical memory via one-sided RDMA READ operations. This capability, supported by modern RNICs, bypasses remote CPUs and software stacks, achieving ultra-low latency (2 µs) and near-theoretical maximum bandwidth of 400 Gbps (limited by RNIC hardware).

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

LLM instance LLM instance Fork Orchestr ator Virtual Memory GPU Kernel DAG Daemon Network Daemon PageFault Handler GPU GPU Handler Page fault System call B0 K0 B1 B2Start Addr Buffer 0 Buffer 1 Buffer 2 ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

Page Tables RDMA Connections RNIC One-sided RDMA GPU interception Kernel threads User mode Kernel mode Hardware ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

... 2 runTransformer(...) 3 p_describer = fork_ pare() 4 coordinator.send(p 5 runTransformer(...)

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

1 p_describer = coord or.recv() 2 fork_resume(p_des er) #D starts ( continus runTransf er(...) ... ) P in Copy meta re machine Decoding machine Virtual memory manager Memory swap driver Local Disk Memory Page RNIC Network Daemon Fn instance RDMA Network Page tables Registers Page tables Registers Remote Fork Parent instance RNIC Network Daemon Fn instance Fn instance Fn instance RNIC Fn instanceFn instance Child instance Machine 1 Machine 2 Machine 3 Kernel space Kernel space Kernel space Fetch & Restore One-sided RDMA

图 1:基于内核态 RDMA 的远程 fork。如图所示,将 RDMA 集成到操作系统内核内存管理子系统后,ServerlessPD 直接把子容器虚拟内存映射到父物理内存,无需检查点或序列化 [18]、[19]。对于需要在预填充与解码阶段快速传输数 GB 中间状态(如 KV 缓存)的场景,这一设计尤其有利。

查看该段英文原文

Fig. 1. Remote Fork based on kernel space RDMA. As shown in Fig. 1, by integrating RDMA into the OS kernel’s memory management subsystem, ServerlessPD maps child container virtual memory directly to parent physical memory, eliminating the need for checkpointing or serialization [18], [19]. This design is particularly advantageous for disaggregated LLM inference, where intermediate states (e.g., KV caches) span gigabytes of memory and demand rapid transfer between prefill and decoding phases.

远程 fork 流程。如图 2,ServerlessPD 将类似本地进程 fork 的方式扩展到分布式环境。首先生成精简容器描述符,保存父实例的页表、CPU 寄存器、cgroup 配置及 GPU kernel 状态等元数据。【原文脚注:本文的 kernel 有操作系统内核与 GPU 并行计算任务两种含义,分别以 OS kernel 和 GPU kernel 区分。】

查看该段英文原文

Remote fork execution flow. As illustrated in Fig. 2, ServerlessPD’s remote fork mechanism mimics the efficiency of local process forking while extending it to a distributed setting. The process begins by generating a condensed container descriptor that captures the parent’s metadata—including page tables, CPU registers, cgroup configurations, and GPU kernel 2 2In this paper, the term ”kernel” carries dual semantics: (1) the OS kernel refers to the core operating system component managing hardware resources; (2) a GPU kernel denotes a parallel computation task launched on GPU devices. To eliminate ambiguity, we explicitly use ”OS kernel” and ”GPU kernel” respectively throughout the paper.

PDF 第 4 页

这些状态详见 §V-A、§V-B;生成描述符时不复制内存页(①)。描述符通常只有数 KB,而完整检查点为数

查看该段英文原文

states (details in § V-A and § V-B)—without copying memory pages (①). This descriptor, typically several KB in size (vs.

GB。描述符通过一次单边 RDMA READ 传给子实例(②)。子实例内核加载描述符,重建父执行环境,使其虚拟内存映射到父物理地址(③)。执行时,子实例按需访问远端页;缺页触发内核通过 RDMA 获取页面(④),绕过分布式存储和序列化。按需获取使计算与传输重叠,避免预先复制全部状态并减小内存占用。

查看该段英文原文

GB for full checkpoints), is transferred to the child via a single one-sided RDMA READ operation (②). The child kernel reconstructs the parent’s execution environment by loading the descriptor, setting its virtual memory to map to the physical addresses of the parents (③). During execution, the child accesses remote memory pages on demand: a page fault triggers the kernel to fetch the required page via RDMA (④), bypassing distributed storage and serialization overheads. This on-demand fetching overlaps computation with data transfer, avoiding upfront state replication while ensuring minimal memory footprint.

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

LLM instance LLM instance Fork Orchestrator Virtual Memory GPU Kernel DAG Daemon Network Daemon PageFault Handler GPU GPU Handler Page fault System call B0 K0 B1 B2Start Addr Buffer 0 Buffer 1 Buffer 2 ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

Page Tables RDMA Connections RNIC One-sided RDMA GPU interception Kernel threads User mode Kernel mode Hardware ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

1 def runTransformer(...): ... 2 runTransformer(...) 3 p_describer = fork_prepare() 4 coordinator.send(p_describer) 5 runTransformer(...)

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

1 p_describer = coordinator.recv() 2 fork_resume(p_describer) #D starts ( continus runTransformer(...) ... ) P instance D instance Copy meta Transfer meta by network Fetch & Restore 4 One-sided RDMA Invoke Memory pages Coordinator Prefill machine Decoding machine Control path Data path Virtual memory manager Memory swap driver Local Disk Memory Page RNIC Network Daemon Fn instance RDMA Network Page tables Registers Page tables Registers Remote Fork Parent instance RNIC Network Daemon Fn instance Fn instance Fn instance RNIC Fn instanceFn instance Child instance Machine 1 Machine 2 Machine 3 Kernel space Kernel space Kernel space Fetch & Restore One-sided RDMA hvma_struct hvma_struct B0 K0 B1 B2Page Table DRAM GPU Kernel DAG Regular Pages GPUDirect RDMA RDMA Page Table hvma_struct hvma_struct RDMA keys RPC Fetch keys Parent instance Child instance

图 2:左侧为预填充与解码实例的简化代码,右侧为远程 fork 流程。

查看该段英文原文

Fig. 2. Left: A simplified code of prefill instances and decoding instances, right: remote fork execution flow.

A. 挑战与解决办法。如何让远程 fork 高效整合 GPU 上下文?NVIDIA cuda-checkpoint [43] 和 Singularity 的全局暂停方案 [44] 等现有 GPU C/R 机制面临权衡:要么暂停 GPU 执行以保证状态一致性、牺牲吞吐,要么为并发执行容忍不一致、损害正确性。

查看该段英文原文

A. Challenges and Solutions How to achieve efficient GPU context integration for remote fork? Existing GPU C/R mechanisms, such as NVIDIA’s cuda-checkpoint [43] and Singularity’s stop-of-the-world approach [44], face a fundamental trade-off: either halt GPU execution to ensure state consistency (sacrificing throughput) or tolerate inconsistency for concurrent execution (compromising correctness).

解决办法:通过 GPU kernel DAG 透明追踪执行。受 PhOS [21] 启发,ServerlessPD 用运行时 GPU kernel 有向无环图(DAG)描述执行语义,以支持非阻塞检查点和部分状态恢复。系统拦截 GPU 驱动 API,建立 kernel 与内存 buffer(例如 KV 缓存页)的依赖图。该 DAG 支持用于增量检查点的软件写时复制(soft CoW),仅复制被修改的 buffer;解码恢复时则按需加载所需状态。

查看该段英文原文

Solution: transparent GPU execution tracking via GPU kernel DAG. Inspired by PhOS [21], ServerlessPD introduces its runtime GPU kernel Directed Acyclic Graph (DAG) to model GPU execution semantics, enabling non-blocking checkpointing and partial state recovery. By intercepting GPU driver APIs, ServerlessPD constructs a DAG that tracks dependencies between GPU kernels and memory buffers (e.g., KV cache pages). This DAG allows soft copy-on-write (CoW) for incremental checkpointing—only modified buffers are copied—and on-demand loading for partial state recovery during decoding.

例如,GPU kernel 写入 KV 缓存 buffer 后,DAG 将其标为脏状态,并在下一次检查点时触发 CoW。同时,解码实例仅经 RDMA 获取稳定、未被修改的 buffer,以避免一致性问题。

查看该段英文原文

For example, when a GPU kernel writes to a KV cache buffer, the DAG marks it as ”dirty,” triggering a CoW operation during the next checkpoint. Concurrently, decoding instances fetch only stable (unmodified) buffers via RDMA, avoiding consistency violations.

如何支持弹性扩缩容中的高速 KV 缓存传输?RDMA 虽然延迟低,传统面向连接的传输仍有扩展瓶颈。即使使用连接池,频繁注册和注销 buffer 也会给每个 4 KB 页增加 1.2 ms 开销,抵消 RDMA 的优势。把 P/D 放在同机虽有帮助,却会损失异构集群的成本优势。

查看该段英文原文

How to enable high-speed KV cache transfer for elastic scaling? While RDMA offers low-latency data transfer, traditional connection-oriented transports impose scalability bottlenecks. Even with connection pooling, frequent buffer registration/deregistration adds 1.2 ms overhead per 4 KB page, negating RDMA’s latency benefits. Co-locating P and D instances on the same machine mitigates this but sacrifices the cost efficiency of heterogeneous clusters.

解决办法:使用动态连接传输(DCT)扩展 RDMA。受 KRCORE [23] 启发,ServerlessPD 利用 DCT [45] 的 12 字节 key 实现无连接通信。父预填充实例预先将 CPU/GPU 异构虚拟内存区(HVMA)以 DCT key 注册,子解码实例无需逐连接建立,就能通过单边 RDMA READ 访问 KV 缓存。RNIC 根据 key 检查访问权限;父实例回收 HVMA(例如缓存淘汰)后,拒绝相应请求。

查看该段英文原文

Solution: scalable RDMA via Dynamic Connected Transport (DCT). ServerlessPD retrofits DCT [45] inspired by KRCORE [23], an RDMA feature enabling connectionless communication through 12-byte keys. Each parent prefill instance pre-registers its heterogeneous virtual memory areas (HVMAs) with a DCT key, allowing child decoding instances to access KV caches via one-sided RDMA READ without per-connection setup. The RNIC hardware validates access permissions using the DCT key, rejecting requests if the parent reclaims the HVMA (e.g., after KV cache eviction).

如何决定最佳解码启动点?过早启动可能取得尚不稳定的 KV 缓存并需要重试;过晚则浪费 GPU 周期等待预填充完成。固定预填充完成比例(如 80%)等启发式不能适应动态负载。

查看该段英文原文

How to determine the optimal launch point for decoding instances? Launching decoding instances too early risks fetching unstable KV caches (requiring retries), while late launches waste GPU cycles waiting for prefill completion. Existing schedulers rely on heuristics like fixed prefill completion thresholds (e.g., 80%), but these fail to adapt to dynamic workloads.

解决办法:动态启动点算法。调度器估计三项时间:(1)依据 kernel DAG 推断的剩余预填充计算时间;(2)获取描述符和初始化轻量容器等解码实例启动时间;(3)根据稳定缓存大小和 RDMA 带宽估计的 KV 缓存传输时间。

查看该段英文原文

Solution: adaptive fork timing via dynamic launch-point algorithm. ServerlessPD’s scheduler employs adynamic launchpoint algorithm that estimates three key parameters: (1) prefill preparation time (remaining computations inferred from the kernel DAG), (2) decoding instance startup time (descriptor fetch, lean container initialization), and (3) KV cache transfer time (based on stable cache size and RDMA bandwidth).

这些估计通过历史性能数据及分布式键值存储(如 etcd [46])中的实时遥测不断修正。

查看该段英文原文

These estimates are refined using historical performance data and real-time telemetry from the distributed key-value store (e.g., etcd [46]).

B. 系统架构。ServerlessPD 采用图 3 的分层设计,为 P/D 分离 LLM 推理提供软硬件协同管理。

查看该段英文原文

B. System Architecture The ServerlessPD architecture adopts a layered design to enable hardware-software co-management for disaggregated LLM inference, as shown in Fig. 3.

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

LLM instance LLM instance Fork Orchestrator Virtual Memory GPU Kernel DAG Daemon Network Daemon PageFault Handler GPU GPU Handler Page fault System call B0 K0 B1 B2Start Addr Buffer 0 Buffer 1 Buffer 2 ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

Page Tables RDMA Connections RNIC One-sided RDMA GPU interception Kernel threads User mode Kernel mode Hardware ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

1 def runTransformer(...): ... 2 runTransformer(...) 3 p_describer = fork_prepare() 4 coordinator.send(p_describer) 5 runTransformer(...)

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

1 p_describer = coordinator.recv() 2 fork_resume(p_describer) #D starts ( continus runTransformer(...) ... ) P instance D instance Copy meta Transfer meta by network Fetch & Restore4 4 One-sided RDMA Invoke Memory pages Coordinator Prefill machine Decoding machine Control path Data path Virtual memory manager Memory swap driver Local Disk Memory Page RNIC Network Daemon Fn instance RDMA Network Page tables Registers Page tables Registers Remote Fork Parent instance RNIC Network Daemon Fn instance Fn instance Fn instance RNIC Fn instanceFn instance Child instance Machine 1 Machine 2 Machine 3 Kernel space Kernel space Kernel space Fetch & Restore One-sided RDMA LLM instance Buffer 0 Buffer 1 Buffer 2 B0 K0 B1 B2 Stream 0 Start GPU Application code PyTorch/Tensflow/...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

GPU Driver APIs GPU Context Stream 0 Stream 1 K0 K1 K2 K0 K1 Kernel queue GPU Kernel DAG Daemon Stream 1 Virtual Memory Traditional GPU Runtime GPU Kernel DAG Runtime User space Hardware OS kernel space Interception

图 3:ServerlessPD 架构。用户态 LLM 实例通过系统调用发起计算,利用 GPU 拦截将算子调度与物理资源绑定解耦。在具有层次页表的内核态虚拟内存子系统协调下,P/D 实例通过 CoW 内存语义共享虚拟化 GPU 上下文。GPU Kernel DAG Daemon 动态协调不同 GPU buffer(B0-B2)上的执行线程,经 RNIC 的单边 RDMA 同步 KV 缓存,避免 CPU 中转数据。

查看该段英文原文

Fig. 3. Architecture of ServerlessPD. At the user space, LLM instances initiate computation tasks via system calls while leveraging GPU interception mechanisms to decouple operator scheduling from physical resource binding. This abstraction allows prefill and decoding instances to share virtualized GPU contexts through copyon-write memory semantics, as orchestrated by the kernelmode virtual memory subsystem with hierarchical page tables. The GPU Kernel DAG Daemon dynamically coordinates execution threads across asymmetric GPU buffers (B0-B2), employing one-sided RDMA via RNIC connections to bypass CPU-mediated data transfers for KV cache synchronization.

跨层协调解决关键延迟瓶颈:实例分叉时,缺页处理器触发按需内存分配,以缓解冷启动

查看该段英文原文

Critical latency bottlenecks are addressed through cross-layer coordination: page fault handlers trigger on-demand memory allocation during instance forking to mitigate cold-start

PDF 第 5 页

开销;内核态 buffer 切换通过硬件管理的地址重映射消除冗余状态复制。守护进程管理的网络栈在 P/D 集群间维护持久 RDMA 连接,实现直接 GPU 到 GPU 的批量状态传输,避免先暂存到主机内存。

查看该段英文原文

penalties, while kernel-space buffer switching by GPU Kernel (K0) eliminates redundant state duplication through hardwaremanaged address remapping. Notably, the daemon-mediated network stack establishes persistent RDMA connections between prefill and decoding clusters, enabling direct GPU-to- GPU bulk state transfers that avoid intermediate host memory staging.

V. 详细设计。A. 感知 GPU 的 Fork Prepare。准备阶段(图 2 ①)在内存中生成容器描述符,捕获 CPU/GPU 执行状态。描述符包含跨机器恢复所需的 cgroup 配置、namespace 标志、CPU 寄存器、页表、CPU/GPU 异构虚拟内存区(HVMA)及已打开文件信息。与传统 C/R 不同,它故意不包含内存页,因此从 GB 级缩减到 KB 级,能够快速生成和传输。

查看该段英文原文

V. D ETAILED DESIGN A. GPU-Aware Fork Prepare The fork prepare phase (Fig. 2 ①) in ServerlessPD generates an in-memory container descriptor that captures the execution state of both CPU and GPU contexts to enable seamless remote forking. This descriptor consolidates metadata critical for restoring execution across machines, including cgroup configurations, namespace flags, CPU register values, page tables, CPU/GPU heterogeneous virtual memory areas (HVMAs), and opened file information. Unlike traditional checkpoint/restore (C/R) mechanisms, the descriptor intentionally omits memory pages, reducing its size by orders of magnitude (KB vs. GB) and enabling rapid generation and transfer.

父容器及描述符会保持存活,直到无服务器平台通过 fork resume 阶段(图 2 ③)显式回收,以避免分布式执行中的悬空引用。与将全部内存序列化成文件的 C/R 不同,该方案只处理轻量元数据,并借助 RDMA 直接访问内存。

查看该段英文原文

The parent container and its descriptor remain alive until explicitly reclaimed by the serverless platform via fork resume phase (Fig. 2 ③), ensuring no dangling references during distributed execution. This approach diverges from C/R techniques that serialize entire memory states into files, instead prioritizing lightweight metadata and leveraging RDMA for direct memory access.

运行时 GPU kernel DAG。为捕获 GPU 状态,ServerlessPD 在操作系统内核态维护受 PhOS [21] 启发的 GPU kernel DAG,以 buffer 句柄和 kernel 关系描述执行依赖。DAG 追踪 kernel 对 CUDA 内存对象等 buffer 的操作,以及 CPU/GPU buffer 之间的依赖,供状态传输去重等操作使用。

查看该段英文原文

Runtime GPU kernel DAG. For GPU state capture, ServerlessPD integrates an OS kernel space GPU kernel DAG strongly inspired by PhOS [21]—a runtime data structure that models GPU execution dependencies through buffer handles and GPU kernel relationships. This DAG tracks how GPU kernels manipulate memory buffers (e.g., CUDA memory objects), including dependencies between CPU and GPU buffers, which is essential for deduplication during state transfer.

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

LLM instance LLM instance Fork Orchestrator Virtual Me GPU Kernel DAG Page fault System call B0 K0 B1 B2Start Addr ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

Page Tables GPU interception User mode Kernel m ... 1 def runTransformer(...): ...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

2 runTransformer(...) 3 p_describer = fork_prepare() 4 coordinator.send(p_describer) 5 runTransformer(...)

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

1 p_describer = coordinator.recv() Coordinator Prefill machine Virtual memory manager Memory swap driver Local Disk Memory Page RNIC Network Daemon Fn instance RDMA Network RNIC Network Daemon Fn instance Fn instance Fn instance RNIC Fn instanceFn instance Machine 1 Machine 2 Machine 3 Kernel space Kernel space Kernel space One-sided RDMA LLM instance Buffer 0 Buffer 1 Buffer 2 B0 K0 B1 B2 Stream 0 Start GPU Application code PyTorch/Tensflow/...

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

GPU Driver APIs GPU Context Stream 0 Stream 1 K0 K1 K2 K0 K1 Kernel queue GPU Kernel DAG Daemon Stream 1 Virtual Memory Traditional GPU Runtime GPU Kernel DAG Runtime User space Hardware OS kernel space Interception

图 4:GPU kernel DAG 运行时原理。DAG 显式描述 kernel 与 buffer 之间的数据流,从而识别稳定、不会再被待执行 kernel 修改且可安全传输的 buffer,支持在不暂停 GPU 执行的情况下协调检查点。

查看该段英文原文

Fig. 4. The principle of GPU kernel DAG runtime. As shown in Fig. 4, the DAG explicitly models data flow between GPU kernels and buffers. This granular tracking allows ServerlessPD to coordinate checkpointing without halting GPU execution, as the DAG identifies which buffers are stable (i.e., no longer modified by pending kernels) and safe to transfer.

DAG 通过拦截 GPU API 维护。应用调用 cudaLaunchKernel 等驱动 API 时,ServerlessPD 分析 kernel 参数和 buffer 地址并更新 DAG:发起 kernel 时添加节点,完成时移除节点。这样,GPU 执行语义与底层上下文管理解耦,恢复时可复用共享池中预初始化的上下文,避免重新创建上下文的开销,并支持未修改的 GPU 应用。

查看该段英文原文

The DAG is maintained through GPU API interception. When an application invokes a GPU driver API (e.g., cudaLaunchKernel), ServerlessPD intercepts the call, analyzes parameters such as kernel arguments and buffer addresses, and updates the DAG accordingly. For instance, launching a kernel appends a node to the DAG, while kernel completion triggers node removal. This mechanism decouples GPU execution from low-level context management, enabling the reuse of pre-initialized GPU contexts from a shared pool during restoration. By abstracting execution semantics into the DAG, ServerlessPD avoids the overhead of recreating GPU contexts and ensures compatibility with unmodified GPU applications.

B. 感知 GPU 的 Fork Resume。ServerlessPD 通过三项协同机制重建远程容器的 CPU/GPU 执行状态:经 RDMA 获取描述符、轻量容器优化及 GPU 上下文复用。

查看该段英文原文

B. GPU-Aware Fork Resume ServerlessPD resumes remote containers by efficiently reconstructing both CPU and GPU execution states through three synergistic mechanisms: descriptor fetching via RDMA, lean container optimization, and GPU context reuse.

通过单边 RDMA 快速获取描述符。描述符是父执行状态的元数据快照。传统 RPC 方式存在内存复制开销;ServerlessPD 将描述符放入连续内存区,用单边 RDMA READ 直接访问。系统先通过认证 RPC 验证描述符标识符,再提供物理地址与大小。正文称认证增加亚毫秒开销;避免传统序列化和文件 I/O 后,描述符获取延迟可降低若干数量级。

查看该段英文原文

Fast descriptor fetch with one-sided RDMA. Fetching the container descriptor—a metadata snapshot of the parent’s execution state—is optimized using one-sided RDMA READ to minimize latency. While a naive RPC-based approach incurs non-trivial memory copy overhead (e.g., several KB for moderate-sized containers), ServerlessPD serializes the descriptor into a contiguous memory region and leverages RDMA’s kernel-bypass capability for direct access. To ensure security, the system employs an authentication RPC to validate descriptor identifiers before granting access to the descriptor’s physical address and size. This lightweight authentication adds negligible overhead (sub-millisecond) compared to the descriptor transfer itself, which dominates the fetch time. By avoiding traditional serialization and file I/O, ServerlessPD reduces descriptor retrieval latency by orders of magnitude, critical for meeting serverless inference deadlines.

轻量容器加速容器化。恢复子容器分两步:(1)重建父隔离环境,包括 cgroup 与 namespace;(2)切换 CPU 寄存器、页表和 I/O 描述符等执行状态。状态切换类似本地 fork,通常为亚毫秒级,而传统容器化有数十毫秒开销。

查看该段英文原文

Accelerated containerization with lean containers. Resuming a child container involves two steps: (1) reconstructing the parent’s isolation environment (cgroups, namespaces) and (2) switching execution states (CPU registers, page tables, I/O descriptors). While state switching is fast (sub-millisecond) due to its similarity to local fork mechanisms, containerization traditionally incurs tens of milliseconds of overhead.

ServerlessPD 使用对 [24] 的扩展——广义轻量容器,在分布式池内预先配置最小隔离环境。恢复时选取满足父实例需求的预热容器,省去昂贵的运行时配置,将容器化延迟降到数毫秒。

查看该段英文原文

ServerlessPD addresses this by integrating generalized lean containers, an extension of [24], which pre-configures minimal isolation environments in a distributed pool. Before resuming a parent, ServerlessPD selects a pre-warmed lean container matching the parent’s requirements, bypassing costly runtime configuration. This approach reduces containerization latency to a few milliseconds, aligning with the low-latency demands of serverless workflows.

C. KV 缓存传输。ServerlessPD 使用内核态 RDMA,在预填充(P)和解码(D)实例之间直接、低延迟地传输 KV 缓存等中间状态,

查看该段英文原文

C. KV Cache Transmission ServerlessPD leverages kernel-space RDMA to enable direct, low-latency transmission of intermediate states (e.g., KV cache) between prefill (P) and decoding (D) instances,

PDF 第 6 页

绕过传统软件栈和第三方存储。这一设计面向 P/D 分离 LLM 推理:预填充产生的 KV 缓存必须快速交给解码实例,以继续生成 token。

查看该段英文原文

bypassing traditional software stacks and third-party storage. This design is uniquely tailored to the PD-disaggregated LLM inference paradigm, where prefill instances generate KV caches that must be rapidly transferred to decoding instances for token generation.

用于可扩展通信的 DCT。受 KRCORE [23] 启发,ServerlessPD 使用动态连接传输(DCT),提供可靠的无连接通信语义。不同于 RC(可靠连接),单个 DCT 队列对(DCQP)可凭 12 字节 key 与多个远端目标通信,无需逐连接建立。内核网络守护进程维护小型 DCQP 池(每 CPU 核一个),并通过受 FaSST [47] 启发的内核态轻量 RPC,在描述符认证时交换 key。这减少了扩展到数千解码实例时的连接管理开销。正文称 4 KB 页传输延迟为 1 µs;虽对 32 B 等小传输有额外成本,但 ≥4 KB 的 KV 缓存传输可接近线速。

查看该段英文原文

DCT for scalable communication. ServerlessPD adopts Dynamic Connected Transport (DCT) inspired by KR- CORE [23], an RDMA feature that provides connectionless communication semantics while preserving reliability. Unlike traditional RC (Reliable Connection) modes, DCT allows a single DCT Queue Pair (DCQP) to communicate with multiple remote targets using 12-byte connection keys, eliminating per-connection setup overhead. The kernel’s network daemon manages a small DCQP pool (one per CPU core) to handle RDMA requests, while a lightweight kernel-space RPC mechanism (inspired by FaSST [47]) exchanges DCT keys during descriptor authentication. This hybrid approach minimizes connection management overhead—critical for scaling to thousands of concurrent decoding instances—while leveraging DCT’s hardware-accelerated data transfers (1 µs latency for 4 KB pages). Though DCT incurs overhead for small transfers (e.g., 32B), ServerlessPD’s workload is dominated by large KV cache transfers (≥4 KB), where DCT achieves near-line bandwidth utilization.

异构虚拟内存。如图 5,ServerlessPD 在内核态统一 CPU/GPU 异构内存寻址,使解码实例透明访问预填充产生的 KV 缓存。

查看该段英文原文

Heterogeneous virtual memory. As shown in Fig. 5, ServerlessPD unifies CPU and GPU heterogeneous memory addressing in kernel space, enabling decoding instances to transparently access KV caches generated by prefill instances.

预填充时,GPU kernel DAG 跟踪依赖与 buffer 状态。在预填充结束前,系统把执行状态捕获到描述符,并经 RDMA 传给解码实例。解码实例据此恢复,经 RDMA 将其虚拟内存映射到预填充实例的物理内存。解码过程中若遇到缺失 KV 页(例如增量生成 token 时),缺页触发内核通过单边 RDMA READ 直接从预填充实例内存获取该页。

查看该段英文原文

When a prefill instance initiates prefill, its GPU kernel DAG tracks GPU kernel dependencies and buffer states. Before the prefill instance completes, ServerlessPD captures its execution state into a descriptor and transmits it to decoding instances via RDMA. The decoding instance resumes execution using this descriptor, mapping its virtual memory to the prefill instance’s physical memory via RDMA. During decoding, if a decoding instance encounters a missing KV cache page (e.g., due to incremental token generation), it triggers an on-demand page fault, which the kernel resolves by fetching the page directly from the prefill instance’s memory using one-sided RDMA READ.

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

hvma_struct hvma_struct B0 K0 B1 B2Page Table DRAM GPU Kernel DAG Regular Pages GPUDirect RDMA RDMA Page Table hvma_struct hvma_struct RDMA keys RPC Fetch keys Parent instance Child instance

图 5:CPU/GPU 异构虚拟内存子系统将子实例虚拟地址映射到远端内存的原理。

查看该段英文原文

Fig. 5. The principle of the CPU/GPU heterogeneous virtual memory subsystems to map children’s virtual addresses to remote memory.

预取与缓存。RDMA 延迟高于本地内存(3 µs 对 100 ns),系统采用两项优化:(1)缺页时预取相邻 KV 缓存页;作者实验认为额外预取一页(4 KB)可平衡收益与内存开销。(2)在内核缓存近期 KV 缓存页映射,使从同一预填充实例分叉的后续解码实例能以 CoW 方式复用已缓存页表。

查看该段英文原文

Prefetching and caching optimizations. To mitigate RDMA’s higher latency compared to local memory (3 µs vs. 100 ns), ServerlessPD employs two optimizations: (1) Prefetching fetches adjacent KV cache pages upon page faults, reducing sequential access latency. Empirical analysis shows prefetching one adjacent page (4 KB) balances performance gains and memory overhead. (2) Page Table Caching retains recently accessed KV cache mappings in the kernel, allowing subsequent decoding instances forking the same prefill instance to reuse cached page tables in a copy-on-write manner.

D. 启动点优化。集群调度器采用启动时间优化算法,在预填充进度、KV 缓存可用性及 GPU 利用率之间平衡,决定解码实例最佳启动时机。调度器作为去中心化控制器处理路由器发来的加载任务,使用模型初始化与状态传输两类估计器。

查看该段英文原文

D. Launch-Point Optimization ServerlessPD’s cluster scheduler implements a startup-timeoptimized model scheduling algorithm to determine the optimal timing for launching decoding (D) instances, balancing prefill progress, KV cache availability, and GPU resource utilization. The scheduler operates as a decentralized controller that processes loading tasks from the request router, leveraging two core estimators: model initialization estimator and state transfer estimator.

模型初始化估计器依据 GPU kernel 占用率及 CUDA stream 争用,预测从预分配池构建执行上下文的时间。状态传输估计器依据可用 RDMA 带宽和 PCIe 拓扑,估算迁移 KV 切片的开销。每次决策后,将 GPU SM 利用率、RDMA 通道占用等状态原子更新到 etcd [46] 等分布式键值存储,支持容错恢复与亚毫秒级集群状态同步。

查看该段英文原文

The model initialization estimator predicts the time required to construct GPU execution contexts from pre-allocated memory pools, accounting for current GPU kernel occupancy and CUDA stream contention. Simultaneously, the state transfer estimator calculates the overhead of migrating KV cache slices between prefill and decoding instances, factoring in RDMA bandwidth availability and PCIe topology constraints. After each decision, the server’s state (GPU’s SM utilization, RDMA channel occupancy, ...) is atomically updated in a distributed key-value store (e.g., etcd [46]), enabling fault tolerance and seamless recovery, enabling sub-millisecond state synchronization across the cluster.

调度器将两类估计器与硬件遥测结合,实施三阶段算法(算法 1)。

查看该段英文原文

ServerlessPD’s cluster scheduler implements a three-phase scheduling algorithm (Algorithm 1) through synergistic coordination between two core estimators and hardware telemetry.

阶段 1:三维时间估计(步骤 1-3c)。首先从 DAG 跟踪器动态查询剩余预填充时间 T_prefill,其根据 SM 占用计数追踪剩余计算。对每个候选 GPU,估计当前 stream 争用下的上下文初始化时间 T_init^j,以及考虑 PCIe 交换机拥塞的 KV 传输时间 T_xfer^j,再计算能够开始解码的就绪时间 T_ready^j。

查看该段英文原文

The algorithm operates as follows: Phase 1: Three-Dimensional Time Estimation (Algorithm Steps 1-3c) establishes the temporal foundation for scheduling decisions. The prefill preparation time (Tprefill) is dynamically queried from the kernel DAG tracker (Step 1), which monitors residual computations in real-time through SM occupancy counters. For each candidate GPU (Step 2), the model initialization estimator calculates T j init (Step 3a) by profiling memory pool allocation latency under current CUDA stream contention, while the state transfer estimator computes T j xfer (Step 3b) using RDMA bandwidth predictions that account for PCIe switch congestion. These parameters feed into the readiness time calculation T j ready (Step 3c), which determines when each candidate GPU could begin decoding.

阶段 2:选择最佳目标(步骤 4-5)。先选择就绪时间最小的 GPU:g* = argmin_j t_ready^j(式 1);再决定启动时刻:t* = max(0, T_prefill - T_xfer*)(式 2)。

查看该段英文原文

Phase 2: Optimal Target Selection (Steps 4-5) applies constrained optimization with two sequential decisions: g∗ = arg min gj ∈Gcand tj ready (1) t∗ = max (0, T prefill − T ∗ xfer) (2)

PDF 第 7 页

算法 1:ServerlessPD 启动点调度器。输入:预填充实例 P_i、集群状态 C、KV 缓存大小 K;输出:目标 GPU g* 与启动时刻 t*。阶段 1:查询剩余预填充时间,筛选具 RDMA 连通性的候选 GPU,逐一估计 T_init^j 和 T_xfer^j,并计算 t_ready^j = max(T_prefill, T_init^j + T_xfer^j)。阶段 2:选取 t_ready 最小的 GPU,并令 t* = max(0, T_prefill - T_xfer*)。阶段 3:在 etcd 中锁定目标 GPU,经 DAGDaemon 下发启动命令,更新集群遥测状态,返回 g*、t*。式 1 的就绪时间来自步骤 3c;式 2 的传输时间对应所选 GPU。原文伪代码及精确记号请切换英文或查看 PDF。

查看该段英文原文

Algorithm 1: ServerlessPD Launch-Point Scheduler Input: Prefill instance Pi, Cluster state C, KV cache size K Output: Target GPU g∗, Launch time t∗ // Phase 1: Three-Dimensional Time Estimation 1. Query DAG tracker for residual prefill time: Tprefill ← Pi.getResidualTime() 2. Retrieve candidate GPUs with RDMA connectivity: Gcand ← FilterGPUs(C, RDMA=True) 3. foreach gj ∈ Gcand do a. Estimate GPU context initialization: T j init ← ModelInitEstimator(gj) b. Calculate KV cache transfer time: T j xfer ← TransferEstimator(Pi, gj, K) c. Compute ready time: tj ready ← max(Tprefill, T j init + T j xfer) end // Phase 2: Optimal Target Selection 4. Select GPU with minimal ready time: g∗ ← arg mingj ∈Gcand (tj ready) 5. Determine launch timestamp: t∗ ← max(0, Tprefill − T ∗ xfer) // Phase 3: State Synchronization 6. Lock g∗ in distributed KV store: etcd.Put(g∗.id, ”locked”) 7. Dispatch launch command via kernel daemon: DAGDaemon.Send(g∗, t∗, K) 8. Update GPU telemetry: C ← UpdateClusterState(C, g∗) return g∗, t∗ where tj ready in Equation 1 is computed from Step 3c, and T j xfer in Equation 2 denotes the transfer time specific to the selected GPU g∗. This decoupled formulation retains the original scheduling semantics while improving readability.

式 2 的 max 保证启动时间非负。通过页预取,让步骤 3b 的 KV 缓存传输与步骤 1 的剩余预填充计算重叠。

查看该段英文原文

The max operator in Equation 2 ensures non-negative launch timestamps, allowing KV cache transfers (from Step 3b) to overlap with residual prefill computations (from Step 1) through ServerlessPD’s page prefetching mechanism.

阶段 3:状态同步(步骤 6-8)。通过原子更新分布式 GPU 注册表,并由内核守护进程下发命令完成调度。正文称,DCT 使多个 NIC 队列并行传输 KV 缓存,内存子系统维护的页表缓存复用则减少扩缩容时的冗余传输。

查看该段英文原文

Phase 3: State Synchronization (Steps 6-8) finalizes the scheduling decision through atomic updates to the distributed GPU registry (Step 6) and kernel daemon-mediated command dispatching (Step 7). The latter leverages DCT connections to parallelize KV cache transfers across multiple NIC queues, while cached page table reuse (maintained by the memory subsystem) eliminates redundant data transfers during autoscaling.

VI. E VALUATION

A. 实验设置。测试平台含三台 GPU 服务器,由 100 Gbps Mellanox SB7890 InfiniBand 交换机互联。每台有三张 NVIDIA V100-32GB GPU、187 GB DDR4 和双路 Intel Xeon Gold 6132,网卡为 100 Gbps ConnectX-4 MCX456A。启用 GPUDirect RDMA,绕过主机内存直接访问显存。控制面运行 CentOS 7.4、Linux 4.15.0、NVIDIA 驱动 550.144.03、CUDA 12.4;集中 HDD 存储服务器经同一网络提供模型存储。

查看该段英文原文

A. Experiment Setup Our experimental testbed comprises three GPU servers interconnected via a 100 Gbps Mellanox SB7890 InfiniBand switch. Each server is equipped with three NVIDIA V100- 32GB GPUs, 187GB DDR4 memory, and dual Intel Xeon Gold 6132 CPUs. The servers leverage 100 Gbps ConnectX-4 MCX456A InfiniBand RNICs for high-speed communication, with GPUDirect RDMA enabled to bypass host memory and directly access GPU device memory. The control plane runs on CentOS 7.4 (Linux kernel 4.15.0) with NVIDIA driver 550.144.03 and CUDA 12.4. A centralized storage server with HDDs provides shared model storage over the same 100 Gbps InfiniBand network.

实验使用 FP32 的 OPT-2.7B、OPT-6.7B、LLaMA-2-7B 和 LLaMA-3-8B,均预先放入存储服务器以排除模型加载开销。作者称这些模型适合 32 GB 显存,并认为结论可推广到更大模型。【译注:这是原文主张;8B 参数仅权重按 FP32 估算就约 32 GB,KV 和运行时余量需进一步核验。】

查看该段英文原文

To evaluate ServerlessPD, we test four widely-used LLMs under FP32 precision: OPT-2.7B, OPT-6.7B, LLaMA-2-7B, and LLaMA-3-8B, all preloaded onto the storage server to eliminate model loading overhead. While these models fit within the 32GB GPU memory limit, we argue that our findings generalize to larger LLMs.

数据来自 GSM8K [48] 人工编写数学题及 ShareGPT [49] 多语言对话,与前作 [10] 一致。输入截断至最多 2048 token,各来源随机抽取 4,000 条混合。工作负载使用 Azure LLM Serverless Trace [1] 生成。

查看该段英文原文

For datasets, we use GSM8K [48], a collection of humanauthored math problems, and ShareGPT [49], a multilingual conversational dataset derived from GPT4 interactions, which are same as previous work [10]. Input sequences are truncated to a maximum of 2048 tokens to match model constraints. To emulate real-world inference workloads, we create a mixed dataset by randomly sampling 4,000 examples from each source. Workloads are generated using the Azure LLM Serverless Trace [1], a representative serverless LLM benchmark.

通过 Gamma 分布生成变异系数 CV=8 的突发请求,缩放到目标每秒请求数(RPS)。请求随机分配给四种模型,并强制同一请求的 P/D 实例位于不同物理服务器,以测试跨机协调。

查看该段英文原文

We synthesize bursty request patterns with a coefficient of variation (CV=8) via Gamma distribution, scaling the trace to target requests per second (RPS). Each request is randomly assigned to one of the four models, and to stress-test crossserver coordination, we enforce that prefill (P) and decoding (D) instances for the same request always run on different physical servers.

比较四种基线:(1)PhOS-local [21] 使用感知 GPU 的 CRIU [50]、内存 tmpfs 和单边 RDMA 传输检查点;(2)PhOS-remote 用支持 RDMA 的 Ceph [51] 替代 tmpfs;(3)ServerlessLLM [10] 使用 P/D 分离、本地磁盘模型加载及未优化 KV 传输;(4)Mooncake [2] 使用其 KV 传输引擎。所有系统采用本文的广义轻量容器,以排除容器化差异。

查看该段英文原文

We compare ServerlessPD against four baselines: (1)PhOS- local [21] uses the state-of-the-art of GPU-aware CRIU [50] with in-memory tmpfs and one-sided RDMA for checkpoint transfers3, (2) PhOS-remote replaces tmpfs with Ceph [51], a production-grade RDMA-optimized distributed filesystem, (3) ServerlessLLM [10] implements PD separation with local disk model loading and unoptimized KV cache transfers, (4) Mooncake [2] adopts PD separation with a proprietary transfer engine for KV cache synchronization. To ensure fair comparison, all systems use our generalized lean container to mask containerization overhead.

基线遵循原设计:PhOS 在预填充结束、生成首 token 后检查点;ServerlessLLM 和 Mooncake 跨服务器依次启动 P/D。ServerlessPD 默认按需取页、预取一页,除特别说明外不缓存。实验重复 10 次,报告均值及 95% 置信区间。

查看该段英文原文

Baseline configurations follow their original designs: PhOS variants checkpoint after prefill (first token generation), while ServerlessLLM and Mooncake sequentially launch prefill and decoding instances across servers. ServerlessPD is configured with on-demand page fetching (prefetch size=1) and no caching unless specified. All experiments repeat 10 times under controlled conditions to ensure statistical significance, with results reported as means and 95% confidence intervals.

B. 远程 fork 性能。从容器准备、实例启动、端到端效率和优化贡献四方面,比较 ServerlessPD 与 PhOS-local、PhOS-remote、ServerlessLLM、Mooncake。【原文脚注 3:因测试平台缺少所需 GPU 固件支持,未评估 NVIDIA cuda-checkpoint [43]。】

查看该段英文原文

B. Remote Fork Performance To evaluate the performance of GPU-aware remote fork in ServerlessPD, we conduct a comprehensive analysis across four key metrics: container preparation time, instance startup latency, end-to-end execution efficiency, and optimization step impacts. The experiments compare ServerlessPD against state-of-the-art serverless systems (PhOS-local, PhOS-remote, ServerlessLLM, and Mooncake) using four LLM models 3Due to hardware limitations in our testbed (lack of GPU firmware support), we exclude NVIDIA’s cuda-checkpoint [43] from our evaluation.

作者还引用前作 [21] 对 PhOS 与 cuda-checkpoint 的比较,作为未纳入该基线的理由。【译注:本文未直接测试,不能将该理由视为本文的独立实验证明。】

查看该段英文原文

This omission is further justified by prior work [21], which conclusively demonstrates PhOS’s superiority over cuda-checkpoint.

PDF 第 8 页

实验涵盖 OPT-2.7B/6.7B、LLaMA-2-7B/3-8B 与混合实际负载,各系统均使用广义轻量容器排除容器化开销。

查看该段英文原文

(OPT-2.7B/6.7B, LLaMA-2-7B/3-8B) under mixed real-world workloads. All systems leverage our generalized lean container mechanism to eliminate containerization overhead.

237%237%//D0$%//D0$%

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

3UHSDUH7LPHPVORJ 3K26ORFDO3K26UHPRWH6HUYHUOHVV3' (a) Prepare Time Analysis 237%237%//D0$%//D0$%

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

6WDUWXS7LPHPV (b) Startup Latency Breakdown 237%237%//D0$%//D0$%

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

(QGWR(QG7LPHV 3K26ORFDO 3K26UHPRWH 6HUYHUOHVV//0 0RRQFDNH 6HUYHUOHVV3' (c) End-to-End Execution %DVHOLQH.HUQHO5'0$/HDQ3UHIHWFK&DFKH

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

7KURXJKSXW536 237% 237% //D0$% (d) Optimization Contributions

图 6:远程 fork 性能。准备时间:图 6(a) 采用对数尺度比较。正文报告,467 MB 容器的准备时间为 11 ms,PhOS-local 为 223 ms,PhOS-remote 为 253 ms,平均减少 94%。原因是通过内核描述符直接访问元数据,避免复制到 tmpfs 及分布式文件系统元数据同步。不同模型下为 11-18 ms。

查看该段英文原文

Fig. 6. Remote fork performance. Prepare Time Analysis. Fig. 6(a) demonstrates ServerlessPD’s radical improvement in container preparation time through logarithmic-scale comparison. Our system achieves 11 ms preparation time for a 467 MB container, outperforming PhOS-local (223 ms) and PhOS-remote (253 ms) by 94% on average. This acceleration stems from ServerlessPD’s direct metadata access through kernel descriptors, bypassing PhOS’s dual bottlenecks: 1) PhOS-local’s memory-to-tmpfs state copying, and 2) PhOS-remote’s distributed filesystem metadata synchronization. The preparation time remains stable across models (11-18 ms), proving our design’s independence from model size.

启动延迟:图 6(b) 中 ServerlessPD 为 85-120 ms,ServerlessLLM 为 420-610 ms,Mooncake 为 380-530 ms。正文将前者开销归于未优化 KV 传输(称序列化开销 600 ms),后者归于冷启动初始化。ServerlessPD 通过父子容器继承,直接使用父预填充容器的预加载模型和预取 KV 缓存。

查看该段英文原文

Startup Latency Breakdown. As shown in Fig. 6(b), ServerlessPD reduces startup latency to 85-120 ms, significantly lower than ServerlessLLM (420-610 ms) and Mooncake (380-530 ms). While ServerlessLLM suffers from unoptimized KV cache transfers (600 ms serialization overhead) despite fast model loading, Mooncake’s proprietary transfer engine is negated by cold-start initialization delays. ServerlessPD eliminates these bottlenecks through parent-child container inheritance, where decoding instances directly access preloaded models and prefetched KV caches from prefill containers.

即使 PhOS-remote 的 253-334 ms 也更高,作者将其归因于分布式文件系统元数据握手,而内核级远程 fork 避免了这一步。

查看该段英文原文

Notably, even PhOS-remote (253-334 ms) exhibits higher latency due to DFS metadata handshaking, which our kernellevel remote fork mechanism avoids.

端到端效率。图 6(c) 展示作者所称的接近原生执行的端到端性能。

查看该段英文原文

End-to-End Execution Efficiency. Fig. 6(c) reveals ServerlessPD’s near-native performance in end-to-end execution.

按需取页时,OPT-2.7B 用时 1.2 s,缓存版本 0.9 s;原文称前者仅慢 1.14 倍。对 LLaMA-3-8B,原文给出 1.9 s 与缓存的 1.5 s,并称缺页占总运行时间不到 18%。PhOS-local 为 2.8-4.1 s,Mooncake 为 1.7-2.7 s;正文给出的几何平均加速为相对二者 2.24 倍与 1.46 倍。【译注:1.2/0.9≈1.33,与文中 1.14 不符;保留原文数字,不能视为已核验结论。】

查看该段英文原文

With on-demand paging, ServerlessPD completes OPT-2.7B inference in 1.2s, only 1.14× slower than its cached version (0.9s). This marginal gap confirms our remote memory access efficiency - page faults account for <18% of total runtime even for LLaMA-3-8B (1.9s vs 1.5s cached). Comparatively, PhOS-local (2.8-4.1s) and Mooncake (1.7-2.7s) demonstrate higher sensitivity to model size due to full-state transfers. The geometric mean speedup reaches 2.24× over PhOS-local and 1.46× over Mooncake, proving our paged execution model’s scalability.

优化贡献:图 6(d) 报告,内核态 RDMA 将 OPT-2.7B 吞吐从 120 提升到 185 RPS(约 +54%);轻量容器消除 83% 的容器元数据,使之从 185 提升到 240 RPS(约 +30%)。

查看该段英文原文

Optimization Step Contributions. Fig. 6(d) quantifies the cumulative impact of ServerlessPD’s optimizations through RPS measurements. Kernel-space RDMA boosts baseline throughput by 54% (OPT-2.7B: 120→185 RPS) through zerocopy data paths. Lean containers add 30% improvement (185→240 RPS) by eliminating 83% of container metadata.

预取将吞吐从 240 提升到 320 RPS(约 +33%),对大模型尤其明显;LLaMA-3-8B 的数值为 60 至 220 RPS。

查看该段英文原文

Prefetching delivers the most significant gain (240→320 RPS, +33%) through anticipatory KV cache loading, particularly benefiting large models like LLaMA-3-8B (60→220 RPS).

最后,跨容器缓存使 OPT-2.7B 的峰值达到 400 RPS,相对初始值约提高 3.3 倍。

查看该段英文原文

Finally, cross-container caching pushes peak throughput to 400 RPS for OPT-2.7B, demonstrating 3.3× total improvement.

作者据此认为,内存管理与网络优化的协同设计适用于无服务器 LLM 负载。

查看该段英文原文

The results validate our co-design of memory management and network optimizations for LLM serverless workloads.

C. KV 缓存传输性能。实验在要求第三方转发的云原生约束下,测试跨节点 KV 传输,包括固定 1 GB 的延迟与不同大小的数据吞吐。比较对象是基于 Redis 的 ServerlessLLM/Mooncake 配置及 PhOS-local/remote。实验旨在分析减少序列化与提高 RDMA 利用率的效果。

查看该段英文原文

C. KV Cache Transfer Performance We evaluate the efficiency of cross-node KV cache transmission under cloud-native constraints, where third-party forwarding is mandated. Experiments measure both fixedsize transfer latency (1GB) and scalability across data volumes, comparing ServerlessPD against Redis-based solutions (ServerlessLLM/Mooncake) and checkpointing systems (PhOS-local/remote). The results validate ServerlessPD’s design for minimizing serialization overhead and maximizing RDMA utilization in disaggregated LLM serving.

6HUYHUOHVV//0 5HGLV 0RRQFDNH 5HGLV 3K26ORFDO3K26UHPRWH6HUYHUOHVV3'

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

7UDQVIHU7LPHPV PVPV PVPV PV (a) Third-Party Forwarding Latency 0%0%0%*%

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

7KURXJKSXW*%V (b) KV Cache Size Scalability

图 7:KV 缓存传输性能。第三方转发延迟:1 GB 传输中,ServerlessPD 为 95 ms,Redis 方案为 627 ms。正文称后者包含 Python 对象转换引入的 600 ms 序列化/反序列化,以及 27 ms Redis 中转。PhOS-local 为 253 ms,PhOS-remote 为 278 ms,虽通过 CRIU 避免序列化,仍受 tmpfs 复制或 Ceph 元数据协商(45 ms)限制。ServerlessPD 通过 GPUDirect RDMA 直接读取父容器内存中的缓存页,正文称协议处理开销减少 89%。

查看该段英文原文

Fig. 7. KV Cache transfer performance. Third-Party Forwarding Latency.Fig. 7(a) reveals ServerlessPD’s dominance in 1GB KV cache transmission, completing in 95 ms versus 627 ms for Redis-based systems. ServerlessLLM and Mooncake incur 600 ms serialization/deserialization penalties due to Python object conversions, plus 27 ms Redis relay latency. While PhOS-local (253 ms) and PhOS-remote (278 ms) avoid serialization via CRIU, they still suffer from storage-layer bottlenecks: PhOS-local copies data to tmpfs, whereas PhOS-remote spends 45 ms negotiating Ceph metadata. ServerlessPD bypasses both layers via GPU-direct RDMA, reading cached pages directly from remote parent containers’ memory. This eliminates 89% of protocol-handling overhead, achieving near-theoretical Infini- Band throughput.

数据量扩展:图 7(b) 报告,在 1 MB 至 1 GB 负载间,ServerlessPD 保持 9.8-7.2 GB/s 吞吐,为 Redis 方案的 5.1-12.3 倍。

查看该段英文原文

Data Volume Scalability. As shown in Fig. 7(b), ServerlessPD sustains 9.8–7.2 GB/s throughput across 1MB–1GB payloads, outperforming Redis-based systems by 5.1–12.3×.

1 MB 小负载暴露出协议开销:Redis 因 TCP/IP 栈处理,峰值为 1.2 GB/s,

查看该段英文原文

Small packets (1MB) expose protocol inefficiencies: Redis peaks at 1.2 GB/s due to TCP/IP stack processing,

PDF 第 9 页

而 PhOS-remote 通过支持 RDMA 的 Ceph 达到 3.2 GB/s。对于 1 GB 传输,正文另称 ServerlessPD 达到 9.8/10.5 GB/s、约 93% 线速;PhOS-remote 因分布式文件系统碎片降至 1.5 GB/s。更大缓存时差距增大:页粒度预取避免一次性获取的惩罚,而 Redis 因序列化争用降至 0.4 GB/s。【译注:本段与上一段对不同大小吞吐的叙述需结合图 7 核对。】

查看该段英文原文

while PhOS-remote reaches 3.2 GB/s via RDMA-optimized Ceph. For 1GB transfers, ServerlessPD’s zero-copy approach achieves 93% line rate (9.8/10.5 GB/s), whereas PhOS-remote degrades to 1.5 GB/s from DFS fragmentation. The gap widens with larger caches, as ServerlessPD’s page-grained prefetching avoids fetch-once penalties, while Redis systems’ throughput collapses to 0.4 GB/s under serialization-induced contention.

作者据此认为,该架构适用于多 GB 的 LLM 上下文窗口。

查看该段英文原文

This demonstrates our architecture’s unique suitability for multi-GB LLM context windows.

D. 启动点优化。系统在 P 实例输出可传输时启动 D 初始化。实验以端到端延迟和资源利用率比较两种朴素策略:P/D 同时启动(产生显存争用)和先 P 后 D 顺序启动(产生空闲间隔)。

查看该段英文原文

D. Launch-Point Optimization ServerlessPD schedules D-instance initialization precisely when P-instance outputs become transferable. We compare this approach against two naive strategies: simultaneous P/D launches (causing GPU memory contention) and sequential P→D execution (resulting in resource idle time), using endto-end latency and resource utilization as metrics.

3'6LPXOWDQHRXV3)LUVW6HUYHUOHVV3'

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

(QGWR(QG7LPHV 237% 237% //D0$% //D0$% (a) End-to-End Latency 3'6LPXOWDQHRXV3)LUVW6HUYHUOHVV3'

,GOH7LPH5DWLR

(b)资源利用率。

查看该段英文原文

(b) Resource Utilization

图 8:启动点优化。正文称,端到端延迟相对基线下降 42-54%;LLaMA-3-8B 为 3.9 s,对照顺序启动的 6.8 s 和同时启动的 5.1 s。【译注:3.9 相对 5.1 下降约 23.5%,相对 6.8 下降约 42.6%;不能把 42-54% 理解为这两个例子都满足。】

查看该段英文原文

Fig. 8. Launch-point optimization performance. End-to-End Latency Reduction. As shown in Fig. 8(a) , ServerlessPD’s algorithm reduces E2E latency by 42%–54% compared to baselines. For LLaMA-3-8B, our method achieves 3.9s versus 6.8s (sequential) and 5.1s (simultaneous).

同时启动时 P/D 争用模型权重,正文称显存争用惩罚最高 40%(OPT-6.7B:4.5 s→2.7 s);顺序启动使 P 完成与 D 开始间出现空闲(LLaMA-2-7B:5.1 s→3.1 s),较大模型更明显。作者称,重叠 P 后期计算与 D 初始化可消除 89% 空闲,并适应各模型的 token 生成模式。

查看该段英文原文

Simultaneous launching causes up to 40% GPU memory contention penalties (OPT-6.7B: 4.5s→2.7s) as P/D instances compete for model weights. Sequential execution incurs idle gaps between P-completion and D-startup (LLaMA-2-7B: 5.1s→3.1s), especially severe for larger models due to prolonged prefill phases. ServerlessPD eliminates 89% of idle time by overlapping P’s late-stage computation with D’s initialization, dynamically adapting to model-specific token generation patterns.

资源利用率:图 8(b) 称总空闲从同时启动的 80%、顺序启动的 67% 降至 35%,其中 GPU 空闲从 40% 降至 15%。同时启动浪费 25% CPU 周期于 P/D 上下文切换,顺序启动则在 D 冷启动时留下 35% GPU 空闲。系统通过提前预留使 GPU 从 P 末层转入解码,正文称各模型 GPU 利用率维持 85%,内存空闲从 25% 降至 12%,并给出重叠窗口中 LLaMA-3-8B 缓存传输 220 GB/s 的数值。【译注:220 GB/s 不能解释为本文 100 Gbps 网络上的跨节点吞吐;原文未在此明确口径,需核验。】

查看该段英文原文

Resource Utilization Efficiency. Fig. 8(b) quantifies how ServerlessPD minimizes resource idle time through smart scheduling. Our algorithm reduces total idle time from 80% (simultaneous) and 67% (sequential) to 35%, primarily by cutting GPU idle time from 40% to 15%. Simultaneous strategies waste 25% CPU cycles on context switching between P/D processes, while sequential execution leaves GPUs unused during D-instance cold starts (35% idle). ServerlessPD’s preemptive resource reservation ensures GPUs transition seamlessly from P’s final layers to D’s decoding, maintaining 85% GPU utilization across all models. Memory idle time drops from 25% to 12% through just-in-time KV cache prefetching, validated by LLaMA-3-8B’s 220GB/s cache transfer throughput during overlap windows.

E. 自动扩缩容。将轻量容器设计与 Ray on Kubernetes [52] 和 KServe [9] 比较,在突发负载下分析动态请求速率对应的延迟,以及不同模型、数据集的吞吐,评估快速扩容与模型切换开销。

查看该段英文原文

E. Autoscaling We evaluate ServerlessPD’s autoscaling capability under bursty LLM inference workloads, comparing its lean-container design against traditional container-based systems (Ray on Kubernetes [52] and KServe [9]). By analyzing latency under dynamic request rates and throughput across heterogeneous models/datasets, we validate ServerlessPD’s efficiency in rapid scaling and model-switching overhead mitigation.

5HTXHVWV3HU6HFRQG536

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

/DWHQF\V 5D\RQ.V .6HUYH 6HUYHUOHVV3' (a) Latency Scalability 237%237%//D0$%//D0$% 0RGHOV

【图中标签、代码或坐标轴的提取文本,空间顺序或字符编码不可靠。此处不生成译文;请查看原 PDF 对应图,英文切换保留提取结果。】

查看该段英文原文

7KURXJKSXW536 5D\RQ.V .6HUYH 6HUYHUOHVV3' *60. (b) Throughput Stability

图 9:自动扩缩容。正文称,在不超过 800 RPS 时 ServerlessPD 保持亚秒延迟;峰值时优于 Ray(1.2 s)和 KServe(1.5 s)2.3-3.8 倍。Ray 新建 pod 需 8-12 s,KServe 基于 Knative 的副本冷启动约 600 ms。ServerlessPD 将扩容决策控制在 110 ms,依赖预热轻量容器(23 ms 激活)、KV 继承避免重新加载及 RDMA 状态同步。1000 RPS 时其延迟 1.1 s,KServe 为 2.6 s,约降低 58%。

查看该段英文原文

Fig. 9. Autoscaling. Latency Scalability. As shown in Fig. 9(a), ServerlessPD maintains sub-second latency up to 800 RPS, outperforming Ray (1.2s) and KServe (1.5s) by 2.3–3.8× at peak load. Ray’s reactive scaling—taking 8–12 seconds to provision new pods—causes quadratic latency growth, while KServe’s Knative-based scaling suffers from 600ms cold starts per replica. ServerlessPD achieves 110ms scaling decisions through three innovations: 1) Pre-warmed lean containers (23ms activation), 2) KV cache inheritance avoiding model reloads, and 3) RDMA-based state synchronization between P/D instances. At 1000 RPS, ServerlessPD’s latency (1.1s) remains 58% lower than KServe’s (2.6s), proving its suitability for flash crowds in LLM serving.

跨负载吞吐稳定性:图 9(b) 中,ServerlessPD 在 OPT/LLaMA 模型上保持 180-220 RPS,GSM8K 与 ShareGPT 间差异小于 12%。传统系统因模型切换吞吐下降 35-50%:Ray 从 OPT-6.7B 切至 LLaMA-2-7B 用 4.2 s,KServe 加载模型需 2.8 s,GPU 空闲 41%。页粒度缓存使 ServerlessPD 的切换开销降到 0.9 s。混合负载中,正文称全局 KV 共享达到 92% 命中率,保持峰值吞吐的 95%(200 RPS),KServe 为 62%。作者将稳定性归因于扩容器与内存子系统协同,优先保留热门模型缓存并动态重分配资源。

查看该段英文原文

Throughput Stability Across Workloads. Fig. 9(b) demonstrates ServerlessPD’s consistent throughput of 180–220 RPS across OPT and LLaMA models, with <12% variation between GSM8K and ShareGPT datasets. Traditional systems exhibit 35–50% throughput drops due to model-switching penalties: Ray requires 4.2s to swap OPT-6.7B for LLaMA-2- 7B, while KServe’s 2.8s model loading causes 41% idle GPU time. ServerlessPD’s page-grained caching retains hot models across containers, reducing switch overhead to 0.9s. For mixed workloads, ServerlessPD achieves 92% cache hit rate through global KV cache sharing, sustaining 95% of peak throughput (200 RPS) versus 62% for KServe. This stability stems from our co-design of autoscaler and memory subsystem, which prioritizes cache retention for frequent models while dynamically reallocating underutilized resources.

VII. 结论。ServerlessPD 针对无服务器 LLM 推理中的冷启动与昂贵状态传输,将远程 fork 与 RDMA 协同设计,以支持近乎即时的自动扩缩容和零拷贝状态传输,提高资源

查看该段英文原文

VII. C ONCLUSTION ServerlessPD introduces an innovative approach to optimizing serverless inference for large language models by addressing critical challenges such as cold-start latency and costly state transfers. Through the co-design of remote forking with RDMA, ServerlessPD enables near-instant autoscaling and zero-copy state transfer, significantly improving resource

PDF 第 10 页

利用率并减少调度瓶颈。通过 GPU 上下文拦截和动态启动点算法,系统协调预填充与解码,为可扩展、高性能无服务器 LLM 推理提供路径。

查看该段英文原文

utilization and minimizing scheduling bottlenecks. By integrating GPU context interception and a dynamic launch-point algorithm, ServerlessPD ensures efficient prefill-decoding coordination, paving the way for scalable and high-performance serverless LLM inference.

未来工作包括以分层状态解耦支持超过单 GPU 显存的动态分区模型,将 KV 片段分布到多个解码实例并尽量减少复制;另将研究从不同预填充父实例产生的解码实例如何自适应批处理,在 RNIC 资源受限时优化吞吐。

查看该段英文原文

Future work will focus on extending the system’s capabilities to support dynamically partitioned models exceeding single-GPU memory limits via hierarchical state disaggregation, where KV cache segments are distributed across multiple decoding instances with near-zero-copy access. Additionally, we plan to investigate adaptive batching strategies for decoding instances spawned from heterogeneous prefill parents, optimizing throughput under constrained RNIC resources.

致谢。感谢同事、匿名审稿人以及 ICWS 2025 的编辑和组织者提供帮助。

查看该段英文原文

ACKNOWLEDGMENT We appreciate our colleagues, anonymous reviewers, editors and organizers of ICWS 2025 for their assistance.

REFERENCES

[1] P. Patel, E. Choukse, C. Zhang, A. Shah, ´I. Goiri, S. Maleki, and R. Bianchini, “Splitwise: Efficient generative llm inference using phase splitting,” in 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA). IEEE, 2024, pp. 118–132.

[2] R. Qin, Z. Li, W. He, J. Cui, F. Ren, M. Zhang, Y . Wu, W. Zheng, and X. Xu, “Mooncake: Trading more storage for less computation—a {KVCache-centric} architecture for serving {LLM} chatbot,” in 23rd USENIX Conference on File and Storage Technologies (FAST 25), 2025, pp. 155–170.

[3] W. Kwon, Z. Li, S. Zhuang, Y . Sheng, L. Zheng, C. H. Yu, J. Gonzalez, H. Zhang, and I. Stoica, “Efficient memory management for large language model serving with pagedattention,” in Proceedings of the 29th Symposium on Operating Systems Principles, 2023, pp. 611–626.

[4] B. Wu, Y . Zhong, Z. Zhang, S. Liu, F. Liu, Y . Sun, G. Huang, X. Liu, and X. Jin, “Fast distributed inference serving for large language models,” arXiv preprint arXiv:2305.05920, 2023.

[5] K. I. Roumeliotis and N. D. Tselikas, “Chatgpt and open-ai models: A preliminary review,” Future Internet, vol. 15, no. 6, p. 192, 2023.

[6] M. A. Makrygiannakis, K. Giannakopoulos, and E. G. Kaklamanos, “Evidence-based potential of generative artificial intelligence large language models in orthodontics: A comparative study of chatgpt, google bard, and microsoft bing,”European Journal of Orthodontics, p. cjae017, 2024.

[7] Amazon Web Services, “Amazon Bedrock: Fully managed generative ai service,” https://aws.amazon.com/bedrock/, 2023, version 1.0, Serverless foundation model API platform.

[8] Microsoft Azure, “Azure Serverless Computing,” https://azure.microsoft.

com/en-us/products/functions, 2023, serverless functions and eventdriven architecture.

[9] Kubernetes Community, “KServe: Model serving framework for kubernetes,” https://kserve.github.io, 2023, v0.11, Multi-framework inference service.

[10] Y . Fu, L. Xue, Y . Huang, A.-O. Brabete, D. Ustiugov, Y . Patel, and L. Mai, “{ServerlessLLM}:{Low-Latency} serverless inference for large language models,” in 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), 2024, pp. 135–153.

[11] Apache Software Foundation, “Apache openwhisk,” https://openwhisk.

apache.org, 2024.

[12] A. Ellis, OpenFaaS: Serverless Functions Made Simple, https://www.

openfaas.com, OpenFaaS Ltd, 2024.

[13] S. Hendrickson, S. Sturdevant, T. Harter, V . Venkataramani, A. C.

Arpaci-Dusseau, and R. H. Arpaci-Dusseau, “Serverless computation with {OpenLambda},” in 8th USENIX workshop on hot topics in cloud computing (HotCloud 16), 2016.

[14] Cloud Native Computing Foundation, “Fn Project: An open source serverless platform,” https://fnproject.io, 2023.

[15] The Knative Authors, “Knative,” https://knative.dev, 2024, accessed: 2025-6-6.

[16] S. Kotni, A. Nayak, V . Ganapathy, and A. Basu, “Faastlane: Accelerating {Function-as-a-Service} workflows,” in2021 USENIX Annual Technical Conference (USENIX ATC 21), 2021, pp. 805–820.

[17] J. M. Hellerstein, J. Faleiro, J. E. Gonzalez, J. Schleier-Smith, V . Sreekanti, A. Tumanov, and C. Wu, “Serverless computing: One step forward, two steps back,” arXiv preprint arXiv:1812.03651, 2018.

[18] X. Wei, F. Lu, T. Wang, J. Gu, Y . Yang, R. Chen, and H. Chen, “No provisioned concurrency: Fast {RDMA-codesigned} remote fork for serverless computing,” in 17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23), 2023, pp. 497–517.

[19] F. Lu, X. Wei, Z. Huang, R. Chen, M. Wu, and H. Chen, “Serialization/deserialization-free state transfer in serverless workflows,” in Proceedings of the Nineteenth European Conference on Computer Systems, 2024, pp. 132–147.

[20] Y . Yang, D. Du, H. Song, and Y . Xia, “On-demand and parallel checkpoint/restore for gpu applications,” in Proceedings of the 2024 ACM Symposium on Cloud Computing, 2024, pp. 415–433.

[21] Z. Huang, X. Wei, Y . Hao, R. Chen, M. Han, J. Gu, and H. Chen, “Parallelgpuos: A concurrent os-level gpu checkpoint and restore system using validated speculation,” arXiv preprint arXiv:2405.12079, 2024.

[22] S.-Y . Tsai and Y . Zhang, “Lite kernel rdma support for datacenter applications,” in Proceedings of the 26th Symposium on Operating Systems Principles, 2017, pp. 306–324.

[23] X. Wei, F. Lu, R. Chen, and H. Chen, “{KRCORE}: A microsecondscale {RDMA} control plane for elastic computing,” in 2022 USENIX Annual Technical Conference (USENIX ATC 22), 2022, pp. 121–136.

[24] E. Oakes, L. Yang, D. Zhou, K. Houck, T. Harter, A. Arpaci-Dusseau, and R. Arpaci-Dusseau, “{SOCK}: Rapid task provisioning with {Serverless-Optimized} containers,” in 2018 USENIX annual technical conference (USENIX ATC 18), 2018, pp. 57–70.

[25] D. Zhang, H. Wang, Y . Liu, X. Wei, Y . Shan, R. Chen, and H. Chen, “Fast and live model auto scaling with o (1) host caching,”arXiv preprint arXiv:2412.17246, 2024.

[26] M. Shahrad, R. Fonseca, I. Goiri, G. Chaudhry, P. Batum, J. Cooke, E. Laureano, C. Tresness, M. Russinovich, and R. Bianchini, “Serverless in the wild: Characterizing and optimizing the serverless workload at a large cloud provider,” in 2020 USENIX annual technical conference (USENIX ATC 20), 2020, pp. 205–218.

[27] Y . Zhang, ´I. Goiri, G. I. Chaudhry, R. Fonseca, S. Elnikety, C. Delimitrou, and R. Bianchini, “Faster and cheaper serverless computing on harvested resources,” in Proceedings of the ACM SIGOPS 28th Symposium on Operating Systems Principles, 2021, pp. 724–739.

[28] J. Stojkovic, C. Zhang, ´I. Goiri, J. Torrellas, and E. Choukse, “Dynamollm: Designing llm inference clusters for performance and energy efficiency,”arXiv preprint arXiv:2408.00741, 2024.

[29] D. Du, T. Yu, Y . Xia, B. Zang, G. Yan, C. Qin, Q. Wu, and H. Chen, “Catalyzer: Sub-millisecond startup for serverless computing with initialization-less booting,” in Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, 2020, pp. 467–481.

[30] P. Silva, D. Fireman, and T. E. Pereira, “Prebaking functions to warm the serverless cold start,” in Proceedings of the 21st International Middleware Conference, 2020, pp. 1–13.

[31] A. Fuerst and P. Sharma, “Faascache: keeping serverless computing alive with greedy-dual caching,” inProceedings of the 26th ACM international conference on architectural support for programming languages and operating systems, 2021, pp. 386–400.

[32] R. B. Roy, T. Patel, and D. Tiwari, “Icebreaker: Warming serverless functions better with heterogeneity,” in Proceedings of the 27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, 2022, pp. 753–767.

[33] H. Yu, R. Basu Roy, C. Fontenot, D. Tiwari, J. Li, H. Zhang, H. Wang, and S.-J. Park, “Rainbowcake: Mitigating cold-starts in serverless with layer-wise container caching and sharing,” in Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1, 2024, pp. 335–350.

[34] J. Cadden, T. Unger, Y . Awad, H. Dong, O. Krieger, and J. Appavoo, “Seuss: skip redundant paths to make serverless fast,” in Proceedings of the Fifteenth European Conference on Computer Systems, 2020, pp.

1–15.

[35] Z. Lin, K.-F. Hsieh, Y . Sun, S. Shin, and H. Lu, “Flashcube: Fast provisioning of serverless functions with streamlined container runtimes,” in Proceedings of the 11th Workshop on Programming Languages and Operating Systems, 2021, pp. 38–45.

PDF 第 11 页

[36] C. Hu, H. Huang, L. Xu, X. Chen, J. Xu, S. Chen, H. Feng, C. Wang, S. Wang, Y . Bao et al., “Inference without interference: Disaggregate llm inference for mixed downstream workloads,” arXiv preprint arXiv:2401.11181, 2024.

[37] C. Hu, H. Huang, J. Hu, J. Xu, X. Chen, T. Xie, C. Wang, S. Wang, Y . Bao, N. Sun et al., “Memserve: Context caching for disaggregated llm serving with elastic memory pool,”arXiv preprint arXiv:2406.17565, 2024.

[38] Y . Jin, T. Wang, H. Lin, M. Song, P. Li, Y . Ma, Y . Shan, Z. Yuan, C. Li, Y . Sun et al., “P/d-serve: Serving disaggregated large language model at scale,” arXiv preprint arXiv:2408.08147, 2024.

[39] Y . Zhong, S. Liu, J. Chen, J. Hu, Y . Zhu, X. Liu, X. Jin, and H. Zhang, “{DistServe}: Disaggregating prefill and decoding for goodput-optimized large language model serving,” in 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), 2024, pp. 193–210.

[40] B. Wu, S. Liu, Y . Zhong, P. Sun, X. Liu, and X. Jin, “Loongserve: Efficiently serving long-context large language models with elastic sequence parallelism,” in Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles, 2024, pp. 640–654.

[41] J. Gu, Y . Lee, Y . Zhang, M. Chowdhury, and K. G. Shin, “Efficient memory disaggregation with infiniswap,” in 14th USENIX Symposium on Networked Systems Design and Implementation (NSDI 17), 2017, pp.

649–667.

[42] E. Amaro, C. Branner-Augmon, Z. Luo, A. Ousterhout, M. K. Aguilera, A. Panda, S. Ratnasamy, and S. Shenker, “Can far memory improve job throughput?” in Proceedings of the Fifteenth European Conference on Computer Systems, 2020, pp. 1–16.

[43] NVIDIA Corporation, “NVIDIA/cuda-checkpoint: Cuda checkpoint/restore utility for gpu applications,” https://github.com/ NVIDIA/cuda-checkpoint, 2023, version 1.2.0, GPU state serialization for CUDA applications.

[44] D. Shukla, M. Sivathanu, S. Viswanatha, B. Gulavani, R. Nehme, A. Agrawal, C. Chen, N. Kwatra, R. Ramjee, P. Sharma et al., “Singularity: Planet-scale, preemptive and elastic scheduling of ai workloads,” arXiv preprint arXiv:2202.07848, 2022.

[45] R. Graham, “Dynamically connected transport,” Presentation at the 2014 OpenFabrics Alliance Developer Workshop, OpenFabrics Alliance, 2014, accessed: 2025-6-6. [Online]. Available: https://www.openfabrics.org/images/eventpresos/workshops2014/ DevWorkshop/presos/Monday/pdf/05 DC Verbs.pdf

[46] etcd Maintainers, “etcd: Distributed reliable key-value store,” https:// etcd.io, 2023, accessed: 2025-6-6.

[47] A. Kalia, M. Kaminsky, and D. G. Andersen, “Fasst: Fast, scalable and simple distributed transactions with two-sided (rdma) datagram rpcs,” in 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), 2016, pp. 185–201.

[48] K. Cobbe, V . Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano et al., “Training verifiers to solve math word problems,” arXiv preprint arXiv:2110.14168, 2021.

[49] M. Xu, “Sharegpt-gpt4: A large-scale dialogue dataset with gpt- 4 responses,” https://huggingface.co/datasets/shibing624/sharegpt gpt4, 2023, accessed: 2025-6-6.

[50] C. Team, “Criu: Checkpoint/restore in userspace,” https://criu.org, 2011, accessed: 2025-6-6.

[51] S. Weil, S. A. Brandt, E. L. Miller, D. D. Long, and C. Maltzahn, “Ceph: A scalable, high-performance distributed file system,” in Proceedings of the 7th Conference on Operating Systems Design and Implementation (OSDI’06), 2006, pp. 307–320.

[52] P. Moritz, R. Nishihara et al., “Ray: A distributed framework for emerging ai applications on kubernetes,” https://docs.ray.io/en/latest/, 2024, accessed: 2025-6-6.