arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.14071cs.DBcs.NI
收藏

通过可编程开关加速大数据排序

Accelerating Big-Data Sorting Through Programmable Switches

Yamit Barshatz-Schneor, Roy Friedman

摘要:

排序是一个基本的和研究得很好的问题,已被广泛研究。排序在数据库领域起着重要的作用,因为如果首先对关系进行排序,则可以更快地服务于许多查询。数据库中最流行的排序算法之一是归并排序。在现代数据中心中,数据存储在存储服务器中,而处理发生在计算服务器中。因此,为了计算对数据的查询,它必须通过网络从存储服务器传输到计算服务器。这为利用可编程交换机执行部分排序以加速服务器侧的排序过程创造了可能性。这是可能的,因为如上所述,数据包在任何情况下都要通过交换机到达服务器。可惜的是,可编程交换机提供了一个非常有限和非直观的编程模型,这就是为什么实现这一点并不容易。我们设计了一种新的部分排序算法,适合编程模型和可编程交换机的限制,可以加快归并排序在服务器上。我们还利用交换机中的内置并行性将数据划分为顺序范围。因此,服务器需要分别对每个范围进行排序,然后将它们连接到一个已排序的流。这样,服务器需要对较小的部分进行排序,并且这些部分中的每一个都已经部分排序。因此,服务器做的工作更少,访问模式变得对虚拟内存更友好。我们评估了性能的改善时,利用我们的部分排序算法在几个数据流组合与各种开关配置。我们的研究表明,使用我们的方法相比,在原始流上的普通排序的排序运行时间的20%-75%的改善。

英文摘要:

Sorting is a fundamental and well studied problem that has been studied extensively. Sorting plays an important role in the area of databases, as many queries can be served much faster if the relations are first sorted. One of the most popular sorting algorithm in databases is merge sort. In modern data-centers, data is stored in storage servers, while processing takes place in compute servers. Hence, in order to compute queries on the data, it must travel through the network from the storage servers to the compute servers. This creates a potential for utilizing programmable switches to perform partial sorting in order to accelerate the sorting process at the server side. This is possible because, as mentioned above, data packets pass through the switch in any case on their way to the server. Alas, programmable switches offer a very restricted and non-intuitive programming model, which is why realizing this is not-trivial. We devised a novel partial sorting algorithm that fits the programming model and restrictions of programmable switches and can expedite merge sort at the server. We also utilize built-in parallelism in the switch to divide the data into sequential ranges. Thus, the server needs to sort each range separately and then concatenate them to one sorted stream. This way, the server needs to sort smaller sections and each of these sections is already partially sorted. Hence, the server does less work, and the access pattern becomes more virtual-memory friendly. We evaluated the performance improvements obtained when utilizing our partial sorting algorithm over several data stream compositions with various switch configurations. Our study exhibits an improvement of 20%-75% in the sorting run-time when using our approach compared to plain sorting on the original stream.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑