Search code examples
cachinggem5

How to run Gem5 simulator in fs mode without cache?


I am able to run gem5 in fs mode , but now i want to remove cache from the system. So what changes i need to do in gem5/configs/example/fs.py file to remove cache and run successfully.


Solution

  • Caches are disabled by default, use --caches --l2cache to enable them

    Then the question comes down to how to observe if caches are on or off.

    I've tried the following methods:

    Caches don't make much difference for the default ARM --cpu-type=AtomicSimpleCPU

    You likely want to use --cpu-type=HPI

    HPI is more detailed, which makes the simulation slower.

    TODO understand AtomicSimpleCPU in more detail, and why caches don't matter there.

    TODO check out for X86 DerivO3CPU vs AtomicSimpleCPU. Blocked on: https://github.com/cirosantilli-work/gem5-issues/issues/2