Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Anatomy of the gem5 simulator: AtomicSimple and TimingSimple CPUs
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 30 credits / 45 HE creditsStudent thesis
Abstract [en]

gem5 is a modular computer system simulator, widely used in computer architecture research—known for its slow simulation time and steep learning curve. This thesis examines two of itssequential CPU models—the AtomicSimpleCPU (AS CPU) and the TimingSimpleCPU (TSCPU) with the goal of: (1) providing an anatomical view of their execution flow, and (2)presenting how execution time is partitioned at each layer of the simulated hardware, therebyexposing its current bottlenecks. The latter is accomplished by profiling each CPU on aselection of benchmark suites and configurations. We employ our new lightweight profiler withlayer-level granularity. Finally, we show how gem5 interacts with the host kernel by logging itssystem calls.

We show that both CPUs spend a significant amount of execution time inside their instructionfetch stage and that the Ruby memory subsystem—used whenever a memory request ismade—consumes the largest portion of the overall execution time. Ruby requests trigger achain of function calls for the AS CPU, whereas the TS CPU emulates timed memory accesses,introducing realistic delays and response event scheduling. For timed memory requests, Rubyuses the Garnet on-chip network model to route packets between the components of thememory hierarchy, further increasing the overhead for applications prone to frequent L1 cachemisses. Even for applications that often hit in the L1 cache, we observe that Ruby’s overhead isthe performance bottleneck.

While increasing the memory or number of cores for a given configuration may intuitively appearbeneficial, we reveal that it did not yield any significant performance benefits for either CPU.Our framework provides a foundation for optimising gem5—especially the AS and TS CPUs,and serves as a template for analysing other gem5 components or out-of-order models.

Place, publisher, year, edition, pages
2025. , p. 62
Series
IT ; mDV 25 023
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:uu:diva-564016OAI: oai:DiVA.org:uu-564016DiVA, id: diva2:1985215
Educational program
Master Programme in Computer Science
Supervisors
Examiners
Available from: 2025-07-23 Created: 2025-07-22 Last updated: 2025-07-23Bibliographically approved

Open Access in DiVA

fulltext(10207 kB)1018 downloads
File information
File name FULLTEXT01.pdfFile size 10207 kBChecksum SHA-512
f954a8a65611a9994f194495c581c08fc8237e45dd30356c133f3396b04898599988da12f4bd5d0318c6ba68179b84fed73038ba7eafa87952425739504035aa
Type fulltextMimetype application/pdf

By organisation
Department of Information Technology
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 1021 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 531 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf