arrow
返回

Learning-Based Dynamic Memory Allocation Schemes for Apache Spark Data Processing

delete2024-01-01
delete0
PRE
AI
D
Danlin Jia *
L
Li Wang
N
Natalia Valencia
J
Janki Bhimani
B
Bo Sheng
N
Ningfang Mi
DOI:10.1109/TCC.2023.3329129delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Apache Spark is an in-memory analytic framework that has been adopted in the industry and research fields. Two memory managers, Static and Unified, are available in Spark to allocate memory for caching Resilient Distributed Datasets (RDDs) and executing tasks. However, we find that the static memory manager (SMM) lacks flexibility, while the unified memory manager (UMM) puts heavy pressure on the garbage collection of the JVM on which Spark resides. To address these issues, we design a learning-based bidirectional usage-bounded memory allocation scheme to support dynamic memory allocation with the consideration of both memory demands and latency introduced by garbage collection. We first develop an auto-tuning memory manager (ATuMm) that adopts an intuitive feedback-based learning solution. However, ATuMm is a slow learner that can only alter the states of Java Virtual Memory (JVM) Heap in a limited range. That is, ATuMm decides to increase or decrease the boundary between the execution and storage memory pools by a fixed portion of JVM Heap size. To overcome this shortcoming, we further develop a new reinforcement learning-based memory manager (Q-ATuMm) that uses a Q-learning intelligent agent to dynamically learn and tune the partition of JVM Heap. We implement our new memory managers in Spark 2.4.0 and evaluate them by conducting experiments in a real Spark cluster. Our experimental results show that our memory manager can reduce the total garbage collection time and thus further improve Spark applications' performance (i.e., reduced latency) compared to the existing Spark memory management solutions. By integrating our machine learning-driven memory manager into Spark, we can further obtain around 1.3x times reduction in the latency.
Keyword:
Sparks
Memory management
Q-learning
Java
Task analysis
Cluster computing
Heuristic algorithms
JVM memory management
distributed data processing
machine learning
Apache Spark
Leveraging resource management for efficient performance of Apache Spark
err2019-08-23
err14
errOAAI
errAziz, Khadija; Zaidouni, Dounia; Bellafkih, Mostafa
err分享
err收藏
Parallel and Distributed Implementation of Sine Cosine Algorithm on Apache Spark Platform
err2021-01-01
err5
errOAAI
errAlfailakawi, Mohammad Gh.; Aljame, Maryam; Ahmad, Imtiaz
err分享
err收藏
Privacy-Preserving Machine Learning on Apache Spark
err2023-01-01
err1
errOAAI
errBrito, Claudia V.; Ferreira, Pedro G.; Portela, Bernardo L.; Oliveira, Rui C.; Paulo, Joao T.
err分享
err收藏
Cloud-agnostic architectures for machine learning based on Apache Spark
err2021-09-01
err7
errOAAI
errNagy, Eniko; Lovas, Robert; Pintye, Istvan; Hajnal, Akos; Kacsuk, Peter
err分享
err收藏

期刊

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

机构

State University System of Florida 封面图
State University System of Florida
学者数:
12.8W
论文数: 10.9W
被引数: 13.2W
N
Northeastern University
学者数:
5.4K
论文数: 1.8K
被引数: 1.3W
F
Florida International University
学者数:
564
论文数: 265
被引数: 3.6K
学者 查看更多机构
引用论文

引用论文

err
IF0
err
err0
PREAI
err
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Network medicine links SARS-CoV-2/COVID-19 infection to brain microvascular injury and neuroinflammation in dementia-like cognitive impairment
err
IF0
err2021-03-22
err0
errOAAI
errYadi Zhou; Jielin Xu; Yuan Hou; James B. Leverenz; Asha Kallianpur; Reena Mehra; Yunlong Liu; Haiyuan Yu; Andrew A. Pieper; Lara Jehi; Feixiong Cheng
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Beachgoer perceptions on health regulations of COVID-19 in two popular beaches on the Brazilian Amazon
err2021-06-01
err0
errOAAI
errLuci Cajueiro Carneiro Pereira; Rosigleyse Corrêa de Sousa Felix; Ana Beatriz Brito Dias; Rubem Manoel Coelho Pessoa; Brenda Ribeiro Padilha da Silva; Carlos Alessandro da Costa Baldez; Rauquírio Marinho da Costa; Taynara Sousa da Silva; Luciane Ferreira da Silva Assis; José A. Jimenez
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
A View of Cloud Computing云计算的观点
err2010-04-01
err6.0K
errOAAI
errArmbrust, Michael; Fox, Armando; Griffith, Rean; Joseph, Anthony D.; Katz, Randy; Konwinski, Andy; Lee, Gunho; Patterson, David; Rabkin, Ariel; Stoica, Ion; Zaharia, Matei
err分享
err收藏
Q-Learning Algorithms: A Comprehensive Classification and Applications
err2019-01-01
err296
errOAAI
errJang, Beakcheol; Kim, Myeonghwi; Harerimana, Gaspard; Kim, Jong Wook
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
没有更多内容