Linking Programming models between Grids, Web 2.0 and Multicore


Published on

Distributed Programming Abstractions are discussed using Web Services, Grids, Parallel Computing and Multicore architectures

Published in: Technology
  • Well I am biased as the author but it was produced as there is a community interested in Grids (Web Service based systems) and other Web systems. This talk tries to explain how Web 2.0 and Multicore would impact development of Grids. This has no value to many people!
    Are you sure you want to  Yes  No
    Your message goes here
  • does this have any value?
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Linking Programming models between Grids, Web 2.0 and Multicore

  1. 1. Linking Programming models between Grids, Web 2.0 and Multicore Distributed Programming Abstractions Workshop NESC Edinburgh UK May 31 2007 Geoffrey Fox Computer Science, Informatics, Physics Pervasive Technology Laboratories Indiana University Bloomington IN 47401 [email_address] http://
  2. 2. Points in Talk <ul><li>All parallel programming projects more or less fail </li></ul><ul><li>All distributed programming projects report success </li></ul><ul><ul><li>There are several hundred in Grid workflow area alone </li></ul></ul><ul><li>Few constraints on distributed programming </li></ul><ul><li>Composition (in distributed computing) v decomposition (in parallel computing) </li></ul><ul><li>There is not much difference between distributed programming and a key paradigm of parallel computing (functional parallelism) Pervasive use of  64 core chips in the future will often require one to build a Grid on a chip i.e. to execute a traditional distributed application on a chip </li></ul><ul><li>XML is a pretty dubious syntax for expressing programs </li></ul><ul><li>Web 2.0 is pretty scruffy but there are some large companies and many users behind it. </li></ul><ul><li>Web 2.0 and Grids will converge and features of both will survive or disappear in merged environment </li></ul><ul><li>Web 2.0 has a more plausible approach to distributed programming than Web Services/Grids </li></ul><ul><li>Dominant Distributed Programming models will support Multicore, Web 2.0 and Grids </li></ul>
  3. 3. Some More points <ul><li>Services could be universal abstraction in parallel and distributed computing </li></ul><ul><ul><li>Whereas objects could not be universal so perhaps should move away from their use </li></ul></ul><ul><li>Gateways/Portals (Portlets, Widgets, Gadgets) are natural user (application usage) interface to a collection of services </li></ul><ul><li>Important Data (SQL, WFS, RSS Feeds) abstractions </li></ul><ul><li>Divide Parallel Programming Run-time (matching application structure) into 3 or 4 Broad classes </li></ul><ul><li>Inter-entity communication time characteristic of different programming model </li></ul><ul><ul><li>1-5 µs for MPI/Thread switching to 1-1000 milliseconds for services on the Grid and 25 µs for services inside a chip </li></ul></ul><ul><li>Multicore Commodity Programming Model </li></ul><ul><ul><li>Marine corps write libraries in “HLA++”, MPI or dynamic threads (internally one microsecond latency) expressed as services </li></ul></ul><ul><ul><li>Service s composed/ mashup ed by “ millions ” </li></ul></ul><ul><li>Many composition or mashup approaches </li></ul><ul><ul><li>Functional (cf. Google Map Reduce for data transformations) </li></ul></ul><ul><ul><li>Dataflow </li></ul></ul><ul><ul><li>Workflow </li></ul></ul><ul><ul><li>Visual </li></ul></ul><ul><ul><li>Script </li></ul></ul><ul><li>The difficulties of making effective use of multicore chips will so great that it will be main driver of new programming environments </li></ul><ul><li>Microsoft CCR DSS is good example of unification of parallel and distributed computing </li></ul>
  4. 4. Some Details <ul><li>See or more conventionally </li></ul><ul><li>Web 2.0 and Grid Tutorial </li></ul><ul><ul><li> </li></ul></ul><ul><ul><li> </li></ul></ul><ul><li>Multicore and Parallel Computing Tutorial </li></ul><ul><ul><li> </li></ul></ul><ul><li>“Web 2.0” citation site </li></ul>
  5. 5. Web 2.0 and Web Services I <ul><li>Web Services have clearly defined protocols (SOAP) and a well defined mechanism (WSDL) to define service interfaces </li></ul><ul><ul><li>There is good .NET and Java support </li></ul></ul><ul><ul><li>The so-called WS-* specifications provide a rich sophisticated but complicated standard set of capabilities for security, fault tolerance, meta-data, discovery, notification etc. </li></ul></ul><ul><li>“ Narrow Grids ” build on Web Services and provide a robust managed environment with growing adoption in Enterprise systems and distributed science (so called e-Science) </li></ul><ul><li>Web 2.0 supports a similar architecture to Web services but has developed in a more chaotic but remarkably successful fashion with a service architecture with a variety of protocols including those of Web and Grid services </li></ul><ul><ul><li>Over 400 Interfaces defined at http:// </li></ul></ul><ul><li>Web 2.0 also has many well known capabilities with Google Maps and Amazon Compute/Storage services of clear general relevance </li></ul><ul><li>There are also Web 2.0 services supporting novel collaboration modes and user interaction with the web as seen in social networking sites, portals, MySpace, YouTube, </li></ul>
  6. 6. Web 2.0 and Web Services II <ul><li>I once thought Web Services were inevitable but this is no longer clear to me </li></ul><ul><li>Web services are complicated , slow and non functional </li></ul><ul><ul><li>WS-Security is unnecessarily slow and pedantic (canonicalization of XML) </li></ul></ul><ul><ul><li>WS-RM (Reliable Messaging) seems to have poor adoption and doesn’t work well in collaboration </li></ul></ul><ul><ul><li>WSDM (distributed management) specifies a lot </li></ul></ul><ul><li>There are de facto standards like Google Maps and powerful suppliers like Google which “define the rules” </li></ul><ul><li>One can easily combine SOAP (Web Service) based services/systems with HTTP messages but the “lowest common denominator” suggests additional structure/complexity of SOAP will not easily survive </li></ul><ul><li>We can use the term Grids strictly as Narrow Grids that are collections of Web Services (or even more strictly OGSA Grids ) or just call any collections of services as “ Broad Grids ” which actually is quite often done </li></ul>
  7. 7. Attack of the Killer Multicores <ul><li>Today commodity Intel systems are sold with 8 cores spread over two processors </li></ul><ul><li>Specialized chips such as GPU ’s and IBM Cell processor have substantially more cores </li></ul><ul><li>Moore’s Law implies and will be satisfied by and imply exponentially increasing number of cores doubling every 1.5-3 Years </li></ul><ul><ul><li>Modest increase in clock speed </li></ul></ul><ul><ul><li>Intel has already prototyped a 80 core Server chip ready in 2011? </li></ul></ul><ul><li>Huge activity in parallel computing programming (recycled from the past?) </li></ul><ul><ul><li>Some programming models and application styles similar to Grids </li></ul></ul><ul><li>We will have a Grid on a chip ……………. </li></ul>
  8. 8. Grids meet Multicore Systems <ul><li>The expected rapid growth in the number of cores per chip has important implications for Grids </li></ul><ul><li>With 16-128 cores on a single commodity system 5 years from now one will both be able to build a Grid like application on a chip and indeed must build such an application to get the Moore’s law performance increase </li></ul><ul><ul><li>Otherwise you will “waste” cores ….. </li></ul></ul><ul><li>One will not want to reprogram as you move your application from a 64 node cluster or transcontinental implementation to a single chip Grid </li></ul><ul><li>However multicore chips have a very different architecture from Grids </li></ul><ul><ul><li>Shared not Distributed Memory </li></ul></ul><ul><ul><li>Latencies measured in microseconds not milliseconds </li></ul></ul><ul><li>Thus Grid and multicore technologies will need to “converge” and converged technology model will have different requirements from current Grid assumptions </li></ul>
  9. 9. Grid versus Multicore Applications <ul><li>It seems likely that future multicore applications will involve a loosely coupled mix of multiple modules that fall into three classes </li></ul><ul><ul><li>Data access/query/store </li></ul></ul><ul><ul><li>Analysis and/or simulation </li></ul></ul><ul><ul><li>User visualization and interaction </li></ul></ul><ul><li>This is precisely mix that Grids support but Grids of course involve distributed modules </li></ul><ul><li>Grids and Web 2.0 use service oriented architectures to describe system at module level – is this appropriate model for multicore programming? </li></ul><ul><li>Where do multicore systems get their data from ? </li></ul>
  10. 10. What is …? What if …? Is it …? R ecognition M ining S ynthesis Create a model instance RMS: Recognition Mining Synthesis Model-based multimodal recognition Find a model instance Model Real-time analytics on dynamic, unstructured, multimodal datasets Photo-realism and physics-based animation Model-less Real-time streaming and transactions on static – structured datasets Very limited realism Intel has probably most sophisticated analysis of future “killer” multicore applications – they are “just” standard Grid and parallel computing Tomorrow Today
  11. 11. What is a tumor? Is there a tumor here? What if the tumor progresses? It is all about dealing efficiently with complex multimodal datasets R ecognition M ining S ynthesis Images courtesy:
  12. 12. Intel’s Application Stack PC07Intro [email_address]
  13. 13. Role of Data in Grid/Multicore I <ul><li>One typically is told to place compute ( analysis ) at the data but most of the computing power is in multicore clients on the edge </li></ul><ul><li>These multicore clients can get data from the internet i.e. distributed sources </li></ul><ul><ul><li>This could be personal interests of client and used by client to help user interact with world </li></ul></ul><ul><ul><li>It could be cached or copied </li></ul></ul><ul><ul><li>It could be a standalone calculation or part of a distributed coordinated computation (SETI@Home) </li></ul></ul><ul><li>Or they could get data from set of local sensors (video-cams and environmental sensors) naturally stored on client or locally to client </li></ul>
  14. 14. Role of Data in Grid/Multicore <ul><li>Note that as you increase sophistication of data analysis, you increase ratio of compute to I/O </li></ul><ul><ul><li>Typical modern datamining approach like Support Vector Machine is sophisticated (dense) matrix algebra and not just text matching </li></ul></ul><ul><ul><li> </li></ul></ul><ul><li>Time complexity of Sophisticated data analysis will make it more attractive to fetch data from the Internet and cache/store on client </li></ul><ul><ul><li>It will also help with memory bandwidth problems in multicore chips </li></ul></ul><ul><li>In this vision, the Grid “just” acts as a source of data and the Grid application runs locally </li></ul>
  15. 15. Multicore Programming Paradigms <ul><li>At a very high level, there are three or four broad classes of parallelism </li></ul><ul><li>Coarse grain functional parallelism typified by workflow and often used to build composite “metaproblems” whose parts are also parallel </li></ul><ul><ul><li>“ Compute-File”, Database/Sensor, Community, Service, Pleasing Parallel (Master-worker) are sub-classses </li></ul></ul><ul><li>Large Scale loosely synchronous data parallelism where dynamic irregular work has clear synchronization points as in most large scale scientific and engineering problems </li></ul><ul><li>Fine grain (asynchronous) thread parallelism as used in search algorithms which are often data parallel (over choices) but don’t have universal synchronization points </li></ul><ul><li>Discrete Event Simulations are either a fourth class or a variant of thread parallelism </li></ul>PC07Intro [email_address]
  16. 16. Data Parallel Time Dependence <ul><li>A simple form of data parallel applications are synchronous with all elements of the application space being evolved with essentially the same instructions </li></ul><ul><li>Such applications are suitable for SIMD computers and run well on vector supercomputers (and GPUs but these are more general than just synchronous) </li></ul><ul><li>However synchronous applications also run fine on MIMD machines </li></ul><ul><li>SIMD CM-2 evolved to MIMD CM-5 with same data parallel language CMFortran </li></ul><ul><li>The iterative solutions to Laplace’s equation are synchronous as are many full matrix algorithms </li></ul>Synchronization on MIMD machines is accomplished by messaging It is automatic on SIMD machines! Application Time Application Space Synchronous Identical evolution algorithms t 0 t 1 t 2 t 3 t 4
  17. 17. Local Messaging for Synchronization <ul><li>MPI_SENDRECV is typical primitive </li></ul><ul><li>Processors do a send followed by a receive or a receive followed by a send </li></ul><ul><li>In two stages (needed to avoid race conditions), one has a complete left shift </li></ul><ul><li>Often follow by equivalent right shift, do get a complete exchange </li></ul><ul><li>This logic guarantees correctly updated data is sent to processors that have their data at same simulation time </li></ul>……… 8 Processors Application and Processor Time Application Space Communication Phase Compute Phase Communication Phase Compute Phase Communication Phase Compute Phase Communication Phase
  18. 18. Loosely Synchronous Applications <ul><li>This is most common large scale science and engineering and one has the traditional data parallelism but now each data point has in general a different update </li></ul><ul><ul><li>Comes from heterogeneity in problems that would be synchronous if homogeneous </li></ul></ul><ul><li>Time steps typically uniform but sometimes need to support variable time steps across application space – however ensure small time steps are  t = (t 1 -t 0 )/Integer so subspaces with finer time steps do synchronize with full domain </li></ul><ul><li>The time synchronization via messaging is still valid </li></ul><ul><li>However one no longer load balances (ensure each processor does equal work in each time step) by putting equal number of points in each processor </li></ul><ul><li>Load balancing although NP complete is in practice surprisingly easy </li></ul>Distinct evolution algorithms for each data point in each processor Application Time Application Space t 0 t 1 t 2 t 3 t 4
  19. 19. MPI Futures? <ul><li>MPI likely to become more important as multicore systems become more common </li></ul><ul><li>Should use MPI when MPI needed and use other messaging for other cases (such as linking services) where different features/performance appropriate </li></ul><ul><li>MPI has too many primitives which will handicap broad implementation/adoption </li></ul><ul><li>Perhaps only have one collective primitive like CCR which allows general collective operations to be built by user </li></ul>
  20. 20. Fine Grain Dynamic Applications <ul><li>Here there is no natural universal ‘time’ as there is in science algorithms where an iteration number or Mother Nature’s time gives global synchronization </li></ul><ul><li>Loose (zero) coupling or special features of application needed for successful parallelization </li></ul><ul><li>In computer chess, the minimax scores at parent nodes provide multiple dynamic synchronization points </li></ul>Application Time Application Space Application Space Application Time
  21. 21. Computer Chess <ul><li>Thread level parallelism unlike position evaluation parallelism used in other systems </li></ul><ul><li>Competed with poor reliability and results in 1987 and 1988 ACM Computer Chess Championships </li></ul>Increasing search depth
  22. 22. Discrete Event Simulations <ul><li>These are familiar in military and circuit (system) simulations when one uses macroscopic approximations </li></ul><ul><ul><li>Also probably paradigm of most multiplayer Internet games/worlds </li></ul></ul><ul><li>Note Nature is perhaps synchronous when viewed quantum mechanically in terms of uniform fundamental elements (quarks and gluons etc.) </li></ul><ul><li>It is loosely synchronous when considered in terms of particles and mesh points </li></ul><ul><li>It is asynchronous when viewed in terms of tanks, people, arrows etc. </li></ul><ul><li>Circuit simulations can be done loosely synchronously but inefficient as many inactive elements </li></ul>Battle of Hastings
  23. 23. Programming Models <ul><li>The three major models are supported by HPCS languages which are very interesting but too monolithic </li></ul><ul><li>So the Fine grain thread parallelism and Large Scale loosely synchronous data parallelism styles are distinctive to parallel computing while </li></ul><ul><li>Coarse grain functional parallelism of multicore overlaps with workflows from Grids and Mashups from Web 2.0 </li></ul><ul><li>Seems plausible that a more uniform approach evolve for coarse grain case although this is least constrained of programming styles as typically latency issues are not critical </li></ul><ul><ul><li>Multicore would have strongest performance constraints </li></ul></ul><ul><ul><li>Web 2.0 and Multicore the most important usability constraints </li></ul></ul><ul><li>A possible model for broad use of multicores is that the difficult parallel algorithms are coded as libraries ( Fine grain thread parallelism and Large Scale loosely synchronous data parallelism styles) while the general user uses composes with visual interfaces, scripting and systems like Google MapReduce </li></ul>
  24. 24. Google MapReduce Simplified Data Processing on Large Clusters <ul><li>http:// </li></ul><ul><li>This is a dataflow model between services where services can do useful document oriented data parallel applications including reductions </li></ul><ul><li>The decomposition of services onto cluster engines is automated </li></ul><ul><li>The large I/O requirements of datasets changes efficiency analysis in favor of dataflow </li></ul><ul><li>Services (count words in example) can obviously be extended to general parallel applications </li></ul><ul><li>There are many alternatives to language expressing either dataflow and/or parallel operations and indeed one should support multiple languages in spirit of services </li></ul>PC07Intro [email_address]
  25. 25. Programming Models <ul><li>The services and objects in distributed computing are usually “natural” (come from application) whereas parts connected by MPI (or created by parallelizing compiler) come from “artificial” decompositions and not naturally considered services </li></ul><ul><li>Services in multicore (parallel computing) are original modules before decomposition and its these modules that coarse grain functional parallelism addresses </li></ul><ul><li>Most of “ difficult ” issues in parallel computing concern treatment of decomposition </li></ul>
  26. 26. Parallel Software Paradigms: Top Level <ul><li>In the conventional two-level Grid/Web Service programming model , one programs each individual service and then separately programs their interaction </li></ul><ul><ul><li>This is Grid-aware Services programming model </li></ul></ul><ul><ul><li>SAGA supports Grid-aware programs? </li></ul></ul><ul><li>This is generalized to multicore with “Marine Corps” programming services for “difficult” cases </li></ul><ul><ul><li>Loosely Synchronous </li></ul></ul><ul><ul><li>Fine Grain threading </li></ul></ul><ul><ul><li>Discrete Event Simulation </li></ul></ul><ul><li>“Average” Programmer produces mashups or workflows from these parallelized services </li></ul>
  27. 27. The Marine Corps Lack of Programming Paradigm Library Model <ul><li>One could assume that parallel computing is “just too hard for real people” and assume that we use a Marine Corps of programmers to build as libraries excellent parallel implementations of “all” core capabilities </li></ul><ul><ul><li>e.g. the primitives identified in the Intel application analysis </li></ul></ul><ul><ul><li>e.g. the primitives supported in Google MapReduce , HPF , PeakStream , Microsoft Data Parallel .NET etc. </li></ul></ul><ul><li>These primitives are orchestrated (linked together) by overall frameworks such as workflow or mashups </li></ul><ul><li>The Marine Corps probably is content with efficient rather than easy to use programming models </li></ul>
  28. 28. Component Parallel and Program Parallel <ul><li>Component parallel paradigm is where one explicitly programs the different parts of a parallel application with the linkage either specified externally as in workflow or in components themselves as in most other component parallel approaches </li></ul><ul><ul><li>In Grids, components are natural </li></ul></ul><ul><ul><li>In Parallel computing, components are produced by decomposition </li></ul></ul><ul><li>In the program parallel paradigm, one writes a single program to describe the whole application and some combination of compiler and runtime breaks up the program into the multiple parts that execute in parallel </li></ul><ul><li>Note that a program parallel approach will often call a built in runtime library written in component parallel fashion </li></ul><ul><ul><li>A parallelizing compiler could call an MPI library routine </li></ul></ul><ul><li>Could perhaps better call “ Program Parallel ” as “ Implicitly Parallel ” and “ Component Parallel ” as “ Explicitly Parallel ” </li></ul>
  29. 29. Component Parallel and Program Parallel <ul><li>Program Parallel approaches include </li></ul><ul><ul><li>Data structure parallel as in Google MapReduce , HPF (High Performance Fortran), HPCS (High-Productivity Computing Systems) or “SIMD” co-processor languages ( PeakStream , ClearSpeed and Microsoft Data Parallel .NET) </li></ul></ul><ul><ul><li>Parallelizing compilers including OpenMP annotation </li></ul></ul><ul><ul><li>Note OpenMP and HPF have failed in some sense for large scale parallel computing (writing algorithm in standard sequential languages throws away information needed for parallelization) </li></ul></ul><ul><li>Component Parallel approaches include </li></ul><ul><ul><li>MPI (and related systems like PVM ) parallel message passing </li></ul></ul><ul><ul><li>PGAS (Partitioned Global Address Space CAF, UPC, Titanium, HPJava ) </li></ul></ul><ul><ul><li>C++ futures and active objects </li></ul></ul><ul><ul><li>CSP … Microsoft CCR and DSS </li></ul></ul><ul><ul><li>Workflow and Mashups </li></ul></ul><ul><ul><li>Discrete Event Simulation </li></ul></ul>
  30. 30. Why people like MPI! <ul><li>Jason J Beech-Brandt, and Andrew A. Johnson, at AHPCRC Minneapolis </li></ul><ul><li>BenchC is unstructured finite element CFD Solver </li></ul><ul><li>Looked at OpenMP on shared memory Altix with some effort to optimize </li></ul><ul><li>Optimized UPC on several machines </li></ul><ul><li>MPI always good but other approaches erratic </li></ul><ul><li>Other studies reach similar conclusions? </li></ul>cluster After Optimization of UPC cluster
  31. 31. Web 2.0 Systems are Portals, Services, Resources <ul><li>Captures the incredible development of interactive Web sites enabling people to create and collaborate </li></ul>The world does itself in large numbers!
  32. 32. Mashups v Workflow? <ul><li>Mashup Tools are reviewed at http:// =63 </li></ul><ul><li>Workflow Tools are reviewed by Gannon and Fox </li></ul><ul><li>Both include scripting in PHP, Python, sh etc. as both implement distributed programming at level of services </li></ul><ul><li>Mashups use all types of service interfaces and do not have the potential robustness (security) of Grid service approach </li></ul><ul><li>Typically “pure” HTTP ( REST ) </li></ul>
  33. 33. Web 2.0 APIs <ul><li> has (May 14 2007) 431 Web 2.0 APIs with GoogleMaps the most often used in Mashups </li></ul><ul><li>This site acts as a “ UDDI ” for Web 2.0 </li></ul>
  34. 34. The List of Web 2.0 API’s <ul><li>Each site has API and its features </li></ul><ul><li>Divided into broad categories </li></ul><ul><li>Only a few used a lot ( 42 API’s used in more than 10 mashups ) </li></ul><ul><li>RSS feed of new APIs </li></ul><ul><li>Amazon S3 growing in popularity </li></ul>
  35. 35. APIs/Mashups per Protocol Distribution Number of Mashups Number of APIs REST SOAP XML-RPC REST, XML-RPC REST, XML-RPC, SOAP REST, SOAP JS Other google maps netvibes virtual earth google search amazon S3 amazon ECS flickr ebay youtube 411sync yahoo! search yahoo! geocoding technorati yahoo! images trynt yahoo! local
  36. 36. 4 more Mashups each day <ul><li>For a total of 1906 April 17 2007 (4.0 a day over last month) </li></ul><ul><li>Note ClearForest runs Semantic Web Services Mashup competitions (not workflow competitions) </li></ul><ul><li>Some Mashup types : aggregators, search aggregators, visualizers, mobile, maps, games </li></ul>Growing number of commercial Mashup Tools
  37. 37. Implication for Grid Technology of Multicore and Web 2.0 I <ul><li>Web 2.0 and Grids are addressing a similar application class although Web 2.0 has focused on user interactions </li></ul><ul><ul><li>So technology has similar requirements </li></ul></ul><ul><li>Multicore differs significantly from Grids in component location and this seems particularly significant for data </li></ul><ul><ul><li>Not clear therefore how similar applications will be </li></ul></ul><ul><ul><li>Intel RMS multicore application class pretty similar to Grids </li></ul></ul><ul><li>Multicore has more stringent software requirements than Grids as latter has intrinsic network overhead </li></ul>
  38. 38. Implication for Grid Technology of Multicore and Web 2.0 II <ul><li>Multicore chips require low overhead protocols to exploit low latency that suggests simplicity </li></ul><ul><ul><li>We need to simplify MPI AND Grids! </li></ul></ul><ul><li>Web 2.0 chooses simplicity (REST rather than SOAP) to lower barrier to everyone participating </li></ul><ul><li>Web 2.0 and Multicore tend to use traditional (possibly visual) (scripting) languages for equivalent of workflow whereas Grids use visual interface backend recorded in BPEL </li></ul><ul><ul><li>Google MapReduce illustrates a popular Web 2.0 and Multicore approach to dataflow </li></ul></ul>
  39. 39. Implication for Grid Technology of Multicore and Web 2.0 III <ul><li>Web 2.0 and Grids both use SOA Service Oriented Architectures </li></ul><ul><ul><li>Seems likely that Multicore will also adopt although a more conventional object oriented approach also possible </li></ul></ul><ul><ul><li>Services should help multicore applications integrate modules from different sources </li></ul></ul><ul><ul><li>Multicore will use fine grain objects but coarse grain services </li></ul></ul><ul><li>“ System of Systems”: Grids, Web 2.0 and Multicore are likely to build systems hierarchically out of smaller systems </li></ul><ul><ul><li>We need to support Grids of Grids, Webs of Grids, Grids of Multicores etc. i.e. systems of systems of all sorts </li></ul></ul>
  40. 40. The Ten areas covered by the 60 core WS-* Specifications WSRP (Remote Portlets) 10: Portals and User Interfaces WS-Policy, WS-Agreement 9: Policy and Agreements WSDM, WS-Management, WS-Transfer 8: Management WSRF, WS-MetadataExchange, WS-Context 7: System Metadata and State UDDI, WS-Discovery 6: Service Discovery WS-Security, WS-Trust, WS-Federation, SAML, WS-SecureConversation 5: Security BPEL, WS-Choreography, WS-Coordination 4: Workflow and Transactions WS-Notification, WS-Eventing (Publish-Subscribe) 3: Notification WS-Addressing, WS-MessageDelivery; Reliable Messaging WSRM; Efficient Messaging MOTM 2: Service Internet XML, WSDL, SOAP 1: Core Service Model Typical Grid/Web Service Examples WS-* Specification Area
  41. 41. WS-* Areas and Web 2.0 Start Pages, AJAX and Widgets(Netvibes) Gadgets 10: Portals and User Interfaces Service dependent. Processed by application 9: Policy and Agreements WS-Transfer style Protocols GET PUT etc. 8: Management==Interaction Processed by application – no system state – Microformats are a universal metadata approach 7: System Metadata and State 6: Service Discovery SSL, HTTP Authentication/Authorization, OpenID is Web 2.0 Single Sign on 5: Security Mashups, Google MapReduce Scripting with PHP JavaScript …. 4: Workflow and Transactions (no Transactions in Web 2.0) Hard with HTTP without polling – JMS perhaps? 3: Notification No special QoS. Use JMS or equivalent? 2: Service Internet XML becomes optional but still useful SOAP becomes JSON RSS ATOM WSDL becomes REST with API as GET PUT etc. Axis becomes XmlHttpRequest 1: Core Service Model Web 2.0 Approach WS-* Specification Area
  42. 42. WS-* Areas and Multicore Web 2.0 technology popular 10: Portals and User Interfaces Handled by application 9: Policy and Agreements Interaction between objects key issue in parallel programming trading off efficiency versus performance 8: Management == Interaction Environment Variables 7: System Metadata and State Use libraries 6: Service Discovery Not so important intrachip 5: Security Many approaches; scripting languages popular 4: Workflow and Transactions Publish-Subscribe for events and Interrupts 3: Notification Not so important intrachip 2: Service Internet Fine grain Java C# C++ Objects and coarse grain services as in DSS . Information passed explicitly or by handles. MPI needs to be updated to handle non scientific applications as in CCR 1: Core Service Model Typical Grid/Web Service Examples WS-* Specification Area
  43. 43. CCR as an example of a Cross Paradigm Run Time <ul><li>Naturally supports fine grain thread switching with message passing with around 4 microsecond latency for 4 threads switching to 4 others on an AMD PC with C#. Threads spawned – no rendezvous </li></ul><ul><li>Has around 50 microsecond latency for coarse grain service interactions with DSS extension which supports Web 2.0 style messaging </li></ul><ul><li>MPI Collectives – Shift and Exchange vary from 10 to 20 microsecond latency in rendezvous mode </li></ul><ul><li>Not as good as best MPI’s but managed code and supports Grids Web 2.0 and Parallel Computing …… </li></ul><ul><li>See </li></ul>
  44. 44. Microsoft CCR <ul><li>Supports exchange of messages between threads using named ports </li></ul><ul><li>FromHandler: Spawn threads without reading ports </li></ul><ul><li>Receive: Each handler reads one item from a single port </li></ul><ul><li>MultipleItemReceive: Each handler reads a prescribed number of items of a given type from a given port. Note items in a port can be general structures but all must have same type. </li></ul><ul><li>MultiplePortReceive: Each handler reads a one item of a given type from multiple ports. </li></ul><ul><li>JoinedReceive: Each handler reads one item from each of two ports. The items can be of different type. </li></ul><ul><li>Choice: Execute a choice of two or more port-handler pairings </li></ul><ul><li>Interleave: Consists of a set of arbiters (port -- handler pairs) of 3 types that are Concurrent, Exclusive or Teardown (called at end for clean up). Concurrent arbiters are run concurrently but exclusive handlers are </li></ul><ul><li>http:// /robotics/ </li></ul>PC07Intro [email_address]
  45. 45. Overhead (latency) of AMD 4-core PC with 4 execution threads on MPI style Rendezvous Messaging for Shift and Exchange implemented either as two shifts or as custom CCR pattern. Compute time is 10 seconds divided by number of stages Stages (millions) Time Microseconds Rendezvous exchange as two shifts Rendezvous exchange customized for MPI Rendezvous Shift
  46. 46. Overhead (latency) of INTEL 8-core PC with 8 execution threads on MPI style Rendezvous Messaging for Shift and Exchange implemented either as two shifts or as custom CCR pattern. Compute time is 15 seconds divided by number of stages Stages (millions) Time Microseconds Rendezvous exchange as two shifts Rendezvous exchange customized for MPI Rendezvous Shift
  47. 47. Timing of HP Opteron Multicore as a function of number of simultaneous two-way service messages processed (November 2006 DSS Release) <ul><li>CGL Measurements of Axis 2 shows about 500 microseconds – DSS is 10 times better </li></ul>PC07Intro [email_address] DSS Service Measurements