Top Banner
Autotuning MapReduce applica2ons for mul2cores Jeremy Singer h;p://www.dcs.gla.ac.uk/~jsinger
29

Auto%tuning)MapReduce) applicaons)for) mulcores )

Nov 19, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Auto%tuning)MapReduce) applicaons)for) mulcores )

Auto-­‐tuning  MapReduce  applica2ons  for  mul2cores  

Jeremy  Singer  

h;p://www.dcs.gla.ac.uk/~jsinger    

Page 2: Auto%tuning)MapReduce) applicaons)for) mulcores )

Mul2cores  

Page 3: Auto%tuning)MapReduce) applicaons)for) mulcores )

Moore’s  Law  

Page 4: Auto%tuning)MapReduce) applicaons)for) mulcores )

Moore’s  Law  processor  clock  frequency  

Page 5: Auto%tuning)MapReduce) applicaons)for) mulcores )

Moore’s  Law  

#    cores  

Page 6: Auto%tuning)MapReduce) applicaons)for) mulcores )

Mul2core  is  everywhere  

Page 7: Auto%tuning)MapReduce) applicaons)for) mulcores )

Manycore  is  coming  

Page 8: Auto%tuning)MapReduce) applicaons)for) mulcores )

ProgLangs  Solu2ons  for  Mul2core  

Page 9: Auto%tuning)MapReduce) applicaons)for) mulcores )

MapReduce  

Page 10: Auto%tuning)MapReduce) applicaons)for) mulcores )

A  Parallel  Design  Pa;ern  

•  MapReduce  •  Given  a  list  of  elements:  – map  a  func2on  over  each  element  

– Reduce  elements  with  another  func2on  

•  E.g.  sum  of  squares:  Σx2

•  Map  the  square  fn  over  all  elements  

•  Reduce  with  the  plus  func2on  

Page 11: Auto%tuning)MapReduce) applicaons)for) mulcores )

HelloWorld  in  MapReduce  

•  Google  give  the  wordcount  example  •  (whiteboard)  

Page 12: Auto%tuning)MapReduce) applicaons)for) mulcores )

MRJ  –  mapreduce  in  Java  

•  Philosophically  – Reducing  complexity  burden  for  programmer  

– Let  the  framework  do  the  work  

•  Prac2cally  –  Integra2on  with  Hadoop  open-­‐source  project  

Page 13: Auto%tuning)MapReduce) applicaons)for) mulcores )

MapReduce  Schema2c  Diagram  

Page 14: Auto%tuning)MapReduce) applicaons)for) mulcores )

Fork/Join  Library  

Page 15: Auto%tuning)MapReduce) applicaons)for) mulcores )

MRJ  Benchmarks  

Page 16: Auto%tuning)MapReduce) applicaons)for) mulcores )

Benchmark  Scalability  

Page 17: Auto%tuning)MapReduce) applicaons)for) mulcores )

Grep  benchmark  anomaly  

Page 18: Auto%tuning)MapReduce) applicaons)for) mulcores )

Grep  GC  overhead  

Page 19: Auto%tuning)MapReduce) applicaons)for) mulcores )

Different  GC  policies  affect  performance  

Page 20: Auto%tuning)MapReduce) applicaons)for) mulcores )

Auto-­‐Tuning  

Page 21: Auto%tuning)MapReduce) applicaons)for) mulcores )

Auto-­‐tuning  to  predict  GC  policy  

•  Predict  algorithm  and  heap  layout  •  Given  benchmark,  input,  and  available  memory  

•  Machine  learning  – Given  some  training  examples  – Generate  predictor  model  

– Test  on  previously  unseen  examples  

Page 22: Auto%tuning)MapReduce) applicaons)for) mulcores )

Features  for  examples  

Page 23: Auto%tuning)MapReduce) applicaons)for) mulcores )

Predic2on  Outputs  

•  Garbage  collec2on  algorithm:  – serial,  parallel,  concurrent  

•  Heap  Layout:  – Young/old  –  ra2o  1:2,  1:8  

Page 24: Auto%tuning)MapReduce) applicaons)for) mulcores )

Machine  Learning  Technique  

•  Decision  Trees  

•  Random  Forest        

✓   ✓   ✓  ✖  

Page 25: Auto%tuning)MapReduce) applicaons)for) mulcores )

Cascade  of  Classifiers  

Page 26: Auto%tuning)MapReduce) applicaons)for) mulcores )

Close  to  op2mal?  

Page 27: Auto%tuning)MapReduce) applicaons)for) mulcores )

No  worse  than  default?  

Page 28: Auto%tuning)MapReduce) applicaons)for) mulcores )

Conclusions  

•  Auto-­‐tuning  is  beneficial  for  complex  sobware  systems  

•  Major  subtle2es:  – What  to  tune  – How  to  describe  example  problems  

– Constraining  predic2on  •  Paper  at  ISMM  2011  

Page 29: Auto%tuning)MapReduce) applicaons)for) mulcores )

h;p://www.dcs.gla.ac.uk/~jsinger/ismm11.pdf