Jenga: Responsive Tiered Memory Management without Thrashing

Rohan Kadekodi, Haoran Peng, Gilbert Bernstein, Michael D. Ernst, Baris KasikciarXiv 2025 · DOI

Introduction

As datacenters scale, memory costs have become a dominant factor, often accounting for up to 50% of total server costs. To mitigate these expenses, tiered memory architectures—combining a high-performance "fast tier" (DRAM) with a larger, cost-effective "capacity tier" (e.g., CXL-connected memory or NVM)—have emerged as a critical solution. However, the effectiveness of tiered memory depends heavily on the Operating System's ability to manage page migrations efficiently. Existing systems frequently suffer from "object mixing," where hot and cold data share the same page, and "thrashing," caused by unstable hotness tracking. Jenga is a novel tiered memory management system designed to solve these issues through context-aware allocation and smooth hotness tracking.

System Design: Context and Smoothness

Jenga introduces two primary innovations to optimize tiered memory performance: a context-based heap allocator and a continuous hotness tracking mechanism.

Context-Based Heap Allocator

Standard allocators typically group objects by size or allocation time, which often leads to poor object affinity. Jenga’s allocator instead leverages the calling context (the stack trace) to predict data hotness. The core insight is that objects allocated by the same function call often serve similar semantic purposes and exhibit similar access frequencies. By grouping objects with identical call stacks and sizes onto the same pages, Jenga ensures high page-level hotness uniformity. This prevents "cold" objects from pinning "hot" pages in the fast tier, or conversely, "hot" objects from being trapped on mostly "cold" pages in the capacity tier.

Context-based grouping in Jenga's hybrid memory allocator.

Smooth Hotness Tracking

To address the "sawtooth problem"—where periodic decay of access counters leads to jerky measurements and system instability—Jenga implements a smooth exponential decay. Instead of decaying counters at fixed global intervals, Jenga applies a mathematically derived decay factor to a page's counter on every single access. This decoupling of decay from global time allows the system to react to workload phase changes immediately and smoothly, significantly reducing the risk of thrashing.

Evaluation and Benchmarks

Jenga was evaluated against ten memory-intensive applications, including key-value stores (FlexKVS, Silo), graph processing frameworks (GAPBS, Graph500), and scientific computing benchmarks (XSBench, bwaves). These workloads represent a diverse range of memory access patterns and object allocation behaviors, varying from stable working sets to frequent phase shifts.

Key Results and Performance

Jenga demonstrates significant performance gains and improved responsiveness over state-of-the-art systems like Memtis and TPP.

Throughput and Responsiveness

In scenarios involving sudden workload phase changes, Jenga’s smooth tracking mechanism allows it to adapt its "hot set" far more effectively than competing systems. While other systems may experience prolonged performance dips or excessive noise during transitions, Jenga quickly stabilizes at a high throughput level.

Throughput comparison during a workload phase change.

Efficiency and Overhead

On average, Jenga achieves a 28% speedup across the evaluated benchmarks. Furthermore, its efficient packing of hot objects allows it to achieve the same performance as baseline systems while using 2.5x to 4x less fast-tier memory. These gains are achieved with minimal overhead: CPU usage remains below 3% of a single core, and memory metadata overhead is less than 0.3%.

Conclusion and Future Work

Jenga provides a robust solution for tiered memory management by addressing the fundamental issues of object affinity and tracking stability. By utilizing stack traces as a signal for data hotness and implementing smooth decay, Jenga achieves superior performance with negligible overhead. Future research will explore Jenga's performance on emerging CXL hardware and its interaction with larger page sizes (e.g., 2MB or 1GB hugepages) to further optimize datacenter memory efficiency.

Summary updated

BibTeX
@misc{kadekodi2025jenga,
  author = {Rohan Kadekodi and Haoran Peng and Gilbert Bernstein and Michael D. Ernst and Baris Kasikci},
  title = {{Jenga: Responsive Tiered Memory Management without Thrashing}},
  year = {2025},
  eprint = {2510.22869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.22869},
}
Figure