Hi everyone! I am running some test with PARSEC with X86 architecture in detailed mode and I noted that I might have a memory leak because after some time the gem5 process consumes a great part of the memory in the server (more than 66GB). I ran Valgrind to find any potential but the result was "total heap usage: 0 allocs, 0 frees, 0 bytes allocated", which is not convincent because it obviously allocated memory. So, in order to prove this, I deliberately added a leak in the code (called malloc several times in /src/sim/simulate.cc and didn't free it) hoping for Valgrind to detect it but the result was the same.
Do you know why Valgrind apparently does not see through GEM5? Do you know of any other method or tool I can use to find the memory leaks? The command I'm using is valgrind --tool=memcheck --leak-check=yes ./build/X86/gem5.debug -d simout/ff_Blackscholes/ ./configs/example/ruby_fs.py --kernel=x86_64-vmlinux-2.6.28.4-smp --script=runscript/blackscholes.rcS -F 437696510 --cpu-type=detailed --num-cpus=16 --num-dirs=16 --topology=Mesh --num-l2caches=16 --mesh-rows=4 --garnet-network=fixed Thanks for your help!!! -- Alberto Javier Naranjo-Carmona M.S. Student Electrical Engineering Computer Engineering & Systems Group Texas A&M University, College Station, TX _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users