arXiv:2609.10790cs.DCSep 2026

Manuscript Offprint

arXiv:2609.10790

Composable CXL Memory as a Kubernetes-Native Shared Memory for LLM Serving

Hongjian Fan, Kevin Zhang, David Habinsky, Sean Dykstra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present a Kubernetes Dynamic Resource Allocation (DRA) driver that makes composable CXL memory a schedulable cluster resource, and evaluate the resulting shared-memory tier for cross-node KV-cache reuse in LLM serving. The driver composes CXL regions on demand, materializes them as DAX devices on each participating host, and injects them into pods under a single Container Device Interface (CDI) name so that pods on different nodes access the same physical region. A shared-memory connector for vLLM/llm-d uses that region as a KV-cache tier with a slot directory embedded inside the shared medium, which eliminates the need for an external metadata service. On a two-node cluster with a 512 GiB CXL appliance and Qwen2.5-7B-Instruct, cross-node prefix reuse reduces TTFT by 5.5×−36.6×5.5\times-36.6\times at an external hit rate of 95.4–99.5%, while node-local tiers (GPU prefix caching, CPU-DRAM offload) fall back to full recompute. The sharing gap, defined as the latency ratio between cross-node and same-node reuse, is 1–4%, indicating that cross-node reuse incurs little additional latency relative to same-node reuse on our testbed. Both replicas run full engines; the study demonstrates memory disaggregation rather than prefill/decode disaggregation. We report this as a feasibility study rather than a performance evaluation.

1 Introduction

The KV cache makes autoregressive serving fast and expensive. For Qwen2.5-7B-Instruct each attended token leaves behind 56 KiB of key and value tensors: a 32 K-token prompt is 1.75 GiB. Long shared prefixes, common in multi-turn chat, RAG, and agentic workflows, let later requests skip recomputation. Modern engines exploit this aggressively with in-GPU prefix caching [1, 2], host-DRAM and disk tiers [3, 4], and prefill/decode disaggregation [5, 6, 7].

What this needs is a cache tier that is both large and shared. The tiers available today provide one property or the other:

• GPU VRAM, fastest but smallest and confined to a single GPU.

• Host DRAM, an order of magnitude larger but confined to a single node.

• RDMA and object tiers [7, 8, 3], shared, but reuse traverses a transfer protocol and a NIC.

Compute Express Link (CXL) [9] offers a fourth option. A composable memory appliance can carve a region and map it to several hosts at once; each host sees byte-addressable memory at sub-microsecond latency. On our testbed it reads at 27–28 GB/s, which is 2.4×2.4\times lower latency than a line-rate 100 GbE RoCEv2 fabric (Figure 1), with no transport layer on the reuse path: a KV block loads via a memcpy from a shared physical address.

Measured KV-tier trade-off

Figure

Figure 1: Measured trade-off between the candidate KV-reuse tiers on our testbed. Local DRAM is fastest but private; RoCEv2 is shared but protocol-bound. CXL is the only shareable tier within ∼4.5×\sim4.5\times of local DRAM latency, using ordinary loads and offering pooled capacity beyond per-node budgets.

The gap. What is missing is a schedulable shared memory resource. CXL appliances can compose regions visible to multiple hosts, yet Kubernetes lacks a resource type that captures that topology. The Pangaea v2 project [10] brings CXL memory into Kubernetes via an NRI plugin but only on a per-host basis. Recent CXL-KV systems [11, 12] assume the region already exists. Without a schedulable resource, shared CXL memory cannot be multiplexed between tenants or reclaimed on teardown.

Background. Transformer inference splits into a compute-bound prefill and a memory-bound decode [13]. Because the KV of a prefix depends only on that prefix, later requests with the same leading tokens can skip recomputation: the basis of prefix caching [1, 2]. Engines expose this as a tiering problem: vLLM's OffloadingConnector abstracts a KV store behind a control-plane manager (which answers "do you have these blocks?" and reserves space) and per-worker handlers (which move tensors). Blocks are addressed by a content hash of the tokens they cover. Two properties matter for what follows: offloading has a granularity (256 tokens in our configuration), so any prefix not a multiple of it recomputes its trailing partial block; and the hash chain is seeded per process unless pinned, which is a prerequisite for cross-instance reuse (§4.3).

CXL [9] carries load/store semantics over PCIe electricals, letting a host address memory on a device. A blade in a composable memory appliance [14, 15] holds a pool of resource blocks and several ports; a fabric manager carves a region and multi-assigns it to several hosts. On the host, a CXL device can be enumerated as a CPU-less NUMA node managed by the kernel page allocator, or as a device_dax character device that can be mmap ed for direct access, bypassing the page cache. Either path adds roughly 2–5× the latency of local DRAM [16, 17, 18]. We use device_dax so that the KV cache offload connector manages the memory space directly.

Kubernetes Dynamic Resource Allocation [19, 20] (resource.k8s.io/v1 since v1.34) generalizes device plugins: a driver publishes ResourceSlice objects, a workload creates a ResourceClaim, the scheduler allocates, and a kubelet-side plugin prepares the claim, returning CDI [21] device names injected into the container. The model was designed for node-local accelerators (GPUs, NICs, FPGAs) and a ResourceSlice normally names the single node its devices are attached to. Composable memory breaks that assumption: the device does not exist until someone asks for it, and once composed it can be attached to several nodes at once.

This paper. We make composable CXL memory a schedulable Kubernetes resource and use it as a shared-memory tier for LLM serving (vLLM inside llm-d [22]). Our contributions:

  1. A Kubernetes DRA driver for composable CXL memory ( §2§2). It advertises blade capacity as a ResourceSlice whose NodeSelector spans every host cabled to the blade; composes a region on demand through a fabric manager; materializes it as a DAX sub-device on each participating host; and injects it under a single CDI name across all nodes. A finalizer and redundant teardown metadata make free-on-delete survive a plugin restart.

  2. An in-region metadata shared-memory KV tier ( §3§3). The directory resides inside the shared medium itself with an atomic slot bitmap plus a parallel key array, so presence lookup requires no external metadata service.

  3. An evaluation of shared memory for cross-node KV reuse ( §4§4). A two-node cluster, a 512 GiB appliance mapped to both hosts, and a cross-replica reuse experiment designed so that only a shared tier can produce a hit. We report the headline result, the sharing gap, together with the costs: the local premium, the achieved fraction of fabric bandwidth, and an assessment of data integrity under cross-node access.

Scope. This is a v1 feasibility report. The system is not prefill/decode disaggregated. Both replicas are full engines, so what we demonstrate is memory disaggregation. The harness is closed-loop and runs one session at a time, so time-to-first-token (TTFT) is the metric it supports; we make no goodput or tail-latency claim. Zero-copy GPU↔CXL DMA, a pooled RDMA baseline, and a multi-tenant scheduling experiment are explicit non-goals. §6 enumerates the remaining limitations.

References (25)