arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1304.3804cs.PFcs.PL
收藏

多线程输入敏感分析

Multithreaded Input-Sensitive Profiling

Emilio Coppa, Camil Demetrescu, Irene Finocchi, Romolo Marotta

摘要:

输入敏感分析是一种最新的性能分析技术,它可以估计程序的单个例程的经验成本函数,帮助开发人员了解性能如何扩展到更大的输入,并确定代码中的渐近瓶颈。对输入敏感的分析器目前的一个局限是,它们专门针对顺序计算,忽略线程之间的任何通信。在本文中,我们将展示如何克服这一限制,扩展范围的适用性,原来的方法多线程应用程序和应用程序上操作的I/O流。我们开发了新的指标,用于自动估计给予每个例程激活的输入大小,解决由其他线程以及操作系统内核执行的非确定性内存存储产生的输入(例如,响应于I/O或网络操作)。我们提供了真实的案例研究,表明我们的扩展允许它比以前的方法更精确地描述复杂应用程序的行为。对各种基准测试套件(包括SPEC OMP 2012和PARSEC基准测试)的广泛实验研究表明,我们基于Valgrind的输入敏感分析器的开销与其他著名的重量级分析工具相当,同时从每个分析会话中收集更多的性能点,并正确地表征线程引起的和外部输入。

英文摘要:

Input-sensitive profiling is a recent performance analysis technique that makes it possible to estimate the empirical cost function of individual routines of a program, helping developers understand how performance scales to larger inputs and pinpoint asymptotic bottlenecks in the code. A current limitation of input-sensitive profilers is that they specifically target sequential computations, ignoring any communication between threads. In this paper we show how to overcome this limitation, extending the range of applicability of the original approach to multithreaded applications and to applications that operate on I/O streams. We develop new metrics for automatically estimating the size of the input given to each routine activation, addressing input produced by non-deterministic memory stores performed by other threads as well as by the OS kernel (e.g., in response to I/O or network operations). We provide real case studies, showing that our extension allows it to characterize the behavior of complex applications more precisely than previous approaches. An extensive experimental investigation on a variety of benchmark suites (including the SPEC OMP2012 and the PARSEC benchmarks) shows that our Valgrind-based input-sensitive profiler incurs an overhead comparable to other prominent heavyweight analysis tools, while collecting significantly more performance points from each profiling session and correctly characterizing both thread-induced and external input.

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

↑