Scaling Unmodified Multithreaded Applications with Elastic CXL-based Distributed Shared Memory
Guowei Liu, Kang Chen, Laiping Zhao, Yiming Li, Hanwen Liu, Chen Peng, Yichi Chen, Sheng Chen, Zhiyuan Su, Wenyu Qu
Abstract
While CXL presents a promising hardware substrate for Distributed Shared Memory (DSM), seamlessly scaling multithreaded applications across multiple nodes remains a formidable challenge. Existing CXL-based DSMs fall short: they require manual code modifications to share non-heap data, employ rigid data placement policies that fail under diverse and dynamic workloads, and suffer from severe page-fault processing overheads in sub-microsecond () environments. We present xDSM, a full-space, elastic DSM system built over CXL that transparently scales unmodified multithreaded applications. To eliminate the burden of manual code rewrites, xDSM employs an OS-runtime co-design that establishes a globally coordinated address space, seamlessly sharing all memory segments. To mask CXL access penalties, xDSM abandons static placement rules in favor of a dynamic, latency-driven policy that actively balances data between local DRAM and CXL memory. Finally, to resolve the fundamental tension between high base-page fault overheads and severe huge-page false sharing, xDSM introduces spatial locality-aware elasticity, dynamically coalescing and splitting pages on the fly to amortize processing costs. Evaluated across diverse workloads using 15 system configurations, xDSM outperforms CXL-only baselines by 1.5 to 2.2 and state-of-the-art hybrid DSMs by 1.1 to 2.2, while achieving near-linear scalability.
Create a lesson
Metadata
- Comments
- 15 pages, 8 figures
Related papers
Rimuru: Unified Memory Management for Modern LLM Serving via Elastic Expert Offloading
Shared title terminologycs.OSZhiyuan Fang, Dingyang Li, Jianfeng Zhong et al.
Characterizing CPU-GPU Memory Sharing over Unified Memory Architecture
Shared title terminologycs.OSJinrong Yang, Zimeng Wang, Rong Chen et al.
DAXFS: A Lock-Free Shared Filesystem for CXL Disaggregated Memory
Shared title terminologycs.OSCong Wang, Yiwei Yang, Yusheng Zheng
Equilibria: Fair Multi-Tenant CXL Memory Tiering At Scale
Shared title terminologycs.OSKaiyang Zhao, Neha Gholkar, Hasan Maruf et al.
Taiji: A DPU Memory Elasticity Solution for In-production Cloud Environments
Shared title terminologycs.OSHao Zheng, Longxiang Wang, Yun Xu et al.
Guidelines for Building Indexes on Partially Cache-Coherent CXL Shared Memory
Shared title terminologycs.OSFangnuo Wu, Mingkai Dong, Wenjun Cai et al.