arrow
Return

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
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Spark
memory
cache replacement
least partition weight
data-aware

Journal

Science China Information Sciences cover
Science China Information Sciences
IF:
7.6
Papers:
4.9K
Citations:
8.9K

Organization

C
chinese academy of sciences
Scholars:
56.7W
Papers: 45.0W
Citations: 704
Cited Papers

Cited Papers

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
errShare
errSave
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
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Impact of congenital heart disease on fetal brain development and injury
err2011-10-01
err0
PREAI
errMary T. Donofrio; Adré J. duPlessis; Catherine Limperopoulos
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
researcher View more