TPP:面向支持 CXL 的分层内存的透明页面放置机制
TPP: Transparent Page Placement for CXL-Enabled Tiered-Memory
AI总结:
本文提出操作系统级透明页面放置机制 TPP,通过轻量级热冷页识别与主动降级/提升策略优化 CXL 分层内存性能,在生产环境中较 Linux 提升 18%,并已合入 Linux v5.18。
摘要:
超大规模应用对内存需求的不断增长,已使内存成为数据中心总体支出中的重要组成部分。CXL 等一致性接口的出现使主内存扩展成为可能,并为这一问题提供了高效解决方案。在此类系统中,主内存可以由具有不同特性的多种内存技术构成。本文对 Meta 服务器集群中广泛的数据中心应用进行了内存使用模式特征分析,从而证明了将这些应用中较冷的页面卸载到较慢内存层的可行性机会。然而,若缺乏高效的内存管理,此类系统可能会显著降低性能。我们提出了一种新颖的、操作系统层面的、对应用透明的页面放置机制(TPP),用于支持 CXL 的内存系统。TPP 采用轻量级机制来识别热/冷页面并将其放置到合适的内存层。它支持将页面从本地内存主动降级到 CXL 内存。该技术确保了新页面分配所需的内存余量,这些新页面通常与请求处理相关,且往往是短生命周期和热页面。同时,TPP 能够迅速将滞留在较慢 CXL 内存中的性能关键热页面提升到较快的本地内存,同时最小化采样开销和不必要的迁移。TPP 在无需任何应用特定知识的情况下透明工作,并可作为内核版本在全球范围内部署。我们在生产服务器集群中使用支持 CXL 1.1 的新型 x86 CPU 早期样品对 TPP 进行了评估。TPP 使分层内存系统的性能接近理想基线(差距小于 1%),该理想基线将所有内存都置于本地层。TPP 比当前的 Linux 性能提升 18%,比现有解决方案(包括 NUMA Balancing 和 AutoTiering)提升 5-17%。TPP 的大部分补丁已合并到 Linux v5.18 版本中。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。