arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.17434cs.AR
收藏

实现面向异构系统类的硬件优化通用树形数据结构

Realizing Hardware-Optimized General Tree-Based Data Structures for Heterogeneous System Classes

Daniel Biebert, Christian Hakert, Jian-Jia Chen

AI总结:

本文针对异构系统内存特性,提出了树形数据结构节点内存重排策略及触发机制,通过离线和在线优化分别实现高达95%和75%的性能提升。

摘要:

树形数据结构在各类应用中无处不在。因此,存在大量不同的树实现。然而,尽管这些实现多种多样,它们都以树结构作为底层数据结构。因此,这些树内部的访问模式非常相似,都是沿着从树根到叶节点的路径进行。同样,存在许多不同类型的内存。这些类型的内存具有不同的特性。其中一些对系统整体性能有影响。虽然具体的内存类型各不相同,但其特性通常可以被抽象为对性能产生相似的影响。我们展示了如何利用不同类型内存的特性来提升树形数据结构的性能。通过在内存中重新排列树的节点,可以利用内存特性来优化性能。为此,本文提出了在内存中重新排列节点的不同策略,以及实现这些策略的高效算法。此外,还提供了在运行期间决定何时触发此类重排操作的策略。进一步地,本文进行了实验,展示了所提策略对性能的影响。实验表明,作为离线优化,这些策略可将树的性能提升高达95%;作为在线优化,可提升75%。

英文摘要:

Tree-based data structures are ubiquitous across applications. Therefore, a multitude of different tree implementations exist. However, while these implementations are diverse, they share a tree structure as the underlying data structure. As such, the access patterns inside these trees are very similar, following a path from the root of the tree towards a leaf node. Similarly, many distinct types of memory exist. These types of memory all have different characteristics. Some of these have an impact on the overall system performance. While the concrete types of memory are varied, their characteristics can often be abstracted to have a similar effect on the performance. We show how the characteristics of different types of memories can be used to improve the performance of tree-based data structures. By reordering the nodes of a tree inside memory, the characteristics of memory can be exploited to optimize the performance. To this end, this paper presents different strategies for reordering nodes inside memory as well as efficient algorithms for realizing these strategies. It additionally provides strategies to decide when such a reordering operation should be triggered during operation. Further, this paper conducts experiments showing the performance impact of the proposed strategies. The experiments show that the strategies can improve the performance of trees by up to 95\% as offline optimization and 75\% as online optimization.

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

↑