arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1811.01412cs.PF
收藏

在Linux上测量软件性能

Measuring Software Performance on Linux

Martin Becker, Samarjit Chakraborty

摘要:

由于更先进的处理器设计以及用户程序、操作系统和处理器微体系结构之间的复杂交互,软件性能的测量和分析已经达到了很高的复杂性。在这份报告中,我们总结了我们的经验,如何衡量软件的性能特征时,运行在Linux操作系统和现代处理器。特别是,(1)我们提供了一个关于硬件和操作系统的功能,可能有一个显着的影响时序和它们如何相互作用的一般概述,(2)我们确定的错误,需要加以控制,以获得公正的测量结果的来源,和(3)我们提出了一个测量设置为Linux,以尽量减少错误。虽然不是本报告的重点,但我们使用硬件性能计数器描述了测量过程,它可以忠实地反映给定处理器上的真正瓶颈。我们的实验证实,我们的测量设置对结果有很大的影响。然而,更令人惊讶的是,他们还建议,对于某些分析方法,设置可以忽略不计。此外,我们发现我们的设置在后台负载条件下保持了更好的性能,这意味着它可以用于改进高性能应用程序中的软件。

英文摘要:

Measuring and analyzing the performance of software has reached a high complexity, caused by more advanced processor designs and the intricate interaction between user programs, the operating system, and the processor's microarchitecture. In this report, we summarize our experience about how performance characteristics of software should be measured when running on a Linux operating system and a modern processor. In particular, (1) We provide a general overview about hardware and operating system features that may have a significant impact on timing and how they interact, (2) we identify sources of errors that need to be controlled in order to obtain unbiased measurement results, and (3) we propose a measurement setup for Linux to minimize errors. Although not the focus of this report, we describe the measurement process using hardware performance counters, which can faithfully reflect the real bottlenecks on a given processor. Our experiments confirm that our measurement setup has a large impact on the results. More surprisingly, however, they also suggest that the setup can be negligible for certain analysis methods. Furthermore, we found that our setup maintains significantly better performance under background load conditions, which means it can be used to improve software in high-performance applications.

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

↑