NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The gem5 Simulator: Version 20.0+

Jason Lowe-Power, Abdul Mutaal Ahmad, Ayaz Akram, Mohammad Alian, Rico Amslinger, Matteo Andreozzi, Adrià Armejach, Nils Asmussen, Srikant Bharadwaj, Gabe Black, Gedare Bloom, Bobby R. Bruce, Daniel Rodrigues Carvalho, Jerónimo Castrillón, Lizhong Chen, Nicolas Derumigny, Stephan Diestelhorst, Wendy Elsasser, Marjan Fariborz, Amin Farmahini Farahani, Pouya Fotouhi, Ryan Gambord, Jayneel Gandhi, Dibakar Gope, Thomas Grass, Bagus Hanindhito, Andreas Hansson, Swapnil Haria, Austin Harris, Timothy Hayes, Adrian Herrera, Matthew Horsnell, Syed Ali Raza Jafri, Radhika Jagtap, Hanhwi Jang, Reiley Jeyapaul, Timothy M. Jones, Matthias Jung, Subash Kannoth, Hamidreza Khaleghzadeh, Yuetsu Kodama, Tushar Krishna, Tommaso Marinelli, Christian Menard, Andrea Mondelli, Tiago Mück, Omar Naji, Krishnendra Nathella, Hoa Nguyen, Nikos Nikoleris, Lena E. Olson, Marc S. Orr, Binh Pham, Pablo Prieto, Trivikram Reddy, Alec Roelke, Mahyar Samani, Andreas Sandberg, Javier Setoain, Boris Shingarov, Matthew D. Sinclair, Tuan Ta, Rahul Thakur, Giacomo Travaglini, Michael Upton, Nilay Vaish, Ilias Vougioukas, Zhengrong Wang, Norbert Wehn, Christian Weis, David A. Wood, Hongil Yoon, Éder F. ZulianarXiv 2020

TL;DR

The gem5 simulator, a cornerstone of computer architecture research, has undergone significant evolution over the past decade, culminating in version 20.0+. This paper details the extensive updates, new features, and a formal governance model that aim to ensure gem5's continued relevance and community support for the next 20 years of architectural innovation.

What Problem Does This Paper Address?

Computer architecture research relies heavily on accurate and flexible simulation tools. The gem5 simulator has emerged as a leading open-source platform for modeling modern hardware at a cycle level, capable of booting full operating systems and running real-world applications across various architectures. However, as hardware complexity and research demands grow, the simulator itself needs continuous development to maintain its utility. This paper addresses the challenge of evolving gem5 to meet these demands, focusing on its extensive feature additions, infrastructure improvements, and the establishment of a sustainable community governance model to guide its future.

Methods

The paper details a vast array of improvements and new features integrated into gem5, rather than a single novel methodology. Key aspects include:

  • Extensive ISA Support: Addition and enhancement of instruction set architectures (ISAs) like RISC-V (user mode and growing full system support), Arm (Armv8-A, SVE, Trusted Firmware), and x86 (improved O3CPU, TSO consistency).
  • Advanced CPU Modeling: Introduction of new branch predictors (e.g., L-TAGE), a KVM-based CPU model for accelerated simulation, and elastic trace execution for faster, more accurate memory system exploration.
  • Sophisticated Memory Systems: Enhancements to DRAM controllers (configurable, QoS extensions, DRAMPower integration), improvements to classic caches (non-coherent caches, write streaming), and advancements in the Ruby cache coherence model (GPU coherence, new protocols).
  • GPU and System Modeling: Integration of a compute-based GPU model (AMD GCN architecture), support for timing-agnostic devices (VirtIO, NoMali), and a framework for distributed system modeling (dist-gem5).
  • Infrastructure and Usability: Overhaul of the development process (Git, Gerrit, Jira), improved documentation (Learning gem5), introduction of a "gem5 Resources" repository for reproducible experiments, and a formal meritocratic governance structure.

Datasets

The paper does not introduce new benchmark datasets. Instead, it emphasizes the use of existing, widely recognized benchmarks and workloads for evaluation and testing, including:

  • SPEC 2006 and SPEC 2017
  • PARSEC
  • NAS Parallel Benchmarks (NPB)
  • GAP Benchmark Suite (GAPBS)
  • Linux kernels (multiple LTS releases)

The "gem5 Resources" repository aims to centralize common artifacts like Linux kernels, disk images, and benchmark suites to ensure reproducibility of gem5 experiments.

Key Insights and Ideas

  • The "New Golden Age" of Computer Architecture Demands Robust Simulation: The paper highlights that the current era of architectural innovation, driven by factors like the slowdown of Moore's Law and the rise of domain-specific architectures, necessitates sophisticated simulation tools like gem5.
  • Community Governance is Crucial for Long-Term Sustainability: The transition to a formal, meritocratic governance model is presented as a key strategy to ensure gem5's continued development, community engagement, and long-term viability.
  • Reproducibility is a Core Goal: The introduction of the "gem5 Resources" repository and the emphasis on standardized configurations are direct efforts to address the critical need for reproducible research in computer architecture.
  • Balancing Fidelity and Performance is an Ongoing Challenge: gem5 continuously evolves to offer a spectrum of models, from high-fidelity, cycle-accurate simulations to faster, more abstract models (like KVM CPU or elastic traces), allowing researchers to choose the right trade-off for their specific needs.
  • Open Source Collaboration Drives Innovation: The paper underscores the immense impact of over 250 unique contributors and thousands of commits, showcasing how a vibrant open-source community can drive rapid and comprehensive development of complex software infrastructure.

Key Results

  • Massive Development Effort: Over 7000 commits from more than 250 unique contributors have been made to gem5 since its initial release in 2011.
  • Broad ISA Support: gem5 now supports a wide range of ISAs, including significant advancements in RISC-V and Arm.
  • Accelerated Simulation: The introduction of the KVM CPU model and elastic traces offers substantial speedups for certain simulation scenarios.
  • Enhanced Modeling Capabilities: New features in CPU, memory, and GPU modeling allow for more accurate and detailed simulations of modern hardware.
  • Improved Usability: Efforts in documentation, testing infrastructure, and a formal governance model aim to make gem5 more accessible and easier to use for researchers, students, and industry professionals.

Limitations and Future Work

  • Accuracy vs. Performance Trade-offs: While gem5 strives for accuracy, the paper acknowledges that achieving perfect accuracy for all workloads across all components remains a challenge due to the proprietary and complex nature of real-world systems.
  • Ongoing Development: The paper explicitly mentions future work, including:
  • Further unifying classic and Ruby cache models.
  • Developing more advanced branch predictors and exploring neural predictors.
  • Expanding the "Learning gem5" materials and offering online courses/summer schools.
  • Improving SystemC integration and exploring new memory technologies (e.g., NVM).
  • Enhancing GPU modeling capabilities and support for other GPU ISAs.
  • Developing a graphical front-end for gem5.
  • Defining stable APIs for long-term integration with other tools.

Summary updated

BibTeX
@misc{lowepower2020gem,
  author = {Jason Lowe-Power and Abdul Mutaal Ahmad and Ayaz Akram and Mohammad Alian and Rico Amslinger and Matteo Andreozzi and Adrià Armejach and Nils Asmussen and Srikant Bharadwaj and Gabe Black and Gedare Bloom and Bobby R. Bruce and Daniel Rodrigues Carvalho and Jerónimo Castrillón and Lizhong Chen and Nicolas Derumigny and Stephan Diestelhorst and Wendy Elsasser and Marjan Fariborz and Amin Farmahini Farahani and Pouya Fotouhi and Ryan Gambord and Jayneel Gandhi and Dibakar Gope and Thomas Grass and Bagus Hanindhito and Andreas Hansson and Swapnil Haria and Austin Harris and Timothy Hayes and Adrian Herrera and Matthew Horsnell and Syed Ali Raza Jafri and Radhika Jagtap and Hanhwi Jang and Reiley Jeyapaul and Timothy M. Jones and Matthias Jung and Subash Kannoth and Hamidreza Khaleghzadeh and Yuetsu Kodama and Tushar Krishna and Tommaso Marinelli and Christian Menard and Andrea Mondelli and Tiago Mück and Omar Naji and Krishnendra Nathella and Hoa Nguyen and Nikos Nikoleris and Lena E. Olson and Marc S. Orr and Binh Pham and Pablo Prieto and Trivikram Reddy and Alec Roelke and Mahyar Samani and Andreas Sandberg and Javier Setoain and Boris Shingarov and Matthew D. Sinclair and Tuan Ta and Rahul Thakur and Giacomo Travaglini and Michael Upton and Nilay Vaish and Ilias Vougioukas and Zhengrong Wang and Norbert Wehn and Christian Weis and David A. Wood and Hongil Yoon and Éder F. Zulian},
  title = {{The gem5 Simulator: Version 20.0+}},
  year = {2020},
  eprint = {2007.03152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.03152},
}
Figure