F5: A Robust SIMD-Accelerated MSD Radix Sort
Arif Arman, Dmitri Loguinov
Abstract
Sorting is a building block of many data-intensive applications, databases, MapReduce pipelines, and large-scale distributed systems. In this paper, we focus on MSD (mostsignificant digit first) radix sort, in which we identify three main bottlenecks - slow small-bucket sorts at the end of recursion, partitioning algorithms susceptible to read-after-write stalls, and unnecessarily deep recursion chains on non-uniform distributions. We overcome these issues in a framework we call F5, which consists of a) vectorized small sorts that perform well on a wide range of input sizes; b) a partitioning engine that delivers bursts of keys into buckets at significantly increased speed; c) a prefix extractor and sortedness checker that allow jumping over common bits and terminating recursion early; and d) an adaptive radix selector that optimally decides the number of bits for each level of partitioning. Results show that F5 often doubles the speed of prior methods, including recent AVX-512 endeavors from Google [13] and Intel [19], on both uniform/skewed distributions, while also remaining in-place.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get bb8a250e-57ef-489d-8ba0-3266885f3ea7Related papers
- Origami: A High-Performance Mergesort FrameworkArif Arman, Dmitri LoguinovVLDB 2022 · 3 citations
- MilliSort and MilliQuery: Large-Scale Data-Intensive Computing in MillisecondsYilong Li, Seo Jin Park, John K. OusterhoutNSDI 2021 · 17 citations
- Efficient String Sort with Multi-Character Encoding and Adaptive SamplingWen Jin, Weining Qian, Aoying ZhouSIGMOD 2021 · 1 citation
- Bonsai: High-Performance Adaptive Merge Tree SortingNikola Samardzic, Weikang Qiao, Vaibhav Aggarwal, Mau-Chung Frank Chang et al.ISCA 2020 · 51 citations
- Exoshuffle: An Extensible Shuffle ArchitectureFrank Sifei Luan, Stephanie Wang, Samyukta Yagati, Sean Kim et al.SIGCOMM 2023 · 4 citations
