arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.13479cs.AR
收藏

迈向可重复和标准化的计算机体系结构模拟的gem5

Toward Reproducible and Standardized Computer Architecture Simulation with gem5

University of California, Davis(加州大学戴维斯分校)

Kunal Pai, Harshil Patel, Erin Le, Noah Krim, Mahyar Samani, Bobby R. Bruce, Jason Lowe-Power

AI总结:

本文通过改进gem5和gem5 Resources,标准化磁盘镜像创建,提供验证过的基础镜像和预注释的基准套件,简化了计算机体系结构模拟的设置流程,提高了可重复性和标准化程度。

摘要:

基于模拟的计算机体系结构研究的可重复性需要协调诸如磁盘镜像、内核和基准测试等工具,但现有工作流程不一致。我们改进了开源模拟器gem5及其gem5 Resources,一个包含超过2000个预打包工具的集中存储库,以解决这些问题。虽然gem5 Resources使工具共享变得容易,但研究人员仍然面临挑战。创建自定义磁盘镜像复杂且耗时,不同指令集架构(ISAs)之间缺乏标准化流程,使镜像扩展和共享困难。gem5通过一组预定义的退出事件提供有限的主机-客机通信功能,限制了研究人员动态控制和监控模拟的能力。最后,运行多个工作负载的模拟需要研究人员编写自定义外部脚本协调多个gem5模拟,这导致易出错且难以重复的工作流程。为克服这些问题,我们引入了gem5和gem5 Resources中的几个功能。我们使用Packer在x86、ARM和RISC-V上标准化磁盘镜像创建,并提供经过验证的基础镜像和预注释的基准套件(NPB、GAPBS)。我们提供了12个新磁盘镜像、6个新内核和超过200个工作负载,涵盖三种ISAs。我们重构了退出事件系统为基于类的模型,并引入超调用以增强主机-客机通信,允许研究人员定义自定义行为。我们还提供了一个远程监控模拟的工具和gem5-bridge驱动程序用于用户空间m5操作。此外,我们实现了Suites和MultiSim,使从gem5配置脚本中启用并行全系统模拟,消除了外部脚本的需求。这些功能减少了设置复杂性,提供了可扩展、经过验证的资源,提高了可重复性和标准化程度。

英文摘要:

Reproducibility in simulation-based computer architecture research requires coordinating artifacts like disk images, kernels, and benchmarks, but existing workflows are inconsistent. We improve gem5, an open-source simulator with over 1600 forks, and gem5 Resources, a centralized repository of over 2000 pre-packaged artifacts, to address these issues. While gem5 Resources enables artifact sharing, researchers still face challenges. Creating custom disk images is complex and time-consuming, with no standardized process across ISAs, making it difficult to extend and share images. gem5 provides limited guest-host communication features through a set of predefined exit events that restrict researchers' ability to dynamically control and monitor simulations. Lastly, running simulations with multiple workloads requires researchers to write custom external scripts to coordinate multiple gem5 simulations which creates error-prone and hard-to-reproduce workflows. To overcome this, we introduce several features in gem5 and gem5 Resources. We standardize disk-image creation across x86, ARM, and RISC-V using Packer, and provide validated base images with pre-annotated benchmark suites (NPB, GAPBS). We provide 12 new disk images, 6 new kernels, and over 200 workloads across three ISAs. We refactor the exit event system to a class-based model and introduce hypercalls for enhanced guest-host communication that allows researchers to define custom behavior for their exit events. We also provide a utility to remotely monitor simulations and the gem5-bridge driver for user-space m5 operations. Additionally, we implemented Suites and MultiSim to enable parallel full-system simulations from gem5 configuration scripts, eliminating the need for external scripting. These features reduce setup complexity and provide extensible, validated resources that improve reproducibility and standardization.

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

↑