Conference graph: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>David Eppstein
spaces in formula
 
en>Addbot
m Bot: Migrating 1 interwiki links, now provided by Wikidata on d:q5159897
 
Line 1: Line 1:
Greetings! I am Marvella and I feel comfy when people use the complete title. Puerto Rico is where he and his wife reside. Hiring is her working day occupation now and she will not change it anytime soon. Playing baseball is the pastime he will never quit performing.<br><br>Take a look at my blog post at home std test ([http://www.escuelavirtual.registraduria.gov.co/user/view.php?id=140944&course=1 source website])
The '''Bulk Synchronous Parallel''' (BSP) [[Abstract machine|abstract computer]] is a [[bridging model]] for designing [[parallel algorithm]]s.  It serves a purpose similar to the [[Parallel Random Access Machine]] (PRAM) model. BSP differs from PRAM by not taking communication and synchronization for granted. An important part of analysing a BSP algorithm rests on quantifying the synchronisation and communication needed.
 
The BSP model was developed by [[Leslie Valiant]] of [[Harvard University]] during the 1980s. The definitive article<ref name="CACM_Valiant">Leslie G. Valiant, A bridging model for parallel computation, Communications of the ACM, Volume 33 Issue 8, Aug. 1990 [http://portal.acm.org/citation.cfm?id=79173.79181]</ref> was published in 1990.
 
Between 1990 and 1992, Leslie Valiant and Bill McColl of [[Oxford University]] worked on ideas for a distributed memory BSP programming model, in Princeton and at Harvard. Between 1992 and 1997, McColl led a large research team at Oxford that developed various BSP programming libraries, languages and tools, and also numerous massively parallel BSP algorithms. With interest and momentum growing, in 1996 McColl then led a group from Oxford, Harvard, Florida, Princeton, Bell Labs, Columbia and Utrecht that developed and published the BSPlib Standard for BSP programming.
 
==The model==
A BSP computer consists of processors connected by a communication network. Each processor has a fast local memory, and may follow different [[thread (computer science)|threads]] of computation.
A BSP computation proceeds in a series of global ''supersteps''. A superstep consists of three components:
# ''Concurrent computation'': Several computations take place on every participating processor. Each process only uses values stored in the local memory of the processor. The computations are independent in the sense that they occur asynchronously of all the others.
# ''Communication'': The processes exchange data between themselves. This exchange takes the form of one-sided ''put'' and ''get'' calls, rather than two-sided ''send'' and ''receive'' calls.
# ''Barrier synchronisation'': When a process reaches this point (the ''barrier''), it waits until all other processes have finished their communication actions.
 
The computation and communication actions do not have to be ordered in time. The barrier synchronization concludes the superstep: it has the function of ensuring that all one-sided communications are properly concluded. This global synchronization is not needed in models based on two-sided communication, since these synchronize processes implicitly.
 
The figure below shows this in a diagrammatic form. The processes are not regarded as having a particular linear order (from left to right or otherwise), and may be mapped to processors in any way.
 
[[Image:bsp.wiki.fig1.svg|thumb|400px]]
 
A further aspect of the BSP model is that of overdecomposition of the problem and oversubscription of the processors: the problem is divided into more logical processes than there are physical processors, and processes are randomly assigned to processors. This strategy can be shown statistically to lead to almost perfectly load balancing, both of work and communication.
 
==Communication==
In many parallel programming systems, communications are considered at the level of individual actions: sending and receiving a message, memory to memory transfer, etc. This is difficult to work with, since there are many simultaneous communication actions in a parallel program, and
their interactions are typically complex. In particular, it is difficult to say much about the time any single communication action will take to complete.
 
The BSP model considers communication actions ''en masse''. This has the effect that an upper bound on the time taken to communicate a set of data can be given. BSP considers all communication actions of a superstep as one unit, and assumes all messages have a fixed size.
 
The maximum number of incoming or outgoing messages for a superstep is denoted by <math>h</math>. The ability of a communication network to deliver data is captured by a parameter <math>g</math>, defined such that it takes time <math>hg</math> for a processor to deliver <math>h</math> messages of size 1.
 
A message of length <math>m</math> obviously takes longer to send than a message of size 1.  However, the BSP model does not make a distinction between a message length of <math>m</math> or <math>m</math> messages of length 1. In either case the cost is said to be <math>mg</math>.
 
The parameter <math>g</math> is dependent on the following factors:
* The protocols used to interact within the communication network.
* Buffer management by both the processors and the communication network.
* The routing strategy used in the network.
* The BSP runtime system.
 
A value for <math>g</math> is, in practice, determined empirically for each parallel computer. Note that <math>g</math> is not the normalised single-word delivery time, but the single-word delivery time under continuous traffic conditions.
 
==Barriers==
{{Refimprove section|date=November 2013}}
 
The one-sided communication of the BSP model requires a global [[Barrier (computer science)|barrier synchronization]].
[[Barrier (computer science)|Barriers]] are potentially costly, but have a number of attractions. They do not introduce the possibility of [[deadlock]] or [[Deadlock|livelock]],
since barriers do not create circular data dependencies.<!-- link to deadlock detection? --> Therefore tools to detect and deal with them are unnecessary. Barriers also permit novel forms of [[Fault-tolerant system|fault tolerance]].
 
The cost of barrier synchronization is influenced by a couple of issues:
# The cost imposed by the variation in the completion time of the participating concurrent computations. Take the example where all but one of the processes have completed their work for this superstep, and are waiting for the last process, which still has a lot of work to complete. The best that an implementation can do is ensure that each process works on roughly the same problem size.
# The cost of reaching a globally consistent state in all of the processors. This depends on the communication network, but also on whether there is special-purpose hardware available for synchronizing, and on the way in which interrupts are handled by processors.
 
The cost of a barrier synchronization is denoted by <math>l</math>. In practice, a value of <math>l</math> is determined empirically. <!-- What could you measure to determine l? -->
 
The presence of barriers makes the BSP model mostly a theoretical one: on large computers barriers are expensive, and this is increasingly so on large scales. In fact, there is a large body of literature on removing synchronization points from existing algorithms. <!-- Better references are needed here, the original ones did not seem valid -->
 
==The Cost of a BSP algorithm==
The cost of a superstep is determined as the sum of three terms;  the cost of the longest running local computation, the cost of global communication between the processors, and the cost of the barrier synchronisation at the end of the superstep. The cost of one superstep
for <math>p</math> processors:
 
<math>
max_{i = 1}^{p}(w_i) + max_{i=1}^{p}(h_i g) + l
</math>
where <math>w_i</math> is the cost for the local computation in process <math>i</math>, and <math>h_i</math> is the number of messages sent or received by process <math>i</math>.  Note that homogeneous processors are assumed here. It is more common for the expression to be written as <math>w + hg + l</math> where <math>w</math> and <math>h</math> are maxima. The cost of the algorithm then, is the sum of the costs of each superstep.
 
<math>
W + Hg + Sl = \sum_{s=1}^{S}w_s + g \sum_{s=1}^{S}h_s + Sl
</math>
where <math>S</math> is the number of supersteps.
 
<math>W</math>, <math>H</math>, and <math>S</math> are usually modelled as functions, that vary with problem size. These three characteristics of a BSP algorithm are usually described in terms of [[asymptotic notation]], e.g. <math>H \in O(n/p)</math>.
 
==Extensions and uses==
 
Interest in BSP has soared in recent years, with Google adopting it as a major technology for graph analytics at massive scale (Pregel). Also, with the next generation of Hadoop decoupling the MapReduce model from the rest of the Hadoop infrastructure, there is now some open source projects to add BSP and other high performance parallel programming models on top of Hadoop, such as [http://hama.apache.org/ Apache Hama] and [http://giraph.apache.org/ Apache Giraph].
 
BSP has been extended by many authors to address concerns about BSP's unsuitability for modelling specific architectures or computational paradigms. One example of this is the decomposable BSP model. The model has also been used in the creation of a number of new programming languages — including BSML (Bulk Synchronous Parallel ML) — and programming models — including BSPLib,<ref>[http://www.bsp-worldwide.org/implmnts/oxtool/bsplib.html BSPlib]</ref> [http://hama.apache.org/ Apache Hama],<ref>[http://hama.apache.org/ Apache Hama]</ref> and Pregel.<ref>[http://dl.acm.org/citation.cfm?id=1582723 Pregel]</ref>
 
==See also==
* [[Computer cluster]]
* [[Concurrent computing]]
* [[Concurrency (computer science)|Concurrency]]
* [[Dataflow programming]]
* [[Grid computing]]
* [[Parallel computing]]
* [[ScientificPython]]
* [[LogP machine]]
* [[Automatic mutual exclusion]]
* [[Apache Hama]]
 
==References==
{{reflist}}
 
==External links==
* Collection of papers on BSP by [http://www.linkedin.com/in/billmccoll Bill McColl] and others. [http://paloaltodata.com/index.php?option=com_content&view=article&id=22 BSP Papers]
* BSP topic on Quora. [http://www.quora.com/Bulk-Synchronous-Parallel-Computing Bulk Synchronous Parallel Computing]
* D.B. Skillicorn, Jonathan Hill, W. F. McColl, [ftp://ftp.comlab.ox.ac.uk/pub/Documents/techpapers/Jonathan.Hill/SkillHillMcColl_QA.ps.gz Questions and answers about BSP] (1996)
* [http://www.bsp-worldwide.org/ BSP Worldwide]
* [http://www.bsp-worldwide.org/implmnts/oxtool/papers.html BSP related papers]
* [http://users.comlab.ox.ac.uk/bill.mccoll/oparl.html WWW Resources on BSP Computing]
* {{fr icon}} [[:fr:BSML|Bulk Synchronous Parallel ML]] ({{en icon}} [http://frederic.loulergue.eu/research/bsml/index.html official website])
 
[[Category:Models of computation]]
[[Category:Parallel computing]]

Latest revision as of 09:15, 16 March 2013

The Bulk Synchronous Parallel (BSP) abstract computer is a bridging model for designing parallel algorithms. It serves a purpose similar to the Parallel Random Access Machine (PRAM) model. BSP differs from PRAM by not taking communication and synchronization for granted. An important part of analysing a BSP algorithm rests on quantifying the synchronisation and communication needed.

The BSP model was developed by Leslie Valiant of Harvard University during the 1980s. The definitive article[1] was published in 1990.

Between 1990 and 1992, Leslie Valiant and Bill McColl of Oxford University worked on ideas for a distributed memory BSP programming model, in Princeton and at Harvard. Between 1992 and 1997, McColl led a large research team at Oxford that developed various BSP programming libraries, languages and tools, and also numerous massively parallel BSP algorithms. With interest and momentum growing, in 1996 McColl then led a group from Oxford, Harvard, Florida, Princeton, Bell Labs, Columbia and Utrecht that developed and published the BSPlib Standard for BSP programming.

The model

A BSP computer consists of processors connected by a communication network. Each processor has a fast local memory, and may follow different threads of computation. A BSP computation proceeds in a series of global supersteps. A superstep consists of three components:

  1. Concurrent computation: Several computations take place on every participating processor. Each process only uses values stored in the local memory of the processor. The computations are independent in the sense that they occur asynchronously of all the others.
  2. Communication: The processes exchange data between themselves. This exchange takes the form of one-sided put and get calls, rather than two-sided send and receive calls.
  3. Barrier synchronisation: When a process reaches this point (the barrier), it waits until all other processes have finished their communication actions.

The computation and communication actions do not have to be ordered in time. The barrier synchronization concludes the superstep: it has the function of ensuring that all one-sided communications are properly concluded. This global synchronization is not needed in models based on two-sided communication, since these synchronize processes implicitly.

The figure below shows this in a diagrammatic form. The processes are not regarded as having a particular linear order (from left to right or otherwise), and may be mapped to processors in any way.

A further aspect of the BSP model is that of overdecomposition of the problem and oversubscription of the processors: the problem is divided into more logical processes than there are physical processors, and processes are randomly assigned to processors. This strategy can be shown statistically to lead to almost perfectly load balancing, both of work and communication.

Communication

In many parallel programming systems, communications are considered at the level of individual actions: sending and receiving a message, memory to memory transfer, etc. This is difficult to work with, since there are many simultaneous communication actions in a parallel program, and their interactions are typically complex. In particular, it is difficult to say much about the time any single communication action will take to complete.

The BSP model considers communication actions en masse. This has the effect that an upper bound on the time taken to communicate a set of data can be given. BSP considers all communication actions of a superstep as one unit, and assumes all messages have a fixed size.

The maximum number of incoming or outgoing messages for a superstep is denoted by h. The ability of a communication network to deliver data is captured by a parameter g, defined such that it takes time hg for a processor to deliver h messages of size 1.

A message of length m obviously takes longer to send than a message of size 1. However, the BSP model does not make a distinction between a message length of m or m messages of length 1. In either case the cost is said to be mg.

The parameter g is dependent on the following factors:

  • The protocols used to interact within the communication network.
  • Buffer management by both the processors and the communication network.
  • The routing strategy used in the network.
  • The BSP runtime system.

A value for g is, in practice, determined empirically for each parallel computer. Note that g is not the normalised single-word delivery time, but the single-word delivery time under continuous traffic conditions.

Barriers

Template:Refimprove section

The one-sided communication of the BSP model requires a global barrier synchronization. Barriers are potentially costly, but have a number of attractions. They do not introduce the possibility of deadlock or livelock, since barriers do not create circular data dependencies. Therefore tools to detect and deal with them are unnecessary. Barriers also permit novel forms of fault tolerance.

The cost of barrier synchronization is influenced by a couple of issues:

  1. The cost imposed by the variation in the completion time of the participating concurrent computations. Take the example where all but one of the processes have completed their work for this superstep, and are waiting for the last process, which still has a lot of work to complete. The best that an implementation can do is ensure that each process works on roughly the same problem size.
  2. The cost of reaching a globally consistent state in all of the processors. This depends on the communication network, but also on whether there is special-purpose hardware available for synchronizing, and on the way in which interrupts are handled by processors.

The cost of a barrier synchronization is denoted by l. In practice, a value of l is determined empirically.

The presence of barriers makes the BSP model mostly a theoretical one: on large computers barriers are expensive, and this is increasingly so on large scales. In fact, there is a large body of literature on removing synchronization points from existing algorithms.

The Cost of a BSP algorithm

The cost of a superstep is determined as the sum of three terms; the cost of the longest running local computation, the cost of global communication between the processors, and the cost of the barrier synchronisation at the end of the superstep. The cost of one superstep for p processors:

maxi=1p(wi)+maxi=1p(hig)+l where wi is the cost for the local computation in process i, and hi is the number of messages sent or received by process i. Note that homogeneous processors are assumed here. It is more common for the expression to be written as w+hg+l where w and h are maxima. The cost of the algorithm then, is the sum of the costs of each superstep.

W+Hg+Sl=s=1Sws+gs=1Shs+Sl where S is the number of supersteps.

W, H, and S are usually modelled as functions, that vary with problem size. These three characteristics of a BSP algorithm are usually described in terms of asymptotic notation, e.g. HO(n/p).

Extensions and uses

Interest in BSP has soared in recent years, with Google adopting it as a major technology for graph analytics at massive scale (Pregel). Also, with the next generation of Hadoop decoupling the MapReduce model from the rest of the Hadoop infrastructure, there is now some open source projects to add BSP and other high performance parallel programming models on top of Hadoop, such as Apache Hama and Apache Giraph.

BSP has been extended by many authors to address concerns about BSP's unsuitability for modelling specific architectures or computational paradigms. One example of this is the decomposable BSP model. The model has also been used in the creation of a number of new programming languages — including BSML (Bulk Synchronous Parallel ML) — and programming models — including BSPLib,[2] Apache Hama,[3] and Pregel.[4]

See also

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

External links

  1. Leslie G. Valiant, A bridging model for parallel computation, Communications of the ACM, Volume 33 Issue 8, Aug. 1990 [1]
  2. BSPlib
  3. Apache Hama
  4. Pregel