An O(1) algorithm for implementing the LFU cache eviction scheme

10/22/2021
by   Dhruv Matani, et al.
0

Cache eviction algorithms are used widely in operating systems, databases and other systems that use caches to speed up execution by caching data that is used by the application. There are many policies such as MRU (Most Recently Used), MFU (Most Frequently Used), LRU (Least Recently Used) and LFU (Least Frequently Used) which each have their advantages and drawbacks and are hence used in specific scenarios. By far, the most widely used algorithm is LRU, both for its O(1) speed of operation as well as its close resemblance to the kind of behaviour that is expected by most applications. The LFU algorithm also has behaviour desirable by many real world workloads. However, in many places, the LRU algorithm is is preferred over the LFU algorithm because of its lower run time complexity of O(1) versus O(log n). We present here an LFU cache eviction algorithm that has a runtime complexity of O(1) for all of its operations, which include insertion, access and deletion(eviction).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/17/2023

Cache-Oblivious Parallel Convex Hull in the Binary Forking Model

We present two cache-oblivious sorting-based convex hull algorithms in t...
research
07/07/2017

Duty to Delete on Non-Volatile Memory

We firstly suggest new cache policy applying the duty to delete invalid ...
research
11/05/2018

On the complexity of cache analysis for different replacement policies

Modern processors use cache memory: a memory access that "hits" the cach...
research
05/03/2018

ReCA: an Efficient Reconfigurable Cache Architecture for Storage Systems with Online Workload Characterization

In recent years, SSDs have gained tremendous attention in computing and ...
research
11/05/2021

RC-RNN: Reconfigurable Cache Architecture for Storage Systems Using Recurrent Neural Networks

Solid-State Drives (SSDs) have significant performance advantages over t...
research
03/06/2023

Optimizing L1 cache for embedded systems through grammatical evolution

Nowadays, embedded systems are provided with cache memories that are lar...
research
11/03/2022

SQUID: Faster Analytics via Sampled Quantiles Data-structure

Measurement is a fundamental enabler of network applications such as loa...

Please sign up or login with your details

Forgot password? Click here to reset