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

BOLT:适用于数据中心及其他领域的实用二元优化器

BOLT: A Practical Binary Optimizer for Data Centers and Beyond

Maksim Panchenko, Rafael Auler, Bill Nell, Guilherme Ottoni

摘要:

随着计算不断向数据中心转移,大规模应用程序的性能优化最近变得越来越重要。数据中心应用程序通常非常庞大和复杂,这使得代码布局成为提高其性能的重要优化。这激发了最近的调查的实际技术,以改善在编译时和链接时的代码布局。虽然后链接优化器在过去取得了一些成功,但最近没有研究在现代数据中心应用程序的背景下探索其好处。在本文中,我们介绍了BOLT,一个建立在LLVM框架之上的后链接优化器。利用基于示例的分析,BOLT可以提高实际应用程序的性能,即使是使用反馈驱动优化(FDO)和链接时优化(LTO)构建的高度优化的二进制文件。我们证明,链接后的性能改善是补充传统的编译器优化,即使后者是在整个程序的水平和配置文件信息的存在下进行。我们在Facebook数据中心工作负载和开源编译器上评估了BOLT。对于数据中心应用,BOLT在配置文件引导的函数重新排序和LTO的基础上实现了高达8.0%的性能加速。对于GCC和Clang编译器,我们的评估显示,BOLT在FDO和LTO的基础上将其二进制文件的速度提高了20.4%,如果二进制文件在没有FDO和LTO的情况下构建,则提高了52.1%。

英文摘要:

Performance optimization for large-scale applications has recently become more important as computation continues to move towards data centers. Data-center applications are generally very large and complex, which makes code layout an important optimization to improve their performance. This has motivated recent investigation of practical techniques to improve code layout at both compile time and link time. Although post-link optimizers had some success in the past, no recent work has explored their benefits in the context of modern data-center applications. In this paper, we present BOLT, a post-link optimizer built on top of the LLVM framework. Utilizing sample-based profiling, BOLT boosts the performance of real-world applications even for highly optimized binaries built with both feedback-driven optimizations (FDO) and link-time optimizations (LTO). We demonstrate that post-link performance improvements are complementary to conventional compiler optimizations, even when the latter are done at a whole-program level and in the presence of profile information. We evaluated BOLT on both Facebook data-center workloads and open-source compilers. For data-center applications, BOLT achieves up to 8.0% performance speedups on top of profile-guided function reordering and LTO. For the GCC and Clang compilers, our evaluation shows that BOLT speeds up their binaries by up to 20.4% on top of FDO and LTO, and up to 52.1% if the binaries are built without FDO and LTO.

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

↑