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

剖析大规模 CXL 内存性能:分析、建模与优化

Dissecting CXL Memory Performance at Scale: Analysis, Modeling, and Optimization

Jinshu Liu, Hamid Hadian, Hanchen Xu, Daniel S. Berger, Huaicheng Li

AI总结:

提出CXL内存性能特征化框架SupMario,基于265个负载构建精确预测模型,并设计“最佳尝试”页面交错与受控分层策略Alto,显著提升带宽与延迟敏感负载性能。

摘要:

我们提出了 SupMario,这是一个旨在彻底分析、建模和优化 CXL 内存性能的特征化框架。SupMario 基于对 265 个工作负载的广泛评估,这些工作负载跨越 4 个处理器平台上的 4 个真实 CXL 设备以及 7 种内存延迟配置。SupMario 揭示了许多关键洞察,包括在亚微秒级内存延迟(140-410 ns)下的详细工作负载性能、CXL 尾部延迟、CPU 对 CXL 延迟的容忍度、CXL 性能根因分析以及精确的性能预测模型。特别是,SupMario 性能模型仅依赖 12 个 CPU 性能计数器,并以 10% 的误预测目标,分别对 NUMA 和 CXL 内存准确拟合了超过 99% 和 91%-94% 的工作负载。我们通过将 SupMario 的特征化发现、模型和洞察应用于流行的 CXL 内存管理方案(如页面交错和分层策略),以识别运行时的系统低效问题,从而展示了其实用价值。我们引入了一种新颖的“最佳尝试”页面交错策略和一种受控的页面分层策略(Alto),专为对内存带宽和延迟敏感的工作负载量身定制。在带宽受限场景中,由我们新颖的性能预测模型指导的“最佳尝试”交错,通过利用聚合系统和 CXL/NUMA 内存带宽,实现了接近最优的场景。对于延迟敏感的工作负载,Alto 由我们利用“摊销”内存延迟来调节不必要的页面迁移这一关键洞察驱动,正如通过对 8 个真实应用程序的广泛评估所证明的那样,与 TPP 等最先进的内存分层系统相比,实现了高达 177% 的性能提升。

英文摘要:

We present SupMario, a characterization framework designed to thoroughly analyze, model, and optimize CXL memory performance. SupMario is based on extensive evaluation of 265 workloads spanning 4 real CXL devices within 7 memory latency configurations across 4 processor platforms. SupMario uncovers many key insights, including detailed workload performance at sub-us memory latencies (140-410 ns), CXL tail latencies, CPU tolerance to CXL latencies, CXL performance root-cause analysis and precise performance prediction models. In particular, SupMario performance models rely solely on 12 CPU performance counters and accurately fit over 99% and 91%-94% workloads with a 10% misprediction target for NUMA and CXL memory, respectively. We demonstrate the practical utility of SupMario characterization findings, models, and insights by applying them to popular CXL memory management schemes, such as page interleaving and tiering policies, to identify system inefficiencies during runtime. We introduce a novel ``bestshot'' page interleaving policy and a regulated page tiering policy (Alto) tailored for memory bandwidth- and latency-sensitive workloads. In bandwidth bound scenarios, our ``best-shot'' interleaving, guided by our novel performance prediction model, achieves close-to optimal scenarios by exploiting the aggregate system and CXL/NUMA memory bandwidth. For latency sensitive workloads, Alto, driven by our key insight of utilizing ``amortized'' memory latency to regulate unnecessary page migrations, achieves up to 177% improvement over state-of-the-art memory tiering systems like TPP, as demonstrated through extensive evaluation with 8 real-world applications.

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

↑