Bulk Synchronous Parallel
   HOME

TheInfoList



OR:

The bulk synchronous parallel (BSP) abstract computer is a bridging model for designing
parallel algorithm In computer science, a parallel algorithm, as opposed to a traditional serial algorithm, is an algorithm which can do multiple operations in a given time. It has been a tradition of computer science to describe serial algorithms in abstract machin ...
s. It is similar to the
parallel random access machine In computer science, a parallel random-access machine (parallel RAM or PRAM) is a shared memory architecture, shared-memory abstract machine. As its name indicates, the PRAM is intended as the parallel-computing analogy to the random-access machin ...
(PRAM) model, but unlike PRAM, BSP does not take communication and synchronization for granted. In fact, quantifying the requisite synchronization and communication is an important part of analyzing a BSP algorithm.


History

The BSP model was developed by
Leslie Valiant Leslie Gabriel Valiant (born 28 March 1949) is a British American computer scientist and computational theorist. He was born to a chemical engineer father and a translator mother. He is currently the T. Jefferson Coolidge Professor of Compu ...
of
Harvard University Harvard University is a private Ivy League research university in Cambridge, Massachusetts. Founded in 1636 as Harvard College and named for its first benefactor, the Puritan clergyman John Harvard, it is the oldest institution of high ...
during the 1980s. The definitive article was published in 1990.Leslie G. Valiant, A bridging model for parallel computation, Communications of the ACM, Volume 33 Issue 8, Aug. 199

/ref> Between 1990 and 1992, Leslie Valiant and Bill McColl of
Oxford University Oxford () is a city in England. It is the county town and only city of Oxfordshire. In 2020, its population was estimated at 151,584. It is north-west of London, south-east of Birmingham and north-east of Bristol. The city is home to th ...
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, including many early examples of high-performance communication-avoiding parallel algorithms W F McColl. Scalable Computing. Computer Science Today: Recent Trends and Developments. J van Leeuwen (editor). LNCS Volume 1000, Springer-Verlag pp.46-61 (1995

/ref> and recursive "immortal" parallel algorithms that achieve the best possible performance and optimal parametric tradeoffs. W F McColl and A Tiskin. Memory-efficient matrix multiplication in the BSP model. Algorithmica 24(3) pp.287-297 (1999

/ref> With interest and momentum growing, 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 in 1996. J M D Hill, W F McColl, D C Stefanescu, M W Goudreau, K Lang, S B Rao, T Suel, T Tsantilas and R H Bisseling. BSPlib: The BSP Programming Library. Parallel Computing 24 (14) pp. 1947-1980 (1998

/ref> Valiant developed an extension to the BSP model in the 2000s, leading to the publication of the Multi-BSP model in 2011.Valiant, L. G. (2011). A bridging model for multi-core computing. ''Journal of Computer and System Sciences'', 77(1), 154-16

/ref> In 2017, McColl developed a major new extension of the BSP model that provides
fault tolerance Fault tolerance is the property that enables a system to continue operating properly in the event of the failure of one or more faults within some of its components. If its operating quality decreases at all, the decrease is proportional to the ...
and tail tolerance for large-scale parallel computations in AI, Analytics and
high-performance computing High-performance computing (HPC) uses supercomputers and computer clusters to solve advanced computation problems. Overview HPC integrates systems administration (including network and security knowledge) and parallel programming into a mult ...
(HPC).A Bridging Model for High Performance Cloud Computing by Bill McColl in 18th SIAM Conference on Parallel Processing for Scientific Computing (2018), http://meetings.siam.org/sess/dsp_talk.cfm?p=88973 . See also Bill McColl. Mathematics, Models and Architectures. Chapter 1, pp. 6-53. Mathematics for Future Computing and Communications, edited by Liao Heng and Bill McColl. Cambridge University Press (2022)

/ref>


The BSP model


Overview

A BSP computer consists of the following: * Components capable of processing and/or local memory transactions (i.e., processors), * A network that routes messages between pairs of such components, and * A hardware facility that allows for the synchronization of all or a subset of components. This is commonly interpreted as a set of processors that may follow different thread (computer science), threads of computation, with each processor equipped with fast local memory and interconnected by a communication network. BSP algorithms rely heavily on the third feature; a computation proceeds in a series of global ''supersteps'', which consists of three components: * Concurrent computation: every participating processor may perform local computations, i.e., each process can only make use of values stored in the local fast memory of the processor. The computations occur asynchronously of all the others but may overlap with communication. * Communication: The processes exchange data to facilitate remote data storage. * Barrier synchronization: When a process reaches this point (the ''barrier''), it waits until all other processes have reached the same barrier. The computation and communication actions do not have to be ordered in time. Communication typically takes the form of the one-sided ''PUT'' and ''GET'' remote direct memory access (RDMA) calls rather than paired two-sided ''send'' and ''receive'' message-passing calls. The barrier synchronization concludes the superstep—it ensures that all one-sided communications are properly concluded. Systems based on two-sided communication include this synchronization cost implicitly for every message sent. The barrier synchronization method relies on the BSP computer's hardware facility. In Valiant's original paper, this facility periodically checks if the end of the current superstep is reached globally. The period of this check is denoted by L. The BSP model is also well-suited for automatic memory management for distributed-memory computing through over-decomposition of the problem and oversubscription of the processors. The computation 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 perfect load balancing, both of work and communication.


Communication

In many parallel programming systems, communications are considered at the level of individual actions, such as sending and receiving a message or memory-to-memory transfer. 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 individual messages sent as part of this unit 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 depends on the following: * 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 In computer programming, a runtime system or runtime environment is a sub-system that exists both in the computer where a program is created, as well as in the computers where the program is intended to be run. The name comes from the compile t ...
. In practice, g is determined empirically for each parallel computer. Note that g is not the normalized single-word delivery time but the single-word delivery time under continuous traffic conditions.


Barriers

The one-sided communication of the BSP model requires barrier synchronization. Barriers are potentially costly but avoid the possibility of
deadlock In concurrent computing, deadlock is any situation in which no member of some group of entities can proceed because each waits for another member, including itself, to take action, such as sending a message or, more commonly, releasing a loc ...
or
livelock In concurrent computing, deadlock is any situation in which no member of some group of entities can proceed because each waits for another member, including itself, to take action, such as sending a message or, more commonly, releasing a loc ...
, since barriers cannot create circular data dependencies. Tools to detect them and deal with them are unnecessary. Barriers also permit novel forms of
fault tolerance Fault tolerance is the property that enables a system to continue operating properly in the event of the failure of one or more faults within some of its components. If its operating quality decreases at all, the decrease is proportional to the ...
. 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 l. Note that l if the synchronization mechanism of the BSP computer is as suggested by Valiant. In practice, a value of l is determined empirically. On large computers, barriers are expensive, and this is increasingly so on large scales. There is a large body of literature on removing synchronization points from existing algorithms in the context of BSP computing and beyond. For example, many algorithms allow for the local detection of the global end of a superstep simply by comparing local information to the number of messages already received. This drives the cost of global synchronization, compared to the minimally required latency of communication, to zero.Alpert, R., & Philbin, J. (1997). cBSP: Zero-cost synchronization in a modified BSP model. NEC Research Institute, 4 Independence Way, Princeton NJ, 8540

Yet also this minimal latency is expected to increase further for future supercomputer architectures and network interconnects; the BSP model, along with other models for parallel computation, require adaptation to cope with this trend. Multi-BSP is one BSP-based solution.


Algorithmic cost

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 * The cost of the barrier synchronization at the end of the superstep Thus, the cost of one superstep for p processors: max_^(w_i) + max_^(h_i g) + l where w_i is the cost for the local computation in process i, and h_i 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 an entire BSP algorithm is the sum of the cost of each superstep. W + Hg + Sl = \sum_^w_s + g \sum_^h_s + Sl where S is the number of supersteps. W, H, and S are usually modeled as functions that vary with problem size. These three characteristics of a BSP algorithm are usually described in terms of
asymptotic notation Big ''O'' notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann, Edmund Lan ...
, e.g., H \in O(n/p).


Extensions and uses

Interest in BSP has soared, with
Google Google LLC () is an American Multinational corporation, multinational technology company focusing on Search Engine, search engine technology, online advertising, cloud computing, software, computer software, quantum computing, e-commerce, ar ...
adopting it as a major technology for graph analytics at massive scale via Pregel and
MapReduce MapReduce is a programming model and an associated implementation for processing and generating big data sets with a parallel, distributed algorithm on a cluster. A MapReduce program is composed of a ''map'' procedure, which performs filtering ...
. Also, with the next generation of
Hadoop Apache Hadoop () is a collection of open-source software utilities that facilitates using a network of many computers to solve problems involving massive amounts of data and computation. It provides a software framework for distributed storage an ...
decoupling the MapReduce model from the rest of the Hadoop infrastructure, there are now active open-source projects to add explicit BSP programming, as well as other high-performance parallel programming models, on top of Hadoop. Examples are
Apache Hama Apache Hama is a distributed computing framework based on bulk synchronous parallel computing techniques for massive scientific computations e.g., matrix, graph and network algorithms. It was a Top Level Project under the Apache Software Foundatio ...
and
Apache Giraph Apache Giraph is an Apache project to perform graph processing on big data. Giraph utilizes Apache Hadoop's MapReduce implementation to process graphs. Facebook Facebook is an online social media and social networking service owned b ...
.Apache Hama
/ref> 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 and interfaces, such as Bulk Synchronous Parallel ML (BSML), BSPLib,
Apache Hama Apache Hama is a distributed computing framework based on bulk synchronous parallel computing techniques for massive scientific computations e.g., matrix, graph and network algorithms. It was a Top Level Project under the Apache Software Foundatio ...
, and Pregel. Notable implementations of the BSPLib standard are the Paderborn University BSP libraryThe Paderborn University BSP (PUB) Library - Design, Implementation and Performance Heinz Nixdorf Institute, Department of Computer Science, University of Paderborn, Germany
technical report
.
and the Oxford BSP Toolset by Jonathan Hill.Jonathan Hill
The Oxford BSP Toolset
1998.
Modern implementations include BSPonMPIWijnand J. Suijlen
BSPonMPI
2006.
(which simulates BSP on top of the Message Passing Interface), and MulticoreBSPMulticoreBSP for C: a high-performance library for shared-memory parallel programming by A. N. Yzelman, R. H. Bisseling, D. Roose, and K. Meerbergen in International Journal of Parallel Programming, in press (2013)
doi:10.1109/TPDS.2013.31
An Object-Oriented Bulk Synchronous Parallel Library for Multicore Programming by A. N. Yzelman & Rob H. Bisseling in Concurrency and Computation: Practice and Experience 24(5), pp. 533-553 (2012)
doi:10.1002/cpe.1843
(a novel implementation targeting modern shared-memory architectures). MulticoreBSP for C is especially notable for its capability of starting nested BSP runs, thus allowing for explicit Multi-BSP programming.


See also

*
Automatic mutual exclusion Automatic mutual exclusion is a parallel computing programming paradigm in which threads are divided into atomic chunks, and the atomic execution of the chunks automatically parallelized using transactional memory. References See also * Bulk ...
*
Apache Hama Apache Hama is a distributed computing framework based on bulk synchronous parallel computing techniques for massive scientific computations e.g., matrix, graph and network algorithms. It was a Top Level Project under the Apache Software Foundatio ...
*
Apache Giraph Apache Giraph is an Apache project to perform graph processing on big data. Giraph utilizes Apache Hadoop's MapReduce implementation to process graphs. Facebook Facebook is an online social media and social networking service owned b ...
* Computer cluster * Concurrent computing *
Concurrency (computer science) In computer science, concurrency is the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the outcome. This allows for parallel execution of the concur ...
*
Dataflow programming In computer programming, dataflow programming is a programming paradigm that models a program as a directed graph of the data flowing between operations, thus implementing dataflow principles and architecture. Dataflow programming languages share s ...
* Grid computing *
LogP machine The LogP machine is a model for parallel computation.Culler et al. 1993 It aims at being more practical than the PRAM model while still allowing for easy analysis of computation. The name is not related to the mathematical logarithmic function: In ...
* Parallel computing *
Parallel programming model In computing, a parallel programming model is an abstraction of parallel computer architecture, with which it is convenient to express algorithms and their composition in programs. The value of a programming model can be judged on its ''generality ...


References


External links

* D.B. Skillicorn, Jonathan Hill, W. F. McColl, tp://ftp.comlab.ox.ac.uk/pub/Documents/techpapers/Jonathan.Hill/SkillHillMcColl_QA.ps.gz Questions and answers about BSP(1996)
BSP Worldwide


* Bulk Synchronous Parallel ML ({{in lang, en}
official website

Apache Hama

Apache Giraph

Paderborn University BSP library

BSPonMPI

MulticoreBSP
Models of computation Parallel computing