Selection and replacement algorithms for memory performance improvement in Spark
- 28 August 2015
- journal article
- research article
- Published by Wiley in Concurrency and Computation: Practice and Experience
- Vol. 28 (8) , 2473-2486
Abstract
Summary: As a parallel computation framework, Spark can cache repeatedly resilient distribution datasets (RDDs) partitions in different nodes to speed up the process of computation. However, Spark does not have a good mechanism to select reasonable RDDs to cache their partitions in limited memory. In this paper, we propose a novel selection algorithm, by which Spark can automatically select the RDDs to cache their partitions in memory according to the number of use for RDDs. Our selection algorithm speeds up iterative computations. Nevertheless, when many new RDDs are chosen to cache their partitions in memory while limited memory has been full of them, the system will adopt the least recently used (LRU) replacement algorithm. However, the LRU algorithm only considers whether the RDDs partitions are recently used while ignoring other factors such as the computation cost and so on. We also put forward a novel replacement algorithm called weight replacement (WR) algorithm, which takes comprehensive consideration of the partitions computation cost, the number of use for partitions, and the sizes of the partitions. Experiment results show that with our selection algorithm, Spark calculates faster than without the algorithm, and we find that Spark with WR algorithm shows better performance. Copyright © 2015 John Wiley & Sons, Ltd.Keywords
Funding Information
- Key Program of National Natural Science Foundation of China (61133005)
- Key Program of National Natural Science Foundation of China (61432005)
- National Natural Science Foundation of China (61370095)
- National Natural Science Foundation of China (61472124)
- National Natural Science Foundation of China (61202109)
This publication has 9 references indexed in Scilit:
- Deadline Based Resource Provisioningand Scheduling Algorithm for Scientific Workflows on CloudsIEEE Transactions on Cloud Computing, 2014
- Log analysis in cloud computing environment with Hadoop and Spark2013
- SaC‐FRAPP: a scalable and cost‐effective framework for privacy preservation over big data on cloudConcurrency and Computation: Practice and Experience, 2013
- RT-PLRU: A New Paging Scheme for Real--Time Execution of Program Codes on NAND Flash Memory for Portable Media PlayersIEEE Transactions on Computers, 2010
- The pathologies of big dataCommunications of the ACM, 2009
- The future of biocurationNature, 2008
- LRFU: a spectrum of policies that subsumes the least recently used and least frequently used policiesIEEE Transactions on Computers, 2001
- On the existence of a spectrum of policies that subsumes the least recently used (LRU) and least frequently used (LFU) policies1999
- Data cache management using frequency-based replacementACM SIGMETRICS Performance Evaluation Review, 1990