Fast parallel sorting under LogP: Experience with the CM-5

Andrea C. Dusseau, David E. Culler, Klaus Erik Schauser, Richard P. Martin

Research output: Contribution to journalArticlepeer-review

51 Scopus citations

Abstract

In this paper, we analyze four parallel sorting algorithms (bitonic, column, radix, and sample sort) with the LogP model. LogP characterizes the performance of modern parallel machines with a small set of parameters: the communication latency (L), overhead (o), bandwidth (g), and the number of processors (P). We develop implementations of these algorithms in Split-C, a parallel extension to C, and compare the performance predicted by LogP to actual performance on a CM-5 of 32 to 512 processors for a range of problem sizes. We evaluate the robustness of the algorithms by varying the distribution and ordering of the key values. We also briefly examine the sensitivity of the algorithms to the communication parameters. We show that the LogP model is a valuable guide in the development of parallel algorithms and a good predictor of implementation performance. The model encourages the use of data layouts which minimize communication and balanced communication schedules which avoid contention. With an empirical model of local processor performance, LogP predictions closely match observed execution times on uniformly distributed keys across a broad range of problem and machine sizes. We find that communication performance is oblivious to the distribution of the key values, whereas the local processor performance is not; some communication phases are sensitive to the ordering of keys due to contention. Finally, our analysis shows that overhead is the most critical communication parameter in the sorting algorithms.

Original languageEnglish (US)
Pages (from-to)791-805
Number of pages15
JournalIEEE Transactions on Parallel and Distributed Systems
Volume7
Issue number8
DOIs
StatePublished - 1996
Externally publishedYes

All Science Journal Classification (ASJC) codes

  • Signal Processing
  • Hardware and Architecture
  • Computational Theory and Mathematics

Keywords

  • Algorithm implementation
  • Communication performance
  • Communication schedules
  • Data layout
  • Massively parallel processing
  • Models of parallel computation
  • Performance analysis
  • Performance prediction
  • Sorting

Fingerprint

Dive into the research topics of 'Fast parallel sorting under LogP: Experience with the CM-5'. Together they form a unique fingerprint.

Cite this