Stale Profile Matching(陈旧配置文件匹配)
Stale Profile Matching
AI总结:
针对配置文件引导优化中因版本差导致的配置文件陈旧性问题,研究团队在BOLT优化器中实现新算法,可利用旧版二进制收集的配置文件,最高恢复0.8的BOLT最大优化收益。
摘要:
配置文件引导优化依赖配置文件数据引导编译器生成优化后的代码。要实现最大性能提升,需要在待优化的同一版本二进制文件上收集配置文件数据。但在实践中,配置文件收集与发布之间通常存在时间差,导致部分配置文件对优化无效。这种现象被称为配置文件陈旧性,对数据中心工作负载而言,无论是编译器还是二进制优化器,这都是一个严峻的实际问题。\n本文对陈旧性问题展开了全面研究,并提出了首个实用解决方案,可利用在比发布版本落后数个修订版的二进制文件上收集的配置文件。我们的算法在主流开源链接后优化器BOLT中开发并实现。针对多种独立基准测试和生产服务的广泛评估表明,即使大部分输入配置文件数据已陈旧、原本会被优化器丢弃,新方法仍能恢复最高达0.8的BOLT最大优化收益。
英文摘要:
Profile-guided optimizations rely on profile data for directing compilers to generate optimized code. To achieve the maximum performance boost, profile data needs to be collected on the same version of the binary that is being optimized. In practice however, there is typically a gap between the profile collection and the release, which makes a portion of the profile invalid for optimizations. This phenomenon is known as profile staleness, and it is a serious practical problem for data-center workloads both for compilers and binary optimizers. In this paper we thoroughly study the staleness problem and propose the first practical solution for utilizing profiles collected on binaries built from several revisions behind the release. Our algorithm is developed and implemented in a mainstream open-source post-link optimizer, BOLT. An extensive evaluation on a variety of standalone benchmarks and production services indicates that the new method recovers up to $0.8$ of the maximum BOLT benefit, even when most of the input profile data is stale and would have been discarded by the optimizer otherwise.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。