English

Resource Oblivious Sorting on Multicores

Data Structures and Algorithms 2017-11-03 v2 Distributed, Parallel, and Cluster Computing

Abstract

We present a deterministic sorting algorithm, SPMS (Sample, Partition, and Merge Sort), that interleaves the partitioning of a sample sort with merging. Sequentially, it sorts nn elements in O(nlogn)O(n \log n) time cache-obliviously with an optimal number of cache misses. The parallel complexity (or critical path length) of the algorithm is O(lognloglogn)O(\log n \cdot \log\log n), which improves on previous bounds for optimal cache oblivious sorting. The algorithm also has low false sharing costs. When scheduled by a work-stealing scheduler in a multicore computing environment with a global shared memory and pp cores, each having a cache of size MM organized in blocks of size BB, the costs of the additional cache misses and false sharing misses due to this parallel execution are bounded by the cost of O(SM/B)O(S\cdot M/B) and O(SB)O(S \cdot B) cache misses respectively, where SS is the number of steals performed during the execution. Finally, SPMS is resource oblivious in Athat the dependence on machine parameters appear only in the analysis of its performance, and not within the algorithm itself.

Keywords

Cite

@article{arxiv.1508.01504,
  title  = {Resource Oblivious Sorting on Multicores},
  author = {Richard Cole and Vijaya Ramachandran},
  journal= {arXiv preprint arXiv:1508.01504},
  year   = {2017}
}

Comments

A version very similar to this appears in ACM Transactions on Parallel Computing (TOPC), Vol. 3, No. 4, Article 23, 2017. The current version adds some additional citations to earlier sorting algorithms, and a comparison to Sharesort

R2 v1 2026-06-22T10:28:07.870Z