符号解析 MatRs:通过稳定链接实现快速与可观测
Symbol Resolution MatRs: Make it Fast and Observable with Stable Linking
AI总结:
本文提出 stable linking 稳定链接机制及首个稳定链接器 MatR,通过在 epoch 开始时计算并复用重定位映射,兼顾共享库优势、运行性能与依赖可观测性,平均性能较动态链接提升 2.19 倍。
摘要:
动态链接是使用外部依赖的标准机制,因为它支持代码复用、简化软件更新并减少磁盘/网络使用。动态链接会等到运行时才计算应用程序的重定位映射,即应用程序中每个外部引用符号与提供该符号的依赖之间的映射。遗憾的是,它有两个缺点。首先,动态链接限制了当前系统的性能,因为为大型程序计算重定位映射可能需要数秒。其次,动态链接限制了应用程序的依赖管理,因为它使开发者除了在运行时之外无法准确观测重定位映射。本文的关键洞察是,传统上归因于动态链接的优势——代码复用、简化软件更新以及减少磁盘/网络使用——实际上是共享库的优势。因此,我们提出 stable linking(稳定链接),这是一种使用依赖的新机制,它利用共享库保留这些优势,同时消除动态链接的缺点。稳定链接将系统状态划分为管理时间(系统可被修改的时期)和 epoch(系统不可被修改的时期)。稳定链接在每个 epoch 开始时计算每个应用程序的重定位映射,允许开发者在该 epoch 期间检查重定位映射,并在该 epoch 内的后续执行中复用该映射。我们设计并构建了 MatR,这是第一个稳定链接器。我们在三个工作负载中使用 MatR,结果表明它相比动态链接性能平均提升 2.19 倍。此外,我们在三个 vignette(即案例研究)中使用该系统,展示了系统对依赖管理的改进。
英文摘要:
Dynamic linking is the standard mechanism for using external dependencies since it enables code reuse, streamlines software updates, and reduces disk/network use. Dynamic linking waits until runtime to calculate an application's relocation mapping, i.e., the mapping between each externally referenced symbol in the application to the dependency that provides the symbol. Unfortunately, it comes with two downsides. First, dynamic linking limits the performance of current systems since it can take seconds to calculate a relocation mapping for a large program. Second, dynamic linking limits the dependency management of applications since it prevents a developer from accurately observing a relocation mapping except at runtime. This paper makes the key insight that the benefits conventionally attributed to dynamic linking: code reuse, streamlined software updates, and reduced disk/network use are actually benefits of shared libraries. Thus, we present stable linking, a new mechanism for using dependencies that uses shared libraries to retain their benefits but eliminates the downsides of dynamic linking. Stable linking separates a system's state into management times; when the system can be modified, and epochs when it cannot. Stable linking calculates each application's relocation mapping at the beginning of each epoch, allows developers to inspect the relocation mapping during the epoch, and reuses the mapping for subsequent executions in the epoch. We design and build MatR, the first stable linker. We use MatR in three workloads and show that it improves upon dynamic linking performance by a factor of 2.19 on average. Additionally, we use the system in three vignettes, or case-studies, that illustrate the system's improvements to dependency management.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。