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

计算机科学 隐藏物 算法 缓存算法 并行计算 驱逐 方案(数学) CPU缓存 数学 政治学 数学分析 法学
作者
Dhruv Mátáni,Ketan A. Shah,Anirban Mitra
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:17
标识
DOI:10.48550/arxiv.2110.11602
摘要

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).

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
乐乐应助xxx采纳,获得10
1秒前
Nole应助芝士牛堡采纳,获得30
1秒前
王萌萌发布了新的文献求助10
1秒前
EED发布了新的文献求助10
2秒前
oboul完成签到,获得积分10
2秒前
3秒前
丘比特应助机智书本采纳,获得10
3秒前
3秒前
3秒前
hhh关闭了hhh文献求助
3秒前
4秒前
科目三应助lingling采纳,获得10
4秒前
4秒前
leezhen完成签到,获得积分10
5秒前
6秒前
平常听枫完成签到,获得积分10
6秒前
于是完成签到,获得积分10
6秒前
lll发布了新的文献求助20
7秒前
8秒前
tcc发布了新的文献求助10
8秒前
开心饭发布了新的文献求助10
8秒前
科研通AI6.4应助机智书本采纳,获得10
9秒前
9秒前
useless发布了新的文献求助10
9秒前
Mine_cherry应助数学初学者采纳,获得50
10秒前
麦益颖完成签到,获得积分20
10秒前
Cxxxx发布了新的文献求助10
10秒前
打打应助粗心的月光采纳,获得10
11秒前
11秒前
香蕉靖雁发布了新的文献求助10
11秒前
Fei豪完成签到,获得积分10
11秒前
fanjinze完成签到,获得积分10
12秒前
12秒前
在水一方应助福路采纳,获得10
14秒前
15秒前
sarina发布了新的文献求助30
15秒前
zz发布了新的文献求助10
15秒前
灯火完成签到,获得积分10
15秒前
CipherSage应助王萌萌采纳,获得10
15秒前
Akim应助王萌萌采纳,获得10
16秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
2026年中国辛酸癸酸聚乙二醇甘油酯行业市场现状调查及投资机会研判报告 1000
2026年中国辛酸癸酸聚乙二醇甘油酯行业市场规模及竞争格局分析报告 1000
模型平均及其应用 900
Nondestructive Testing Handbook: Vol. 4, Thermal and Infrared Testing (IR), 4th ed 800
Évora na Idade Média 555
作者名:Kristopher P. Plain,悉尼大学的,目前只能查到其四篇论文,想找到其博士论文 550
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7344633
求助须知:如何正确求助?哪些是违规求助? 8957130
关于积分的说明 19019140
捐赠科研通 6996427
什么是DOI,文献DOI怎么找? 3219816
关于科研通互助平台的介绍 2384785
邀请新用户注册赠送积分活动 2200028