arXiv:2608.29993cs.DBAug 2026

Manuscript Offprint

arXiv:2608.29993

Demystifying and Improving Lazy Promotion in Cache Eviction

Qinghan Chen, Muhammad Haekal Muhyidin Al-Araby, Ziyue Qiu, Zhuofan Chen, Rashmi Vinayak, Juncheng Yang

Qinghan Chen

Carnegie Mellon University

Pittsburgh, PA

qinghanc@andrew.cmu.edu

Zhuofan Chen

Carnegie Mellon University

Pittsburgh, PA

zhuofanc@andrew.cmu.edu

Muhammad Haekal Muhyidin

Al-Araby

Sepuluh Nopember Institute of

Technology

Surabaya, Indonesia

5024221030@student.its.ac.id

Rashmi Vinayak

Carnegie Mellon University

Pittsburgh, PA

rvinayak@cs.cmu.edu

Ziyue Qiu

Carnegie Mellon University

Pittsburgh, PA

ziyueqiu@andrew.cmu.edu

ABSTRACT

Juncheng Yang

Harvard University

Cambridge, MA

juncheng@seas.harvard.edu

Cache eviction algorithms play a critical role in the performance of modern data systems, yet their scalability is often limited by the high computational overhead associated with object promotions. LAZY PROMOTION techniques have emerged as relaxations of traditional Least-Recently-Used (LRU) methods, designed to alleviate lock contention and increase throughput. This work uses production traces from real-world systems to benchmark five LAZY PROMOTION strategies: Probabilistic-LRU, Batch-LRU, Delay-LRU, FIFO-reinsertion, and Random-LRU. We evaluate these techniques across miss ratio, scalability, promotion count, and a novel metric called promotion efficiency, which measures the number of hits per promotion. Our results reveal that Delay-LRU and FIFO-reinsertion significantly improve promotion efficiency, whereas Batch-LRU and Probabilistic-LRU struggle to reduce promotions without significantly increasing miss ratio. We further explore the impact of lazy promotion in advanced algorithms such as ARC and 2Q and make a similar observation. Moreover, we uncover substantial optimization potential, showing that most cache promotions are unnecessary when equipped with oracle knowledge. To further reduce promotions in LRU, we propose two novel enhancements—Delayed FIFO-reinsertion (D-FR) and Age-Guided Eviction (AGE)—that reduce promotions by 20–60% while achieving a similar or lower miss ratio.

PVLDB Reference Format:

Qinghan Chen, Muhammad Haekal Muhyidin Al-Araby, Ziyue Qiu, Zhuofan Chen, Rashmi Vinayak, and Juncheng Yang. Demystifying and Improving Lazy Promotion in Cache Eviction. PVLDB, 19(4): 549 - 562, 2025.

doi:10.14778/3785297.3785299

PVLDB Artifact Availability:

The source code and data are available at https://github.com/cacheMon/Lazy-Promotions.

Figure

Figure 1: Left: overview of LAZY PROMOTION techniques. delay and FIFO-reinsertion (FR) are more effective than Batch-LRU and Probabilistic-LRU on reducing promotions and improving scalability (throughput at 16 threads) without significantly increasing the miss ratio. Right: We introduce two simple techniques, D-FR and AGE, to reduce promotions without increasing miss ratio.

1 INTRODUCTION

Caching plays an important role in data systems. A cache stores a small portion of popular objects on a fast storage device, allowing requests to be served very quickly from the cache. Caching is now integral to nearly every layer of modern computer systems. For example, databases rely on the buffer pool to load data quickly [28, 37]. In MySQL, the InnoDB buffer pool [31] acts as a cache, storing frequently accessed rows and index pages in memory. This reduces disk I/O, enabling faster data retrieval and improving query performance. Moreover, an operating system relies on the page cache to access data swiftly [2], and a content delivery network uses caching at the edge of the Internet to deliver images and videos to end users cheaply and quickly [39].

The efficiency of a cache is measured by miss ratio—the proportion of data requests that must be served by the backend. Reducing miss ratio allows more requests to be served from the cache and enables a faster and more responsive system. Besides efficiency, the other important metric of a cache is throughput, which measures the hits a cache can serve every second. A faster cache enables the operator to utilize fewer computational resources, thereby enhancing the utility of caching. Lastly, modern computer servers often have tens to hundreds of cores per socket [6, 7, 15, 53], making scalability—the capability to scale throughput with the number of cores, a critical requirement.

This work is licensed under the Creative Commons BY-NC-ND 4.0 International License. Visit https://creativecommons.org/licenses/by-nc-nd/4.0/ to view a copy of this license. For any use beyond those covered by this license, obtain permission by emailing info@vldb.org. Copyright is held by the owner/author(s). Publication rights licensed to the VLDB Endowment.

Proceedings of the VLDB Endowment, Vol. 19, No. 4 ISSN 2150-8097. doi:10.14778/3785297.3785299

At the core of caching is the cache eviction algorithm, which determines the objects stored in the cache and the order in which they are evicted. A good eviction algorithm maximizes the likelihood of cache hits, thus minimizing backend accesses and reducing data access latency. Least-Recently-Used (LRU) is the most popular eviction algorithm used in many production systems [3, 18, 56]. LRU uses a doubly-linked list to maintain objects in the order of their last access time, positioning the most recently used item at the head and the least recently used at the tail. When an object is accessed, it is promoted to the head of the list. During eviction, the object at the tail is removed. Because operations on items in the middle of a linked list cannot be performed atomically, all the operations in LRU require locking. This significantly limits the throughput of an LRU cache when using multiple CPU cores, as it must wait to acquire the lock. Although FIFO is more scalable than LRU, it has not been widely adopted because LRU is widely considered more efficient than FIFO, achieving a lower miss ratio [10, 17].

As scalability has increasingly become a concern for modern cache systems, production system engineers have developed different relaxations of LRU promotions to mitigate the scalability bottleneck. For example, Meta Cachelib [11] delays the promotion of a recently promoted object to reduce lock contention; Meta HHVM [45] employs a probabilistic LRU using try-lock – promote an object to the head of the linked list only upon a successful lock operation; Twitter Segcache [66] and Google Cliquemap [52] both use a batched eviction; and RocksDB [21] and PostgreSQL [47] use FIFO-reinsertion to reduce lock contention. Because these techniques primarily improve scalability by reducing the number of promotions and lock contention, similar to previous work [63], we refer to them as LAZY PROMOTION techniques.

Despite the broad deployment of LAZY PROMOTION techniques in production systems, there has not been a good understanding in the effectiveness of these techniques. It is often believed that LAZY PROMOTION makes a tradeoff between cache efficiency and scalability. As a result, these relaxations are sometimes called weak LRU [16, 29] because they sacrifice miss ratio to improve throughput and scalability.

We implement and benchmark LAZY PROMOTION techniques at scale to understand their effectiveness in improving scalability, reducing promotions, and maintaining miss ratio. We evaluate five different LAZY PROMOTION techniques from real-world systems: Probabilistic-LRU ( §3.1§3.1), Batch-LRU ( §3.2§3.2), Delay-LRU ( §3.3§3.3), FIFO-reinsertion ( §3.4§3.4), and Random-LRU ( §3.5§3.5) using traces from 9 different companies (Table 2), including Alibaba [36, 60], Cloudphysics [58], Meta [4], Microsoft [40], Tencent[75], Twitter [64], Wikipedia [61], and two content delivery networks. In total, we use 6357 traces of 346 billion requests for 2,818 TB of data.

We propose a new metric, promotion efficiency, to evaluate the effectiveness of different LAZY PROMOTION techniques. It measures the (average) number of hits a promotion leads to. A LAZY PROMOTION technique with high promotion efficiency indicates that its promotions are more valuable. LRU has a mean promotion efficiency of 0.037—each promotion only leads to 0.037 hits. Among the LAZY PROMOTION techniques, we find that Delay-LRU and FIFO-reinsertion are most effective. When the miss ratio is within 1% of LRU's performance, Delay-LRU and FIFO-reinsertion have promotion efficiency of as high as 0.4 and 0.3 hits per promotion, respectively. Batch-LRU is worse, achieving less than 0.1 hits per promotion. Probabilistic-LRU performs the worst because it randomly reduces promotion without distinguishing between popular and unpopular objects.

Many advanced eviction algorithms consist of one or more LRU queues. Our findings are not limited to LRU. We add LAZY PROMOTION to ARC [37] and 2Q [30]. We find that with Delay-LRU and FIFO-reinsertion can effectively reduce the number of promotions in ARC and 2Q, meanwhile Probabilistic-LRU and Batch-LRU are less effective, often leading to significant increases in miss ratio.

Using Belady’s MIN [10] as a reference for optimal cache eviction, we find that most cache promotions in LRU are unnecessary, with only 10% needed on average. This finding underscores the potential for optimization. Moreover, we find that promotion (reinsertion) on eviction (as in FIFO-reinsertion) is strictly better than promotion on cache hits. If we equip FIFO-reinsertion with future knowledge, it can reduce promotions by over 90% on average across all 6,357 traces while also slightly reducing miss ratio.

Leveraging our findings, we introduce two simple LAZY PROMOTION techniques, Delayed FIFO-reinsertion (D-FR) and Age-Guided Eviction (AGE), to further reduce the number of promotions and improve promotion efficiency. D-FR leverages delay in FIFO-reinsertion to reduce promotions, while AGE utilizes recency information to filter out unnecessary reinsertions in FIFO-reinsertion. Our evaluations on production traces show that these techniques achieve a lower or similar miss ratio while further reducing promotions by 20% – 60% and improving the promotion efficiency on average by more than 80%.

We make the following contributions in this paper:

  • We implemented and benchmarked the effectiveness of five different LAZY PROMOTION techniques from real-world systems and integrated them into advanced algorithms, including ARC and 2Q, using 6357 production traces.

  • We introduced a new metric, promotion efficiency, to evaluate how well algorithms minimize promotions while keeping a low miss ratio. Our results show that Delay-LRU and FIFO-reinsertion improve promotion efficiency.

  • We discovered that most promotions are unnecessary, suggesting a huge potential to further reduce promotions.

  • We present two simple techniques, D-FR and AGE, to reduce the unnecessary promotions while maintaining a similar or lower miss ratio. Evaluation on production traces shows that they can reduce promotions by 20–60% without impacting miss ratio.

References (13)