使用学习模型的ASCII记录并行外部排序
Parallel External Sorting of ASCII Records Using Learned Models
AI总结:
本文提出ELSAR,一种基于学习数据分布模型的并行外部排序算法,通过等深分区避免多路合并,在SSD和Optane上排序速率分别提升1.65倍和5.31倍,能效提升41%。
摘要:
外部排序是大型数据库系统中许多操作的核心,例如对大型结果集进行排序和聚合查询、构建索引、排序合并连接、去重、分片和记录聚类。与内存排序不同,这些算法需要与操作系统和文件系统协同工作,以高效利用系统资源并最小化磁盘I/O。在本文中,我们描述了ELSAR:一种并行外部排序算法,它采用了一种基于学习数据分布模型的创新范式。该算法利用模型将输入记录划分为互斥、单调且等深的多个分区,这些分区排序后可以简单地拼接形成输出。这种方法完全消除了外部排序中通常使用的多路文件合并的需要。我们针对均匀和倾斜数据集在各种存储介质上进行了全面的基准测试,测量了ELSAR和其他排序算法的排序速率、规模可扩展性和能效。我们观察到,在SSD驱动器上,ELSAR的排序速率比次优的外部排序(Nsort)高出1.65倍,在Intel Optane非易失性存储器上比GNU coreutils的排序实用程序高出5.31倍。此外,ELSAR以41%的显著优势超越了SortBenchmark当前最节能的外部字符串排序算法的获胜者。这些结果强化了这样的前提:新颖的增强学习算法相比传统算法可以提供显著的性能优势。
英文摘要:
External sorting is at the core of many operations in large-scale database systems, such as ordering and aggregation queries for large result sets, building indexes, sort-merge joins, duplicate removal, sharding, and record clustering. Unlike in-memory sorting, these algorithms need to work together with the OS and the filesystem to efficiently utilize system resources and minimize disk I/O. In this paper we describe ELSAR: a parallel external sorting algorithm that uses an innovative paradigm based on a learned data distribution model. The algorithm leverages the model to arrange the input records into mutually exclusive, monotonic, and equi-depth partitions that, once sorted, can simply be concatenated to form the output. This method completely eliminates the need for multi-way file merging, which is typically used in external sorting. We present thorough benchmarks for uniform and skewed datasets in various storage media, where we measure the sorting rates, size scalability, and energy efficiency of ELSAR and other sorting algorithms. We observed that ELSAR has up to 1.65x higher sorting rates than the next-best external sort (Nsort) on SSD drives and 5.31x higher than the GNU coreutils' sort utility on Intel Optane non-volatile memory. In addition, ELSAR supersedes the current winner of the SortBenchmark for the most energy-efficient external string sorting algorithm by an impressive margin of 41%. These results reinforce the premise that novel learning-enhanced algorithms can provide remarkable performance benefits over traditional ones.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。