# 克隆仓库
git clone git@github.com:LiuHongsGitHub/cxl-rpc.git
cd cxl-rpc
# 编译
mkdir -p build && cd build
cmake ..
make
# 运行测试
./test_rpc_loopback
参考论文
HydraRPC: RPC in the CXL Era (USENIX ATC 2024) 核心思想:利用 CXL HDM 传输数据,绕过 CPU 缓存,使用 MONITOR/MWAIT 高效通知。
Telepathic Datacenters: Fast RPCs using Shared CXL Memory (arXiv 2024) 核心思想:传递指针避免序列化,通过内存权限管理恢复安全性,支持 RDMA 降级。
zBuffer: Zero-Copy and Metadata-Free Serialization (PPoPP 2026) 核心思想:零拷贝、无元数据序列化,利用 Scatter-Gather 反射机制。
Cxlalloc: Safe and Efficient Memory Allocation for a CXL Pod (ASPLOS 2026) 核心思想:为 CXL Pod 设计的安全高效内存分配器。
@inproceedings{HydraRPC2024,
author = {Teng Ma and Zheng Liu and Chengkun Wei and Jialiang Huang and
Youwei Zhuo and Haoyu Li and Ning Zhang and Yijin Guan and
Dimin Niu and Mingxing Zhang and Tao Ma},
title = {HydraRPC: {RPC} in the {CXL} Era},
booktitle = {2024 USENIX Annual Technical Conference (USENIX ATC '24)},
pages = {387--395},
year = {2024}
}
@misc{RPCool2024,
title = {Telepathic Datacenters: Fast RPCs using Shared CXL Memory},
author = {Suyash Mahar and Ehsan Hajyjasini and Seungjin Lee and
Zifeng Zhang and Mingyao Shen and Steven Swanson},
year = {2024},
eprint = {2408.11325},
archiveprefix = {arXiv},
primaryclass = {cs.DC}
}
@inproceedings{zBuffer2026,
author = {Xiangyu Liu and Huiba Li and Shun Gai and Youmin Chen and Yiming Zhang},
title = {zBuffer: Zero-Copy and Metadata-Free Serialization for Fast {RPC} with Scatter-Gather Reflection},
booktitle = {Proceedings of the 31st ACM SIGPLAN Annual Symposium on Principles and
Practice of Parallel Programming (PPoPP '26)},
publisher = {ACM},
year = {2026}
}
@inproceedings{Cxlalloc2026,
author = {Newton Ni and Yan Sun and Zhiting Zhu and Emmett Witchel},
title = {Cxlalloc: Safe and Efficient Memory Allocation for a {CXL} Pod},
booktitle = {Proceedings of the 31st ACM International Conference on Architectural
Support for Programming Languages and Operating Systems, Volume 2 (ASPLOS '26)},
pages = {528--545},
publisher = {ACM},
year = {2026}
}
CXL-RPC
基于 CXL 共享内存的高性能 RPC 系统原型(2026 开放原子开源大赛参赛作品)。
核心设计
项目架构
环境要求
快速开始
参考论文
HydraRPC: RPC in the CXL Era (USENIX ATC 2024)
核心思想:利用 CXL HDM 传输数据,绕过 CPU 缓存,使用 MONITOR/MWAIT 高效通知。
Telepathic Datacenters: Fast RPCs using Shared CXL Memory (arXiv 2024)
核心思想:传递指针避免序列化,通过内存权限管理恢复安全性,支持 RDMA 降级。
zBuffer: Zero-Copy and Metadata-Free Serialization (PPoPP 2026)
核心思想:零拷贝、无元数据序列化,利用 Scatter-Gather 反射机制。
Cxlalloc: Safe and Efficient Memory Allocation for a CXL Pod (ASPLOS 2026)
核心思想:为 CXL Pod 设计的安全高效内存分配器。