t bb - h ip h o p · ag end a ¥ m ultico re - parallelism - o pen parallel: ba ckg ro und and co...
TRANSCRIPT
TBB - HipHop
!"#$%&'('))#)!"#$%&'()#"')*+,$-."'()&/0)1&'&,,(,)2"34+$-/5
Thursday, 27 January 2011
Integration of Intel's TBB into Facebook's
HipHopNicolás Erdödy
Lenz Gschwendtner
Sam Vilain
!"#$%&'('))#)!"#$%&'()#"')*+,$-."'()&/0)1&'&,,(,)2"34+$-/5
Thursday, 27 January 2011
This presentation discusses Open Parallel's model, the background and
major technology changes that originated it, its first major project
(2010-2011) sponsored by Intel, and explains the invitation for the audience
to be part of this and following projects
Thursday, 27 January 2011
Agenda
• Multicore - Parallelism - Open Parallel: Background and Context
• TBB - HipHop
• The Future (what we can do)
Thursday, 27 January 2011
The problem
Thursday, 27 January 2011
Certain things don't last forever
Thursday, 27 January 2011
Thursday, 27 January 2011
The options
Thursday, 27 January 2011
You can chose to ignore it
Thursday, 27 January 2011
Thursday, 27 January 2011
You can wait for help
Thursday, 27 January 2011
Thursday, 27 January 2011
You can discuss in committees
Thursday, 27 January 2011
Thursday, 27 January 2011
It's better to aim high
Thursday, 27 January 2011
Thursday, 27 January 2011
Discuss Creative Solutions with all the
members of your Team
Thursday, 27 January 2011
Thursday, 27 January 2011
Parallelism is out there
Thursday, 27 January 2011
Thursday, 27 January 2011
But has some problems
Thursday, 27 January 2011
Thursday, 27 January 2011
And you learned it here: S... Happens!
Thursday, 27 January 2011
Thursday, 27 January 2011
So before you go for help somewhere else
Thursday, 27 January 2011
Thursday, 27 January 2011
Let's discuss together, how to deal with it, because there are different options
Thursday, 27 January 2011
Thursday, 27 January 2011
Multicore“The Trouble with Multicore”
(Chipmakers are busy designing microprocessors that most programmers can't handle)
Prof David Patterson, Berkeley (IEEE Spectrum, July 2010)
An entrepreneur's dream: a big gap in the market!
Thursday, 27 January 2011
Parallelism
Peter Denning (ACM) – Jack Dennis (MIT)
The Resurgence of Parallelism
(Communications of ACM – June 2010)
Thursday, 27 January 2011
About
Open Parallel Limited
Incorporated in 2010 in NZ, Open Parallel is a company supported by an ecosystem that works around parallel programming independently of the size of the problems.
Thursday, 27 January 2011
Background (2005 - 2008)
World45, first multicore software company in NZ - partner with Sun Microsystems
Niagara - NDPS - Otago University: first Sun OpenSparc Centre of Excellence outside US
Multicore Expo Santa Clara
Thursday, 27 January 2011
Those were the days!
!!!! We even went to the NBA!!
Thursday, 27 January 2011
Thursday, 27 January 2011
The Transition 2008 - 2009
• MulticoreNZ - Japan
• Open Source Learning Lab
• LCA2010 - LCA2011 - Multicore and Parallel Computing Miniconf
Thursday, 27 January 2011
HipHop - what is it
• PHP to C++ compiler
• developed by Facebook
• not the only one (phc)
Thursday, 27 January 2011
why special
• dropped feature of core lang
• tuned towards performance
• no drop in replacement for Zend
Thursday, 27 January 2011
why bother?
• reduces resource consumption by 50-70%
• can use threading
• did I mention performance?
Thursday, 27 January 2011
WordPress -> HipHop
• patch set (remove eval statements)
• use hphpi for development
• results on github
Thursday, 27 January 2011
performance difference 1
• WordPress LAMP stack
• crashed the VM
• clearly we pushed it too hard
Thursday, 27 January 2011
performance difference 2
• WordPress HipHop stack
• responsive, worked nicely
• did we push it enough?
Thursday, 27 January 2011
Thursday, 27 January 2011
TBB, what is it?
• open source threading lib
• easy to use
• Intel but runs on other platforms
Thursday, 27 January 2011
TBB in HipHop
• already used in memory management
• parallel_for extension
• extended PHP language
Thursday, 27 January 2011
TBB in WordPress
• run tasks in parallel
• hacked WordPress to use parallel_for
• compiled on HipHop
Thursday, 27 January 2011
performance difference 3
• even faster than HipHop
• even less resources than HipHop
• TBB rocks
Thursday, 27 January 2011
Thursday, 27 January 2011
conclusion
• TBB and HipHop is a good fit
• HipHop can drastically speed up PHP
• HipHop can be hacked to certain needs
Thursday, 27 January 2011
!"#$%&'('))#)!"#$%&'()#"')*+,$-."'()&/0)1&'&,,(,)2"34+$-/5
Thursday, 27 January 2011