Data-Intensive Computing: From Clouds to GPUs Gagan Agrawal June 1, 20161.

Slides:



Advertisements
Similar presentations
Spark: Cluster Computing with Working Sets
Advertisements

CPS216: Advanced Database Systems (Data-intensive Computing Systems) How MapReduce Works (in Hadoop) Shivnath Babu.
Cloud Computing Other Mapreduce issues Keke Chen.
Computer Science and Engineering A Middleware for Developing and Deploying Scalable Remote Mining Services P. 1DataGrid Lab A Middleware for Developing.
HADOOP ADMIN: Session -2
Advanced Topics: MapReduce ECE 454 Computer Systems Programming Topics: Reductions Implemented in Distributed Frameworks Distributed Key-Value Stores Hadoop.
IPDPS, Supporting Fault Tolerance in a Data-Intensive Computing Middleware Tekin Bicer, Wei Jiang and Gagan Agrawal Department of Computer Science.
Venkatram Ramanathan 1. Motivation Evolution of Multi-Core Machines and the challenges Background: MapReduce and FREERIDE Co-clustering on FREERIDE Experimental.
Exploiting Domain-Specific High-level Runtime Support for Parallel Code Generation Xiaogang Li Ruoming Jin Gagan Agrawal Department of Computer and Information.
Scalable Data Clustering with GPUs Andrew D. Pangborn Thesis Defense Rochester Institute of Technology Computer Engineering Department Friday, May 14 th.
Venkatram Ramanathan 1. Motivation Evolution of Multi-Core Machines and the challenges Summary of Contributions Background: MapReduce and FREERIDE Wavelet.
Ohio State University Department of Computer Science and Engineering Automatic Data Virtualization - Supporting XML based abstractions on HDF5 Datasets.
CS525: Special Topics in DBs Large-Scale Data Management Hadoop/MapReduce Computing Paradigm Spring 2013 WPI, Mohamed Eltabakh 1.
Ex-MATE: Data-Intensive Computing with Large Reduction Objects and Its Application to Graph Mining Wei Jiang and Gagan Agrawal.
MapReduce: Simplified Data Processing on Large Clusters Jeffrey Dean and Sanjay Ghemawat.
Performance Issues in Parallelizing Data-Intensive applications on a Multi-core Cluster Vignesh Ravi and Gagan Agrawal
MapReduce: Hadoop Implementation. Outline MapReduce overview Applications of MapReduce Hadoop overview.
Hadoop/MapReduce Computing Paradigm 1 Shirish Agale.
Introduction to Hadoop and HDFS
A Framework for Elastic Execution of Existing MPI Programs Aarthi Raveendran Graduate Student Department Of CSE 1.
The Limitation of MapReduce: A Probing Case and a Lightweight Solution Zhiqiang Ma Lin Gu Department of Computer Science and Engineering The Hong Kong.
Shared Memory Parallelization of Decision Tree Construction Using a General Middleware Ruoming Jin Gagan Agrawal Department of Computer and Information.
Evaluating FERMI features for Data Mining Applications Masters Thesis Presentation Sinduja Muralidharan Advised by: Dr. Gagan Agrawal.
Data-Intensive Computing: From Multi-Cores and GPGPUs to Cloud Computing and Deep Web Gagan Agrawal u.
Integrating and Optimizing Transactional Memory in a Data Mining Middleware Vignesh Ravi and Gagan Agrawal Department of ComputerScience and Engg. The.
Data-Intensive and High Performance Computing on Cloud Environments Gagan Agrawal 1.
A Map-Reduce System with an Alternate API for Multi-Core Environments Wei Jiang, Vignesh T. Ravi and Gagan Agrawal.
Performance Prediction for Random Write Reductions: A Case Study in Modelling Shared Memory Programs Ruoming Jin Gagan Agrawal Department of Computer and.
MapReduce Kristof Bamps Wouter Deroey. Outline Problem overview MapReduce o overview o implementation o refinements o conclusion.
Computer Science and Engineering Predicting Performance for Grid-Based P. 1 IPDPS’07 A Performance Prediction Framework.
Computer Science and Engineering Parallelizing Defect Detection and Categorization Using FREERIDE Leonid Glimcher P. 1 ipdps’05 Scaling and Parallelizing.
FREERIDE: System Support for High Performance Data Mining Ruoming Jin Leo Glimcher Xuan Zhang Ge Yang Gagan Agrawal Department of Computer and Information.
High-level Interfaces and Abstractions for Data-Driven Applications in a Grid Environment Gagan Agrawal Department of Computer Science and Engineering.
Sep 11, 2009 Automatic Transformation of Applications onto GPUs and GPU Clusters PhD Candidacy presentation: Wenjing Ma Advisor: Dr Gagan Agrawal The.
Optimizing MapReduce for GPUs with Effective Shared Memory Usage Department of Computer Science and Engineering The Ohio State University Linchuan Chen.
Data-Intensive Computing: From Clouds to GPUs Gagan Agrawal December 3,
Compiler and Runtime Support for Enabling Generalized Reduction Computations on Heterogeneous Parallel Configurations Vignesh Ravi, Wenjing Ma, David Chiu.
CS525: Big Data Analytics MapReduce Computing Paradigm & Apache Hadoop Open Source Fall 2013 Elke A. Rundensteiner 1.
Data Parallelism Task Parallel Library (TPL) The use of lambdas Map-Reduce Pattern FEN 20141UCN Teknologi/act2learn.
 Frequent Word Combinations Mining and Indexing on HBase Hemanth Gokavarapu Santhosh Kumar Saminathan.
Supporting Load Balancing for Distributed Data-Intensive Applications Leonid Glimcher, Vignesh Ravi, and Gagan Agrawal Department of ComputerScience and.
Euro-Par, 2006 ICS 2009 A Translation System for Enabling Data Mining Applications on GPUs Wenjing Ma Gagan Agrawal The Ohio State University ICS 2009.
ApproxHadoop Bringing Approximations to MapReduce Frameworks
PDAC-10 Middleware Solutions for Data- Intensive (Scientific) Computing on Clouds Gagan Agrawal Ohio State University (Joint Work with Tekin Bicer, David.
MATE-CG: A MapReduce-Like Framework for Accelerating Data-Intensive Computations on Heterogeneous Clusters Wei Jiang and Gagan Agrawal.
System Support for High Performance Data Mining Ruoming Jin Leo Glimcher Xuan Zhang Gagan Agrawal Department of Computer and Information Sciences Ohio.
High-level Interfaces for Scalable Data Mining Ruoming Jin Gagan Agrawal Department of Computer and Information Sciences Ohio State University.
Hadoop/MapReduce Computing Paradigm 1 CS525: Special Topics in DBs Large-Scale Data Management Presented By Kelly Technologies
HEMANTH GOKAVARAPU SANTHOSH KUMAR SAMINATHAN Frequent Word Combinations Mining and Indexing on HBase.
Exploiting Computing Power of GPU for Data Mining Application Wenjing Ma, Leonid Glimcher, Gagan Agrawal.
AUTO-GC: Automatic Translation of Data Mining Applications to GPU Clusters Wenjing Ma Gagan Agrawal The Ohio State University.
Research Overview Gagan Agrawal Associate Professor.
Euro-Par, HASTE: An Adaptive Middleware for Supporting Time-Critical Event Handling in Distributed Environments ICAC 2008 Conference June 2 nd,
System Support for High Performance Scientific Data Mining Gagan Agrawal Ruoming Jin Raghu Machiraju S. Parthasarathy Department of Computer and Information.
COMP7330/7336 Advanced Parallel and Distributed Computing MapReduce - Introduction Dr. Xiao Qin Auburn University
Implementation of Classifier Tool in Twister Magesh khanna Vadivelu Shivaraman Janakiraman.
Accelerating K-Means Clustering with Parallel Implementations and GPU Computing Janki Bhimani Miriam Leeser Ningfang Mi
Computer Science and Engineering Parallelizing Feature Mining Using FREERIDE Leonid Glimcher P. 1 ipdps’04 Scaling and Parallelizing a Scientific Feature.
A Dynamic Scheduling Framework for Emerging Heterogeneous Systems
Accelerating MapReduce on a Coupled CPU-GPU Architecture
Year 2 Updates.
Communication and Memory Efficient Parallel Decision Tree Construction
Optimizing MapReduce for GPUs with Effective Shared Memory Usage
Wei Jiang Advisor: Dr. Gagan Agrawal
Data-Intensive Computing: From Clouds to GPU Clusters
An Adaptive Middleware for Supporting Time-Critical Event Response
Bin Ren, Gagan Agrawal, Brad Chamberlain, Steve Deitz
FREERIDE: A Framework for Rapid Implementation of Datamining Engines
FREERIDE: A Framework for Rapid Implementation of Datamining Engines
L. Glimcher, R. Jin, G. Agrawal Presented by: Leo Glimcher
Presentation transcript:

Data-Intensive Computing: From Clouds to GPUs Gagan Agrawal June 1, 20161

2  Growing need for analysis of large scale data  Scientific  Commercial  Data-intensive Supercomputing (DISC)  Map-Reduce has received a lot of attention  Database and Datamining communities  High performance computing community Motivation

Motivation (2)  Processor Architecture Trends  Clock speeds are not increasing  Trend towards multi-core architectures  Accelerators like GPUs are very popular  Cluster of multi-cores / GPUs are becoming common  Trend Towards the Cloud  Use storage/computing/services from a provider  How many of you prefer gmail over cse/osu account for ?  Utility model of computation  Need high-level APIs and adaptation June 1, 20163

My Research Group  Data-intensive theme at multiple levels  Parallel programming Models  Multi-cores and accelerators  Adaptive Middleware  Scientific Data Management / Workflows  Deep Web Integration and Analysis June 1, 20164

Personnel  Currently  10 PhD students  4 MS thesis students  Graduated PhDs  7 Graduated PhDs between 2005 and 2008 June 1, 20165

This Talk  Parallel Programming API for Data-Intensive Computing  An alternate API and System for Google’s Map- Reduce  Show actual comparison  Data-intensive Computing on Accelerators  Compilation for GPUs  Overview of other topics  Scientific Data Management  Adaptive and Streaming Middleware  Deep web June 1, 20166

Map-Reduce  Simple API for (data-intensive) parallel programming  Computation is:  Apply map on each input data element  Produce ( key,value ) pair(s)  Sort them using the key  Apply reduce on the set with a distinct key values June 1, 20167

8 Map-Reduce Execution

June 1,  Positives:  Simple API  Functional language based  Very easy to learn  Support for fault-tolerance  Important for very large-scale clusters  Questions  Performance?  Comparison with other approaches  Suitability for different class of applications? Map-Reduce: Positives and Questions

Class of Data-Intensive Applications  Many different types of applications  Data-center kind of applications  Data scans, sorting, indexing  More ``compute-intensive’’ data-intensive applications  Machine learning, data mining, NLP  Map-reduce / Hadoop being widely used for this class  Standard Database Operations  Sigmod 2009 paper compares Hadoop with Databases and OLAP systems  What is Map-reduce suitable for?  What are the alternatives?  MPI/OpenMP/Pthreads – too low level? June 1,

Hadoop Implementation June 1,  HDFS  Almost GFS, but no file update  Cannot be directly mounted by an existing operating system  Fault tolerance  Name node  Job Tracker  Task Tracker

June 1, FREERIDE: GOALS  Framework for Rapid Implementation of Data Mining Engines  The ability to rapidly prototype a high- performance mining implementation  Distributed memory parallelization  Shared memory parallelization  Ability to process disk-resident datasets  Only modest modifications to a sequential implementation for the above three  Developed at Ohio State June 1,

FREERIDE – Technical Basis June 1,  Popular data mining algorithms have a common canonical loop  Generalized Reduction  Can be used as the basis for supporting a common API  Demonstrated for Popular Data Mining and Scientific Data Processing Applications While( ) { forall (data instances d) { I = process(d) R(I) = R(I) op f(d) } ……. }

June 1,  Similar, but with subtle differences Comparing Processing Structure

Observations on Processing Structure  Map-Reduce is based on functional idea  Do not maintain state  This can lead to sorting overheads  FREERIDE API is based on a programmer managed reduction object  Not as ‘clean’  But, avoids sorting  Can also help shared memory parallelization  Helps better fault-recovery June 1,

June 1,  Tuning parameters in Hadoop  Input Split size  Max number of concurrent map tasks per node  Number of reduce tasks  For comparison, we used four applications  Data Mining: KMeans, KNN, Apriori  Simple data scan application: Wordcount  Experiments on a multi-core cluster  8 cores per node (8 map tasks) Experiment Design

June 1,  KMeans: varying # of nodes Avg. Time Per Iteration (sec) # of nodes Dataset: 6.4G K : 1000 Dim: 3 Results – Data Mining

June 1, Results – Data Mining (II) June 1,  Apriori: varying # of nodes Avg. Time Per Iteration (sec) # of nodes Dataset: 900M Support level: 3% Confidence level: 9%

June 1, June 1,  KNN: varying # of nodes Avg. Time Per Iteration (sec) # of nodes Dataset: 6.4G K : 1000 Dim: 3 Results – Data Mining (III)

June 1,  Wordcount: varying # of nodes Total Time (sec) # of nodes Dataset: 6.4G Results – Datacenter-like Application

June 1,  KMeans: varying dataset size Avg. Time Per Iteration (sec) Dataset Size K : 100 Dim: 3 On 8 nodes Scalability Comparison

June 1,  Wordcount: varying dataset size Total Time (sec) Dataset Size On 8 nodes Scalability – Word Count

June 1,  Four components affecting the hadoop performance  Initialization cost  I/O time  Sorting/grouping/shuffling  Computation time  What is the relative impact of each ?  An Experiment with k-means Overhead Breakdown

June 1,  Varying the number of clusters (k) Avg. Time Per Iteration (sec) # of KMeans Clusters Dataset: 6.4G Dim: 3 On 16 nodes Analysis with K-means

June 1,  Varying the number of dimensions Avg. Time Per Iteration (sec) # of Dimensions Dataset: 6.4G K : 1000 On 16 nodes Analysis with K-means (II)

Observations June 1,  Initialization costs and limited I/O bandwidth of HDFS are significant in Hadoop  Sorting is also an important limiting factor for Hadoop’s performance

This Talk  Parallel Programming API for Data-Intensive Computing  An alternate API and System for Google’s Map- Reduce  Show actual comparison  Data-intensive Computing on Accelerators  Compilation for GPUs  Overview of other topics  Scientific Data Management  Adaptive and Streaming Middleware  Deep web June 1,

Background - GPU Computing Many-core architectures/Accelerators are becoming more popular GPUs are inexpensive and fast CUDA is a high-level language for GPU programming

CUDA Programming Significant improvement over use of Graphics Libraries But.. Need detailed knowledge of the architecture of GPU and a new language Must specify the grid configuration Deal with memory allocation and movement Explicit management of memory hierarchy

Parallel Data mining Common structure of data mining applications (FREERIDE)‏ /* outer sequential loop *//* outer sequential loop */ while() { while() { /* Reduction loop */ /* Reduction loop */ Foreach (element e){ Foreach (element e){ (i, val) = process(e); (i, val) = process(e); Reduc(i) = Reduc(i) op val; Reduc(i) = Reduc(i) op val; } }

Porting on GPUs  High-level Parallelization is straight-forward  Details of Data Movement  Impact of Thread Count on Reduction time  Use of shared memory

Architecture of the System Variable information Reduction functions Optional functions Code Analyzer( In LLVM) ‏ Variable Analyzer Code Generator Variable Access Pattern and Combination Operations Host Program Grid configuration and kernel invocation Kernel functions Executable User Input

A sequential reduction function Optional functions (initialization function, combination function…) ‏ Values of each variable or size of array Variables to be used in the reduction function

Analysis of Sequential Code Get the information of access features of each variable Determine the data to be replicated Get the operator for global combination Variables for shared memory

Memory Allocation and Copy Copy the updates back to host memory after the kernel reduction function returns C.C.C.C. Need copy for each thread T0T1 T2 T3 T4 T61T62 T63T0T1 …… T0T1 T2T3T4 T61T62 T63T0T1 …… A.A.A.A. B.B.B.B.

Generating CUDA Code and C++/C code Invoking the Kernel Function Memory allocation and copy Thread grid configuration (block number and thread number) ‏ Global function Kernel reduction function Global combination

Optimizations Using shared memory Providing user-specified initialization functions and combination functions Specifying variables that are allocated once

Applications K-means clustering EM clustering PCA

Experimental Results Speedup of k-means

Speedup of k-means on GeForce 9800X2

Speedup of EM

Speedup of PCA

Deep Web Data Integration  The emerge of deep web  Deep web is huge  Different from surface web  Challenges for integration  Not accessible through search engines  Inter-dependences among deep web sources

Our Contributions  Structured Query Processing on Deep Web  Schema Mining/Matching  Analysis of Deep web data sources P44

45 Adaptive Middleware  To Enable the Time-critical Event Handling to Achieve the Maximum Benefit, While Satisfying the Time/Budget Constraint  To be Compatible with Grid and Web Services  To Enable Easy Deployment and Management with Minimum Human Intervention  To be Used in a Heterogeneous Distributed Environment ICAC 2008

46 HASTE Middleware Design ICAC 2008

47 Workflow Composition System

Summary  Growing data is creating new challenges in HPC, grid and cloud environments  Number of topics being addressed  Many opportunities for involvement  888 meets Thursdays 5:00 – 6:00, DL 280 June 1,