Search code examples
gem5

"Tried to read unmapped address" error in Gem5 SE simulation


Why do I encounter this error ? Will it stop appearing if I do a full system simulation ? Or is there any way I can map the whole DRAM for simulation ?

I am trying to simulate PARSEC benchmark applications on Gem5, these are binaries for x86 ISA.

On another note; why does this message keep appearing ?: warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)

I have a total RAM of 12GB, so it makes no sense (8+4)

Edit: The application when ran on its own (on my system) has no issues or errors

Edit2: Tried running FS simulation; the simulations doesnt stop, I let it run for ~5 minutes.

Edit3: The issue with SE seemed to be because of the hooks Parsec has now; I compiled the code without the hooks and it seems to work for simpler ones.

But now I have another problem: But some applications (canneal, facesim for example) keeps on running without exiting the simulation; from their outputs (to see the output I run the simulation without any debug flags), they seem to reach the region of interest but then the simulation keeps running. Is it just the simulation taking an absurdly long time ?

Edit4: The simulations kept running because of the input sizes, which I had set for large (simlarge inputs in Parsec); so yes, they were running for an absurdly long time. I ran them afterwards with small input sizes to the applications and have had reasonable simulation times.


Solution

  • The issue seemed to be caused by the Parsec Hooks; I edited them out from the config/make files and the simulations ran without issues.

    Other issues I met while trying to run the simulation and the "solutions" have been added as edits.