arrow
返回

LPW: an efficient data-aware cache replacement strategy for Apache Spark

delete2022-12-26
delete2
PRE
AI
H
Hui Li
S
Shuping Ji
H
Hua Zhong
W
Wei Wang *
Z
Zhen Tang
韦
韦军 (Wei, Jun)
黄
黄涛 (Tao Huang)
DOI:10.1007/s11432-021-3406-5delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Caching is one of the most important techniques for the popular distributed big data processing framework Spark. For this big data parallel computing framework, which is designed to support various applications based on in-memory computing, it is not possible to cache every intermediate result due to the memory size limitation. The arbitrariness of cache application programming interface (API) usage, the diversity of application characteristics, and the variability of memory resources constitute challenges to achieving high system execution performance. Inefficient cache replacement strategies may cause different performance problems such as long application execution time, low memory utilization, high replacement frequency, and even program execution failure resulting from out of memory. The cache replacement strategy currently adopted by Spark is the least recently used (LRU) strategy. Although LRU is a classical algorithm and has been widely used, it lacks consideration for the environment and workloads. As a result, it cannot achieve good performance under many scenarios. In this paper, we propose a novel cache replacement algorithm, least partition weight (LPW). LPW takes comprehensive consideration of different factors affecting system performance, such as partition size, computational cost, and reference count. The LPW algorithm was implemented in Spark and compared against the LRU as well as other state-of-the-art mechanisms. Our detailed experiments indicate that LPW obviously outperforms its counterparts and can reduce the execution time by up to 75% under typical workloads. Furthermore, the decreasing eviction frequency also shows the LPW algorithm can generate more reasonable predictions.
Keyword:
Spark
memory
cache replacement
least partition weight
data-aware

期刊

Science China Information Sciences 封面图
Science China Information Sciences
IF:
7.6
论文数:
4.9K
被引数:
8.9K

机构

C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
引用论文

引用论文

Epidemiology of treatment-associated mucosal injury after treatment with newer regimens for lymphoma, breast, lung, or colorectal cancer
err2006-04-07
err0
PREAI
errJeffrey A. Jones; Elenir B. C. Avritscher; Catherine D. Cooksley; Marisol Michelet; B. Nebiyou Bekele; Linda S. Elting
err分享
err收藏
Characterizing and diagnosing out of memory errors in MapReduce applications
err2018-03-01
err4
PREAI
errXu, Lijie; Dou, Wensheng; Zhu, Feng; Gao, Chushu; Liu, Jie; Wei, Jun
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Impact of congenital heart disease on fetal brain development and injury
err2011-10-01
err0
PREAI
errMary T. Donofrio; Adré J. duPlessis; Catherine Limperopoulos
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
学者 查看更多内容