arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.15980cs.OS
收藏

CXLAimPod:CXL 内存是 AI 时代所需的一切

CXLAimPod: CXL Memory is all you need in AI era

Yiwei Yang, Yusheng Zheng, Yiqi Chen, Zheng Liang, Kexin Chu, Zhe Zhou, Andi Quinn, Wei Zhang

AI总结:

本文提出 CXLAimPod 自适应调度框架,通过 cgroup 提示和 eBPF 内核实现,利用 CXL 全双工特性优化混合读写负载,在 Redis、LLM 和向量数据库上取得显著性能提升。

摘要:

从大型语言模型到键值存储,数据密集型应用的激增日益给具有混合读写访问模式的内存系统带来压力。DDR5 等传统半双工架构不适合此类工作负载,在混合读写模式下会遭受总线转向惩罚,从而降低其有效带宽。Compute Express Link(CXL)凭借其全双工通道提供了突破性方案,但由于现有软件栈对这一能力缺乏感知,该架构潜力尚未被开发。本文提出 CXLAimPod,一个自适应调度框架,旨在通过系统支持弥合这一软硬件差距,包括基于 cgroup 的提示机制以实现应用感知优化。我们的特征分析量化了这一机会,揭示在均衡读写比下,CXL 系统相比平坦的 DDR5 性能可获得 55-61% 的带宽提升,展示了全双工架构的优势。为发挥这一潜力,CXLAimPod 框架集成了多种调度策略与基于 cgroup 的提示机制,以在吞吐量、延迟和开销之间进行权衡。CXLAimPod 通过 eBPF 在 Linux 内核中高效实现,相比默认 CXL 配置带来了显著性能提升。在多样化工作负载上的评估显示,Redis 平均提升 7.4%(特定顺序模式最高可达 150%),LLM 文本生成提升 71.6%,向量数据库提升 9.1%,表明双工感知调度能够有效利用 CXL 的架构优势。

英文摘要:

The proliferation of data-intensive applications, ranging from large language models to key-value stores, increasingly stresses memory systems with mixed read-write access patterns. Traditional half-duplex architectures such as DDR5 are ill-suited for such workloads, suffering bus turnaround penalties that reduce their effective bandwidth under mixed read-write patterns. Compute Express Link (CXL) offers a breakthrough with its full-duplex channels, yet this architectural potential remains untapped as existing software stacks are oblivious to this capability. This paper introduces CXLAimPod, an adaptive scheduling framework designed to bridge this software-hardware gap through system support, including cgroup-based hints for application-aware optimization. Our characterization quantifies the opportunity, revealing that CXL systems achieve 55-61% bandwidth improvement at balanced read-write ratios compared to flat DDR5 performance, demonstrating the benefits of full-duplex architecture. To realize this potential, the CXLAimPod framework integrates multiple scheduling strategies with a cgroup-based hint mechanism to navigate the trade-offs between throughput, latency, and overhead. Implemented efficiently within the Linux kernel via eBPF, CXLAimPod delivers significant performance improvements over default CXL configurations. Evaluation on diverse workloads shows 7.4% average improvement for Redis (with up to 150% for specific sequential patterns), 71.6% improvement for LLM text generation, and 9.1% for vector databases, demon-strating that duplex-aware scheduling can effectively exploit CXL's architectural advantages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑