arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.17548cs.SEcs.PF
收藏

用于性能建模和回归检测的追踪优化

Tracing Optimization for Performance Modeling and Regression Detection

Kaveh Shahedi, Heng Li, Maxime Lamothe, Foutse Khomh

AI总结:

针对软件性能建模在生产环境中因追踪开销大而不实用的问题,提出统计方法排除性能不敏感代码区域,构建R-2得分达99%且开销降80%以上的优化模型,可有效检测性能回归且完全自动化。

摘要:

软件性能建模在软件系统的开发和维护中起着至关重要的作用。性能模型通过分析方式描述系统性能与其运行时活动之间的关系。该过程通常会检查系统运行时行为的各个方面,例如函数或方法的执行频率,以预测程序执行时间等性能指标。通过使用性能模型,开发人员可以预测预期性能,从而在实际性能偏离模型预测时有效识别和解决意外的性能回归问题。捕获性能行为的一种常见且精确的方法是软件追踪,它涉及对程序执行进行插桩,无论是在内核级别(例如系统调用)还是应用程序级别(例如函数调用)。然而,由于追踪的特性,它可能会占用大量资源,这使得它在资源有限的生产环境中不切实际。在这项工作中,我们提出了统计方法来减少追踪开销,具体是通过识别并排除性能不敏感的代码区域(特别是应用程序级别的函数),同时仍然构建能够捕获性能下降的准确性能模型。通过选择一组最优的函数进行追踪,我们可以构建优化的性能模型,其R-2得分高达99%,有时甚至优于全追踪模型(使用非优化追踪数据的模型),同时在大多数情况下将追踪开销显著降低80%以上。我们的优化性能模型还可以有效捕获所研究程序中的性能回归,证明了它们在实际场景中的实用性。我们的方法是完全自动化的,只需最少的人力即可在生产环境中使用。

英文摘要:

Software performance modeling plays a crucial role in developing and maintaining software systems. A performance model analytically describes the relationship between the performance of a system and its runtime activities. This process typically examines various aspects of a system's runtime behavior, such as the execution frequency of functions or methods, to forecast performance metrics like program execution time. By using performance models, developers can predict expected performance and thereby effectively identify and address unexpected performance regressions when actual performance deviates from the model's predictions. One common and precise method for capturing performance behavior is software tracing, which involves instrumenting the execution of a program, either at the kernel level (e.g., system calls) or application level (e.g., function calls). However, due to the nature of tracing, it can be highly resource-intensive, making it impractical for production environments where resources are limited. In this work, we propose statistical approaches to reduce tracing overhead by identifying and excluding performance-insensitive code regions, particularly application-level functions, from tracing while still building accurate performance models that can capture performance degradations. By selecting an optimal set of functions to be traced, we can construct optimized performance models that achieve an R-2 score of up to 99% and, sometimes, outperform full tracing models (models using non-optimized tracing data), while significantly reducing the tracing overhead by more than 80% in most cases. Our optimized performance models can also capture performance regressions in our studied programs effectively, demonstrating their usefulness in real-world scenarios. Our approach is fully automated, making it ready to be used in production environments with minimal human effort.

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

↑