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

Request the full text

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

  1. Loan Default Prediction Based on Imbalanced Data Classification
    ZhouLiFeng ·Central South University ·2013 ·Master's thesis
  2. Design and Implementation of High Speed Data Recorder Based on FPGA
  3. Design and Implementation of Machine Learning Platform Based on Spark
    TangZhenKun ·Xiamen University ·2014 ·Master's thesis
  4. The Design and Implementation of a Delivery and Scheduling System for Video Files
  5. Research on the Technologies of Internet Traffic Localiztion
    YuJiang ·Jilin University ·2013 ·Master's thesis
  6. A Study of GPU-based Parallel Learning to Rank
    FanXiXian ·Harbin Institute of Technology ·2012 ·Master's thesis
  7. Research on System Stability for Haptic Rendering
  8. Research on Key Technology of Modeling and Rendering for Virtual Natural Scene
    WangHaiLing ·Harbin Engineering University ·2013 ·Doctoral dissertation
  9. Study on Distributed Large-scale Microscopic Traffic Simulation
    MaWenXue ·Chang'an University ·2013 ·Master's thesis
  10. Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
    XiaoZuo ·Northeastern University ·2011 ·Master's thesis
  11. Research on Boundary Face Method Base on GPU-acceleration
    YuLieXiang ·Hunan University ·2013 ·Master's thesis
  12. Parallelization Research of Face Recognition and Texture Synthesis Algorithm Base on MATLAB Multi-core Clusters
    YuMengLing ·Liaoning Normal University ·2012 ·Master's thesis
  13. An Efficient Hardware Architecture Design of Texture Mapping Unit
    ZhaoGuoYu ·Tianjin University ·2012 ·Master's thesis
  14. Research of Image Registration and Mosaic Technology Based on GPU
    ZouGang ·Tianjin University ·2012 ·Master's thesis
  15. Model Optimization Technique Based on Viewpoint-dependent and Application
  16. Research on Detection and Recognition of Traffic Objects in City Environments
    LiYi ·Central South University ·2013 ·Doctoral dissertation
  17. Human Action Recognition Based on Kinect Skeleton Information
    LiuFei ·Donghua University ·2014 ·Master's thesis
  18. Study of adaptive beamforming processor based on GPU
  19. Study and Implementation of Fast Super-resolution Reconstruction Methods
  20. A Parallel Research on Feature Detection and Feature Matching Based on3D Reconstruction with Multi-View
    FengBing ·Ningxia University ·2014 ·Master's thesis