Lune

ICDE2026Top-tier venue

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 Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. Origami: A High-Performance Mergesort FrameworkArif Arman, Dmitri LoguinovVLDB 2022 · 3 citations
  2. MilliSort and MilliQuery: Large-Scale Data-Intensive Computing in MillisecondsYilong Li, Seo Jin Park, John K. OusterhoutNSDI 2021 · 17 citations
  3. Efficient String Sort with Multi-Character Encoding and Adaptive SamplingWen Jin, Weining Qian, Aoying ZhouSIGMOD 2021 · 1 citation
  4. Bonsai: High-Performance Adaptive Merge Tree SortingNikola Samardzic, Weikang Qiao, Vaibhav Aggarwal, Mau-Chung Frank Chang et al.ISCA 2020 · 51 citations
  5. Exoshuffle: An Extensible Shuffle ArchitectureFrank Sifei Luan, Stephanie Wang, Samyukta Yagati, Sean Kim et al.SIGCOMM 2023 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines