Skip to main content
QUICK REVIEW

[论文解读] TPP: Transparent Page Placement for CXL-Enabled Tiered-Memory

Hasan Al Maruf, Hao Wang|arXiv (Cornell University)|Jun 6, 2022
Advanced Data Storage TechnologiesComputer Science被引用 17
一句话总结

本文提出 TPP,一种面向 CXL 优化的分层内存系统的透明、操作系统级页放置机制,可主动将冷页迁移至较慢的 CXL 内存,同时迅速将热页重新提升至高速本地内存。在生产工作负载上的评估表明,TPP 实现了接近基线的性能(与全本地内存系统相比差距小于 1%),相比 Linux 提升 18%,相比 NUMA 平衡和 AutoTiering 提升 5–17%。

ABSTRACT

The increasing demand for memory in hyperscale applications has led to memory becoming a large portion of the overall datacenter spend. The emergence of coherent interfaces like CXL enables main memory expansion and offers an efficient solution to this problem. In such systems, the main memory can constitute different memory technologies with varied characteristics. In this paper, we characterize memory usage patterns of a wide range of datacenter applications across the server fleet of Meta. We, therefore, demonstrate the opportunities to offload colder pages to slower memory tiers for these applications. Without efficient memory management, however, such systems can significantly degrade performance. We propose a novel OS-level application-transparent page placement mechanism (TPP) for CXL-enabled memory. TPP employs a lightweight mechanism to identify and place hot/cold pages to appropriate memory tiers. It enables a proactive page demotion from local memory to CXL-Memory. This technique ensures a memory headroom for new page allocations that are often related to request processing and tend to be short-lived and hot. At the same time, TPP can promptly promote performance-critical hot pages trapped in the slow CXL-Memory to the fast local memory, while minimizing both sampling overhead and unnecessary migrations. TPP works transparently without any application-specific knowledge and can be deployed globally as a kernel release. We evaluate TPP in the production server fleet with early samples of new x86 CPUs with CXL 1.1 support. TPP makes a tiered memory system performant as an ideal baseline (<1% gap) that has all the memory in the local tier. It is 18% better than today's Linux, and 5-17% better than existing solutions including NUMA Balancing and AutoTiering. Most of the TPP patches have been merged in the Linux v5.18 release.

研究动机与目标

  • 通过利用 CXL 实现成本效益高、容量大的分层内存,以应对超大规模数据中心日益增长的内存成本。
  • 解决异构内存系统中因访问延迟差异导致的性能下降问题,该问题源于低效的页放置策略。
  • 设计一种应用透明、操作系统级别的页放置机制,无需内核修改或应用特定调优。
  • 通过解耦内存分配与回收路径,实现 CXL 基础系统中的高效内存管理。
  • 在确保关键性能页始终保留在高速内存中的前提下,最小化采样与迁移开销。

提出的方法

  • 设计轻量级用户空间工具 Chameleon,利用 CPU 精确事件驱动采样(PEBS)分析应用内存访问模式,且无需内核修改。
  • 提出 TPP,一种操作系统级别的透明页放置机制,采用轻量级回收机制,将冷页下放到 CXL 内存。
  • 实现解耦的分配与回收路径,防止在内存压力下导致性能下降。
  • 在内核中使用基于 LRU 的页温度检测方法,作为 CXL 内存系统中足够且开销低的手段。
  • 实现冷页的主动下放与热页的快速提升,以最小化迁移与采样开销,同时维持高性能。
  • 将 TPP 集成至 Linux 内核,其中大部分补丁已合并至 v5.18 版本,其余补丁正在等待合并。

实验结果

研究问题

  • RQ1CXL 支持的分层内存系统能否在不降低应用性能的前提下显著降低数据中心内存成本?
  • RQ2真实世界数据中心应用的内存访问模式如何?其工作集的多大比例可安全地卸载至较慢的内存层级?
  • RQ3操作系统级别的页放置机制如何在最小性能开销下高效管理跨内存层级的页迁移?
  • RQ4一种透明、与应用无关的页放置机制能否在生产环境中超越现有方案(如 NUMA 平衡与 AutoTiering)?
  • RQ5在分层内存系统中解耦内存分配与回收路径会产生何种性能影响?

主要发现

  • Chameleon 分析显示,应用工作集中有相当一部分——尤其是文件映射页——为冷页,可安全地卸载至较慢的 CXL 内存,且对性能影响甚微。
  • 匿名内存页显著比文件映射页更热,表明对页类型敏感的感知可提升放置决策质量。
  • 内存访问模式在数分钟至数小时内保持稳定,支持基于观测行为做出可靠、长期的页放置决策。
  • 在支持 CXL 1.1 的生产工作负载中,TPP 相较于默认 Linux 内核实现 18% 的性能提升。
  • 在多种内存敏感型工作负载中,TPP 相较于 NUMA 平衡与 AutoTiering 提升 5–17%。
  • TPP 实现了接近理想性能(与全本地内存系统相比差距小于 1%),证明其在维持高性能方面的有效性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。