使用TPIE简化外部存储器流水线
External Memory Pipelining Made Easy With TPIE
摘要:
当处理超过主存储器容量的大型数据集时,主存储器和外部存储器(磁盘)之间的数据移动,而不是实际(CPU)计算时间,通常是计算的瓶颈。由于数据在磁盘和主存之间以大的连续块移动,这导致了大量I/O高效算法的发展,这些算法最大限度地减少了这种块移动的数量。TPIE是为支持I/O高效算法实现而开发的两个主要库之一。TPIE提供了一个接口,在该接口中,可以以简单和模块化的方式实现列表流处理和排序,而不必担心存储管理或块移动。然而,如果不小心,这种基于流的实现可能导致实际上效率低下的算法,因为数据项列表通常在组件之间写入磁盘(和从磁盘读取)。在本文中,我们提出了一个主要的扩展TPIE库,其中包括一个流水线框架,允许实际有效的基于流的实现,同时最大限度地减少流组件之间的I/O开销。该框架通过管道传输流组件以避免组件之间的I/O,也就是说,它同时处理多个组件,同时将一个组件的输出直接传递到主存中下一个组件的输入。TPIE自动确定哪些组件要流水线化,并执行所需的主存储管理,该扩展还包括支持内部存储器计算的并行化和整个应用程序的进度跟踪。扩展库已经被用来评估I/O高效的算法在研究文献中,并大量用于I/O高效的商业地形处理应用程序的丹麦启动SCALGO。
英文摘要:
When handling large datasets that exceed the capacity of the main memory, movement of data between main memory and external memory (disk), rather than actual (CPU) computation time, is often the bottleneck in the computation. Since data is moved between disk and main memory in large contiguous blocks, this has led to the development of a large number of I/O-efficient algorithms that minimize the number of such block movements. TPIE is one of two major libraries that have been developed to support I/O-efficient algorithm implementations. TPIE provides an interface where list stream processing and sorting can be implemented in a simple and modular way without having to worry about memory management or block movement. However, if care is not taken, such streaming-based implementations can lead to practically inefficient algorithms since lists of data items are typically written to (and read from) disk between components. In this paper we present a major extension of the TPIE library that includes a pipelining framework that allows for practically efficient streaming-based implementations while minimizing I/O-overhead between streaming components. The framework pipelines streaming components to avoid I/Os between components, that is, it processes several components simultaneously while passing output from one component directly to the input of the next component in main memory. TPIE automatically determines which components to pipeline and performs the required main memory management, and the extension also includes support for parallelization of internal memory computation and progress tracking across an entire application. The extended library has already been used to evaluate I/O-efficient algorithms in the research literature and is heavily used in I/O-efficient commercial terrain processing applications by the Danish startup SCALGO.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。