gem5 Simulation Time faster with caches than without #1624
-
Hi everyone, I wanted to compare several aspects between a RISC-V Timing CPU with and without caches using embench as evaluation programs. I derived the gem5 configurations from the examples given in the gem5 repository. What I noticed is that the simulation time for the configuration without caches takes considerably longer. Does anyone know why this happens or is there something wrong my configuration? I attached both scripts to the discussion. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The memory models are more complex than the cache models, so I believe there's more events to schedule and overall more computation to be done when a request goes to the memory controller instead of being handled by the cache. |
Beta Was this translation helpful? Give feedback.
-
The observation you're making about the increased simulation time for a RISC-V Timing CPU without caches is actually expected behavior in gem5. Let me break down why this happens. Timing CPU Behavior:
Cache Impact:
Simulation Model Complexity:
|
Beta Was this translation helpful? Give feedback.
The observation you're making about the increased simulation time for a RISC-V Timing CPU without caches is actually expected behavior in gem5. Let me break down why this happens.
Timing CPU Behavior:
Cache Impact:
With Caches: When caches are present, frequently accessed data can be retrieved from the cache, which is significantly faster than accessing main memory (typically by orders o…