arXiv:2610.27636cs.OSOct 2026

Manuscript Offprint

arXiv:2610.27636

CXLResume: Retained-State Checkpoint and Restore for In-Memory Services

Haonan Li, Zhaoxiang Huang, Zhihao Zhang, Yiming Zhang

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

Abstract

Checkpointing and restoring an in-memory service typically require writing its memory pages to checkpoint images and refilling them at the destination. When application state already resides in shared memory that remains accessible after failover, copying those pages into and out of checkpoint images is unnecessary. We present CXLResume, a prototype that retains the service's main heap objects in shared memory while checkpointing the remaining execution state and mapping metadata. Checkpointing preserves the shared heap at the same freeze point as the serialized process state. During recovery, CXLResume remaps the same shared memory at its original virtual addresses before restoring execution, preserving direct pointers within and across shared and private memory. We evaluate CXLResume with Redis and Memcached using QEMU CXL functional emulation. At 6 GiB, CXLResume reduces combined checkpoint and restore time from 15.015 s to 0.242 s for Redis and from 19.770 s to 0.276 s for Memcached in the evaluated deployments. These results show that retaining shared application state removes large application heaps from the checkpoint data path and substantially reduces checkpoint and restore latency.

1 Introduction

In-memory services must often move for maintenance, resource rebalancing, or host replacement while preserving their application state. Checkpoint/restore captures a running process and reconstructs it at a destination, but serializing and reloading a large heap can dominate service interruption. In our evaluation, checkpointing and restoring a Redis dataset with 6 GiB of values through local CRIU images takes 15.015 s. Shared checkpoint storage removes the need to transfer those images explicitly, yet application pages still pass through serialization and loading.

Shared CXL memory offers an opportunity to avoid this work: application objects can remain in place while execution moves. Memory-resident checkpoints, fabric-attached migration, and execution-environment reuse provide related mechanisms [1, 6, 12, 30]. The problem we address is how to resume a service over its existing writable objects while preserving native references between shared objects and ordinary process memory.

Zhaoxiang Huang

zhaoxiang.huang@outlook.com

Yiming Zhang ∗^{*}

zhangyiming@cs.sjtu.edu.cn

We present CXLResume, a prototype that places eligible allocations in CXL memory before migration and checkpoints the remaining execution state. Shared objects and captured process state correspond to the same freeze point. The destination reconstructs the original virtual-address mappings before resuming threads, and the source remains stopped during takeover. This arrangement preserves direct pointers without traversing the application’s object model or deferring bulk heap retrieval until requests arrive.

We implement this design with shared allocation and a CRIU mapping plugin, and evaluate Redis and Memcached using DRAM-backed QEMU CXL emulation. Our comparison uses local checkpoint storage for CRIU and shared checkpoint storage for CXLResume. At 6 GiB, CXLResume completes Redis checkpoint and restore in 0.242 s. Continuous-request experiments connect this reduction to service resumption, while data-structure and trace-derived workloads examine continuation across different object layouts. The paper contributes the retained-object checkpoint design, its address-preserving implementation, and an evaluation of its effect on migration interruption.

References (12)