平行工作膨胀、记忆效应及其实证分析
Parallel Work Inflation, Memory Effects, and their Empirical Analysis
摘要:
在本文中,我们提出了一个经验的方法来评估并行代码的性能。我们的方法是基于一个简单的想法,这是令人惊讶的有效帮助确定性能不佳的原因,如高并行化开销,缺乏足够的并行性,和内存的影响。我们的方法只依赖于基线顺序程序的运行时间的测量,并行程序的运行时间,并行程序的单处理器运行时间,以及处理器空闲等待工作的总时间。在我们提出的方法中,我们建立了一个平等的观察到的并行加速和三个术语,我们称之为并行工作,空闲时间,和工作通货膨胀,除了工作通货膨胀的所有条款可以凭经验测量,精度。然后,我们使用等式来计算难以测量的工作膨胀项,其中包括由于并行执行而增加的通信成本和内存效应。通过隔离性能差的主要因素,我们的方法使程序员能够将责任归咎于代码的某些属性,如并行粒度,并行量和内存使用。我们提出了一个数学模型,灵感来自工作跨度模型,使我们能够证明我们的测量的解释。我们还介绍了一种方法,以帮助程序员可视化的相对影响的各种原因的性能不佳和缩放趋势的原因性能不佳。我们的方法适合在最先进的分析和可视化工具之间的最佳点。我们说明了我们的方法,通过几个实证研究,我们描述了一些实验,强调的照顾,需要准确地解释加速图。
英文摘要:
In this paper, we propose an empirical method for evaluating the performance of parallel code. Our method is based on a simple idea that is surprisingly effective in helping to identify causes of poor performance, such as high parallelization overheads, lack of adequate parallelism, and memory effects. Our method relies on only the measurement of the run time of a baseline sequential program, the run time of the parallel program, the single-processor run time of the parallel program, and the total amount of time processors spend idle, waiting for work. In our proposed approach, we establish an equality between the observed parallel speedups and three terms that we call parallel work, idle time, and work-inflation, where all terms except work inflation can be measured empirically, with precision. We then use the equality to calculate the difficult-to-measure work-inflation term, which includes increased communication costs and memory effects due to parallel execution. By isolating the main factors of poor performance, our method enables the programmer to assign blame to certain properties of the code, such as parallel grain size, amount of parallelism, and memory usage. We present a mathematical model, inspired by the work-span model, that enables us to justify the interpretation of our measurements. We also introduce a method to help the programmer to visualize both the relative impact of the various causes of poor performance and the scaling trends in the causes of poor performance. Our method fits in a sweet spot in between state-of-the-art profiling and visualization tools. We illustrate our method by several empirical studies and we describe a few experiments that emphasize the care that is required to accurately interpret speedup plots.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。