GraphTango:一种高效流图更新和分析的混合表示格式
GraphTango: A Hybrid Representation Format for Efficient Streaming Graph Updates and Analysis
摘要:
流图处理涉及对时间演进图执行更新和分析。底层表示格式在很大程度上决定了这些更新和分析阶段的吞吐量。现有格式通常采用哈希表或邻接列表的变体。然而,基于邻接表的方法在重尾图上表现不佳,而基于哈希的方法在短尾图上表现不佳。我们提出了GraphTango,这是一种混合格式,无论图的度分布如何,都能提供出色的更新和分析吞吐量。GraphTango基于顶点的度在三种不同的格式之间切换:i)低度顶点直接用邻域元数据存储边,将访问限制在单个缓存行,ii)中度顶点使用邻接列表,iii)高度顶点使用哈希表以及邻接列表。在这种情况下,邻接表在分析阶段提供快速遍历,而哈希表在更新阶段提供恒定时间查找。我们通过设计一个基于开放寻址的哈希表来进一步优化性能,该哈希表充分利用了每个提取的缓存行。此外,我们开发了一个线程本地无锁内存池,允许快速增长/收缩的邻接表和哈希表在多线程环境。我们在SAGA-Bench框架的帮助下评估了GraphTango,并将其与其他四种表示格式进行了比较。平均而言,GraphTango提供了比下一个最佳格式高4.5倍的插入吞吐量,3.2倍的删除吞吐量和1.1倍的分析吞吐量。此外,我们将GraphTango与最先进的图形处理框架DZiG和RisGraph集成在一起。与vanilla DZiG和vanilla RisGraph相比,[GraphTango + DZiG]和[GraphTango + RisGraph]分别将平均批处理时间缩短了2.3倍和1.5倍。
英文摘要:
Streaming graph processing involves performing updates and analytics on a time-evolving graph. The underlying representation format largely determines the throughputs of these updates and analytics phases. Existing formats usually employ variations of hash tables or adjacency lists. However, adjacency-list-based approaches perform poorly on heavy-tailed graphs, and the hash-based approaches suffer on short-tailed graphs. We propose GraphTango, a hybrid format that provides excellent update and analytics throughput regardless of the graph's degree distribution. GraphTango switches among three different formats based on a vertex's degree: i) Low-degree vertices store the edges directly with the neighborhood metadata, confining accesses to a single cache line, ii) Medium-degree vertices use adjacency lists, and iii) High-degree vertices use hash tables as well as adjacency lists. In this case, adjacency list provides fast traversal during the analytics phase, while the hash table provides constant-time lookups during the update phase. We further optimized the performance by designing an open-addressing-based hash table that fully utilizes every fetched cache line. In addition, we developed a thread-local lock-free memory pool that allows fast growing/shrinking of the adjacency lists and hash tables in a multi-threaded environment. We evaluated GraphTango with the help of the SAGA-Bench framework and compared it with four other representation formats. On average, GraphTango provides 4.5x higher insertion throughput, 3.2x higher deletion throughput, and 1.1x higher analytics throughput over the next best format. Furthermore, we integrated GraphTango with the state-of-the-art graph processing frameworks DZiG and RisGraph. Compared to the vanilla DZiG and vanilla RisGraph, [GraphTango + DZiG] and [GraphTango + RisGraph] reduces the average batch processing time by 2.3x and 1.5x, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。