Research and Implementation of Memory Optimization Based on Parallel Computing Engine Spark
- Author
- FengLin
- Advisor
- ChenKang
- School
- Tsinghua University
- Major
- Computer Science and Technology
- Classification
- TP333.1 In the internal memory (main memory ) General
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 88
- Citations
- 0
Abstract
Use memory to do parallel computing is an hot topic in this area. Compared withtraditional methods that transfer through disk and network, using memory can decreasedatatransfertimealot,espeicallyfordataintensivejob,canbetentimesfaster. Whilethenew frame is developing, how to the relative limited resource effectively, and guaranteejob’s running time, is becoming an urgent problem to resolve.the work of this dissertation is based on parrellel computing engine Spark, does re-search on the cache usage behaviour of parrallel cluster. Through analying and modelingto the memory usage behaviour, the cacahe use was automated and optimized. Increasethe running efficiency under limited resource environment, and the stability at differentcluster configuration. The main contributions are:Implemented cache strategy automation by analyzing semantic of the srouce code.That is the scheduler can distinguish valued RDDs and put them in cache, avoidcache waste and leverage the burden of programmer.Optimized the cache replacement strategy, by analyzing code’s semantic and getdetail information of the job. Include computing the size and weight of RDD, op-timize the order of actions, form new replacement algorithm by combining registerallcation algorithm and weight information, and multiple level cache mode. Thenalso initial analyzed the cache behaviour on heterogeneous cluster.At last, through various experiments, proved that the job running efficiency can beincreased. and the suitablity under different cluster enviroment can be increasedtoo. The work is also valuable for other parallel system’s cache usage.
Table of contents
Abstract 3-4
Abstract 4-8
Chapter 1 Introduction 8-15
1.1 Overview of parallel computing 8-10
1.1.1 MapReduce model 8-9
1.1.2 Dryad model 9-10
1.1.3 Pregal model 10
1.2 MapReduce status quo 10-12
1.3 This article contribution 12-13
1.4 Chapter Summary 13-15
Chapter 2 parallel computing framework Spark 15-23
2.1 Spark brief 15-17
2.1.1 Spark Job write 16-17
architecture 2.2 Spark of 17-22
2.2.1 resource Management Framework Mesos 17-18
2.2.2 Spark design ideas 18
2.2.3 Spark realization 18-19
2.2.4 PageRank case analysis 19-22
2.3 Chapter Summary 22-23
Chapter 3 Spark program automatically optimizes memory usage 23-32
3.1 cache automation 23-27
3.1.1 background 23-26
3.1.2 automation solutions 26 -27
3.2 cache replacement strategy optimization 27-30
3.3 virtual cluster system behavior under optimized 30-31
3.4 Summary 31 -32
Chapter 4 Spark optimization program to achieve 32-51
4.1 caching policy automation to achieve 32-34
4.1.1 dynamic Analysis 32 ; 4.1.2 static analysis nbsp -33
33-34
4.1.3 results presentation 34
4.2 cache replacement strategy optimization to achieve 34-49
4.2.1 Action sequence optimization 35-39
4.2.2 RDD weight calculation 39-43
4.2.3 replacement strategy optimization 43- 48
4.2.4 multi-level caching strategy 48-49
4.3 Chapter Summary 49-51
Chapter 5 test and Evaluation 51-62
5.1 experimental methods and purposes 51
5.2 experimental environment 51-52
5.3 test environment installation 52-55
5.3.1 scope 52
5.3.2 requires root privileges steps 52-53
5.3.3 software installation path 53
5.3.4 Mesos installation 53-54
5.3.5 Spark installation 54
5.3.6 Hadoop installation 54-55
5.4 experimental task 55
5.5 experimental results and analysis 55-61
5.5.1 experiment a Logistic Regression 55-57
5.5.2 experiment two sortBykey 57-58
5.5.3 comparison of experimental three different caching strategies 58-59
5.5.4 experiment 4 Action sequence effect experiment 59-60
5.5.5 experiments over five level cache effect experiment 60-61
5.6 Chapter Summary 61-62
Chapter 6 summarizes 62-66
6.1 This article summarizes 62-63
6.2 The next step 63-66
references 66-69
Thanks 69-71
resume during the study published academic papers and research 71
Related dissertations
- Loan Default Prediction Based on Imbalanced Data Classification
- Design and Implementation of High Speed Data Recorder Based on FPGA
- Design and Implementation of Machine Learning Platform Based on Spark
- The Design and Implementation of a Delivery and Scheduling System for Video Files
- Research on the Technologies of Internet Traffic Localiztion
- A Study of GPU-based Parallel Learning to Rank
- Research on System Stability for Haptic Rendering
- Research on Key Technology of Modeling and Rendering for Virtual Natural Scene
- Study on Distributed Large-scale Microscopic Traffic Simulation
- Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
- Research on Boundary Face Method Base on GPU-acceleration
- Parallelization Research of Face Recognition and Texture Synthesis Algorithm Base on MATLAB Multi-core Clusters
- An Efficient Hardware Architecture Design of Texture Mapping Unit
- Research of Image Registration and Mosaic Technology Based on GPU
- Model Optimization Technique Based on Viewpoint-dependent and Application
- Research on Detection and Recognition of Traffic Objects in City Environments
- Human Action Recognition Based on Kinect Skeleton Information
- Study of adaptive beamforming processor based on GPU
- Study and Implementation of Fast Super-resolution Reconstruction Methods
- A Parallel Research on Feature Detection and Feature Matching Based on3D Reconstruction with Multi-View