I ran a basic hello world program in gem5 and below is the command I ran:
./build/ARM/gem5.opt ./configs/example/se.py --cpu-type=TimingSimpleCPU --cmd=tests/test-progs/hello/bin/arm/linux/hello
I expected that the number of read/write requests would not be crossing few 100s of instructions but when i looked into the stats.txt in the m5out folder I can see that:
system.mem_ctrls.readReqs 6088 # Number of read requests accepted
system.mem_ctrls.writeReqs 936 # Number of write requests accepted
Also here, i statically compiled the binary. Could someone help me understand why there are so many requests going into the main memory.