arrow
返回

Multi-Tenant In-Memory Key-Value Cache Partitioning Using Efficient Random Sampling-Based LRU Model

delete2023-10-01
delete0
PRE
AI
Y
Yuchen Wang
J
Junyao Yang
Z
Zhenlin Wang *
DOI:10.1109/TCC.2023.3300889delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
In-memory key-value caches are widely used as a performance-critical layer in web applications, disk-based storage, and distributed systems. The Least Recently Used (LRU) replacement policy has become the de facto standard in those systems since it exploits workload locality well. However, the LRU implementation can be costly due to the rigid data structure in maintaining object priority, as well as the locks for object order updating. Redis as one of the most effective and prevalent deployed commercial systems adopts an approximated LRU policy, where the least recently used item from a small, randomly sampled set of items is chosen to evict. This random sampling-based policy is lightweight and shows its flexibility. We observe that there can exist a significant miss ratio gap between exact LRU and random sampling-based LRU under different sampling size $K$Ks. Therefore existing LRU miss ratio curve (MRC) construction techniques cannot be directly applied without loss of accuracy. In this article, we introduce a new probabilistic stack algorithm named KRR to accurately model random sampling based-LRU, and extend it to handle both fixed and variable objects in key-value caches. We present an efficient stack update algorithm that reduces the expected running time of KRR significantly. To improve the performance of the in-memory multi-tenant key-value cache that utilizes random sampling-based replacement, we propose kRedis, a reference locality- and latency-aware memory partitioning scheme. kRedis guides the memory allocation among the tenants and dynamically customizes $K$K to better exploit the locality of each individual tenant. Evaluation results over diverse workloads show that our model generates accurate miss ratio curves for both fixed and variable object size workloads, and enables practical, low-overhead online MRC prediction. Equipped with KRR, kRedis delivers up to a 50.2% average access latency reduction, and up to a 262.8% throughput improvement compared to Redis. Furthermore, by comparing with pRedis, a state-of-the-art design of memory allocation in Redis, kRedis shows up to 24.8% and 61.8% improvements in average access latency and throughput, respectively.
Keyword:
Partitioning algorithms
Resource management
Memory management
Cloud computing
Approximation algorithms
Throughput
Heuristic algorithms
Application servers
multi-tenant
LRU
modeling methodologies
memory allocation

期刊

I
IEEE Transactions on Cloud Computing
IF:
5
论文数:
1.9K
被引数:
4.3K

机构

M
Michigan Technological University
学者数:
5.0K
论文数: 4.4K
被引数: 6.4K
引用论文

引用论文

First Capture of Antiprotons in a Penning Trap: A Kiloelectronvolt Source
err1986-11-17
err0
errOAAI
errG. Gabrielse; X. Fei; K. Helmerson; S. L. Rolston; R. Tjoelker; T. A. Trainor; H. Kalinowsky; J. Haas; W. Kells
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Facile preparation of in situ coated Ti3C2Tx/Ni0.5Zn0.5Fe2O4composites and their electromagnetic performance原位涂层Ti3C2Tx/Ni0.5Zn0.5Fe2O4 复合材料及其电磁性能
err2017-01-01
err0
errOAAI
errYoubing Li; Xiaobing Zhou; Jing Wang; Qihuang Deng; Mian Li; Shiyu Du; Young-Hwan Han; Jaehyung Lee; Qing Huang
err分享
err收藏
Optimizing Locality-Aware Memory Management of Key-Value Caches
err2017-05-01
err12
errOAAI
errHu, Xiameng; Wang, Xiaolin; Zhou, Lan; Luo, Yingwei; Ding, Chen; Jiang, Song; Wang, Zhenlin
err分享
err收藏
The Australian diffractometer at the Photon Factory
err1992-01-01
err0
PREAI
errZ. Barnea; D. C. Creagh; T. J. Davis; R. F. Garrett; S. Janky; A. W. Stevenson; S. W. Wilkins
err分享
err收藏
FTS3‐01‐02: SUBGROUP POPULATIONS IN AMARANTH, A RANDOMIZED PHASE 2/3 STUDY IN EARLY ALZHEIMER'S DISEASE WITH LANABECESTAT
err2019-07-01
err0
PREAI
errPierre N. Tariot; Katherine J. Selzler; Alette M. Wessels; Scott W. Andersen; Jamie Mullen; Jennifer A. Zimmer; John R. Sims
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
学者 查看更多内容