仓库规模下的指令集迁移
Instruction Set Migration at Warehouse Scale
AI总结:
本文通过分析谷歌从x86到Arm的大规模迁移(近4万次提交),提出ISA迁移任务分类法,并展示AI在自动化迁移步骤中的关键作用及剩余挑战。
摘要:
将代码库从一种指令集架构(ISA)迁移到另一种是一项重大的工程挑战。近期的一个例子是,各大云超大规模服务商在x86之外采用了Arm架构。然而,这一问题在学术界受到的关注有限。大多数工作集中在静态和动态二进制翻译上,传统的主流观点认为这是主要的挑战。在本文中,我们表明情况已不再如此。现代ISA迁移通常可以依托强大的开源生态系统,从而能够从头重新编译所有相关软件。这引入了一系列新的、多方面的挑战,这些挑战不同于二进制翻译。通过分析谷歌从x86到Arm的大规模迁移(涉及近40,000次代码提交),我们得出了ISA迁移所涉及任务的分类法。我们展示了谷歌如何自动化其中的许多步骤,并演示了AI如何在自动处理这些任务中发挥重要作用。我们识别了仍然具有挑战性的任务,并强调了值得进一步关注的研究挑战。
英文摘要:
Migrating codebases from one instruction set architecture (ISA) to another is a major engineering challenge. A recent example is the adoption of Arm (in addition to x86) across the major Cloud hyperscalers. Yet, this problem has seen limited attention by the academic community. Most work has focused on static and dynamic binary translation, and the traditional conventional wisdom has been that this is the primary challenge. In this paper, we show that this is no longer the case. Modern ISA migrations can often build on a robust open-source ecosystem, making it possible to recompile all relevant software from scratch. This introduces a new and multifaceted set of challenges, which are different from binary translation. By analyzing a large-scale migration from x86 to Arm at Google, spanning almost 40,000 code commits, we derive a taxonomy of tasks involved in ISA migration. We show how Google automated many of the steps involved, and demonstrate how AI can play a major role in automatically addressing these tasks. We identify tasks that remain challenging and highlight research challenges that warrant further attention.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。