arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1203.5675cs.DScs.DBcs.PF
收藏

存储层次结构敏感图布局

Memory Hierarchy Sensitive Graph Layout

Amitabha Roy

摘要:

由于大量的图结构化数据变得可用,挖掘大型图的信息正成为越来越重要的工作量。图算法的一个方面,迄今尚未收到很大的兴趣是访问的存储层次结构的效果。当今的典型系统在存储层次结构中具有多个级别,这些级别具有不同的局部性单元;范围跨越高速缓存行、TLB条目和DRAM页。我们假设可以在主内存中分配图结构数据,以提高数据的空间局部性。以前的提高高速缓存局部性的方法只集中在单个局部性单元上,或者是高速缓存行,或者是虚拟内存页。另一方面,高速缓存无关算法可以优化存储层次结构的所有级别的布局,但不幸的是,需要为各个数据结构专门设计。在本文中,我们探讨了分层块作为一种技术,用于缩小这一差距。我们需要作为输入的存储层次结构中的局部性单元的规范,并通过使用广度优先搜索的层次结构复制其节点来相应地布置输入图。我们从一个基本的算法,这是有限的树,然后将其扩展到任意图形。我们最高效的版本只需要恒定的额外空间。我们已经实现了不同版本的算法在各种环境中:C程序接口的宏,作为一个扩展的Boost面向对象的图形库,最后作为一个修改的遍历阶段的半空间垃圾收集器在Jikes Java虚拟机。我们的研究结果表明,显着改善的访问时间的各种结构的图。

英文摘要:

Mining large graphs for information is becoming an increasingly important workload due to the plethora of graph structured data becoming available. An aspect of graph algorithms that has hitherto not received much interest is the effect of memory hierarchy on accesses. A typical system today has multiple levels in the memory hierarchy with differing units of locality; ranging across cache lines, TLB entries and DRAM pages. We postulate that it is possible to allocate graph structured data in main memory in a way as to improve the spatial locality of the data. Previous approaches to improving cache locality have focused only on a single unit of locality, either the cache line or virtual memory page. On the other hand cache oblivious algorithms can optimise layout for all levels of the memory hierarchy but unfortunately need to be specially designed for individual data structures. In this paper we explore hierarchical blocking as a technique for closing this gap. We require as input a specification of the units of locality in the memory hierarchy and lay out the input graph accordingly by copying its nodes using a hierarchy of breadth first searches. We start with a basic algorithm that is limited to trees and then extend it to arbitrary graphs. Our most efficient version requires only a constant amount of additional space. We have implemented versions of the algorithm in various environments: for C programs interfaced with macros, as an extension to the Boost object oriented graph library and finally as a modification to the traversal phase of the semispace garbage collector in the Jikes Java virtual machine. Our results show significant improvements in the access time to graphs of various structure.

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

↑