Skip to main content
QUICK REVIEW

[Paper 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 Science17 citations
TL;DR

This paper proposes TPP, a transparent, OS-level page placement mechanism for CXL-enabled tiered-memory systems that proactively demotes cold pages to slower CXL memory while promptly promoting hot pages back to fast local memory. Evaluated on production workloads, TPP achieves near-baseline performance (within 1% of all-local-memory) and outperforms Linux by 18%, as well as NUMA Balancing and AutoTiering by 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.

Motivation & Objective

  • To address the growing memory cost in hyperscale datacenters by enabling cost-effective, high-capacity tiered memory using CXL.
  • To overcome the performance degradation caused by inefficient page placement in heterogeneous memory systems with varying access latencies.
  • To design an application-transparent, OS-level page placement mechanism that works without kernel modifications or application-specific tuning.
  • To enable efficient memory management in CXL-based systems by decoupling memory allocation and reclamation paths.
  • To minimize sampling and migration overhead while ensuring performance-critical pages remain in fast memory.

Proposed method

  • Designing a lightweight user-space tool, Chameleon, that uses CPU Precise Event-Based Sampling (PEBS) to characterize application memory access patterns without kernel modifications.
  • Proposing TPP, an OS-level transparent page placement mechanism that uses a lightweight reclamation mechanism to demote cold pages to CXL-Memory.
  • Implementing a decoupled allocation and reclamation path to prevent performance degradation under memory pressure.
  • Using in-kernel LRU-based page temperature detection as a sufficient and low-overhead method for CXL-Memory systems.
  • Enabling proactive demotion of cold pages and rapid promotion of hot pages to maintain performance with minimal migration and sampling overhead.
  • Integrating TPP into the Linux kernel, with most patches merged in v5.18 and the remainder pending.

Experimental results

Research questions

  • RQ1Can CXL-enabled tiered-memory systems significantly reduce datacenter memory costs without degrading application performance?
  • RQ2What are the memory access patterns of real-world datacenter applications, and how much of their working set can be safely offloaded to slower memory tiers?
  • RQ3How can an OS-level page placement mechanism efficiently manage page migration across memory tiers with minimal performance overhead?
  • RQ4Can a transparent, application-agnostic page placement mechanism outperform existing solutions like NUMA Balancing and AutoTiering in production environments?
  • RQ5What are the performance implications of decoupling memory allocation and reclamation in tiered-memory systems?

Key findings

  • Chameleon analysis reveals that a meaningful portion of application working sets—especially file-backed pages—are cold and can be safely offloaded to slower CXL-Memory without significant performance impact.
  • Anon memory pages are significantly hotter than file-backed pages, indicating that page type awareness improves placement decisions.
  • Memory access patterns remain stable for minutes to hours, enabling reliable, long-term page placement decisions based on observed behavior.
  • TPP improves application performance by 18% compared to the default Linux kernel on production workloads with CXL 1.1 support.
  • TPP outperforms NUMA Balancing and AutoTiering by 5–17% across diverse memory-sensitive workloads.
  • TPP achieves near-ideal performance (within 1% gap) of a system with all memory in the fast local tier, demonstrating its effectiveness in maintaining high performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.