The easiest, and probably slowest, way to find that sort of thing is to run the debug version under valgrind for a while, and then just kill m5. Make sure you turn on all the leak detection options. You should see some unfreed memory here and there, but you'll see one (hopefully) enormous pile of memory that will be your leak. I've done this before with great success, but valgrind and m5.debug is SLOW. S. L. O. W.

Gabe

nathan binkert wrote:
Generally, yes.  Memory leak?

2008/3/16 Steve Reinhardt <[EMAIL PROTECTED]>:
Funny, I got this error:

system.cpu7: completed 6300000 read accesses @9833512177
system.cpu5: completed 6300000 read accesses @9838116814
terminate called after throwing an instance of 'std::bad_alloc'
   what():  St9bad_alloc
Program aborted at cycle 9948602663

I've never even seen that before... is it an out-of-memory problem?

Steve



On Sun, Mar 16, 2008 at 9:21 AM, Ali Saidi <[EMAIL PROTECTED]> wrote:

This diff to memtest still fails around the 1 hour mark.

system.cpu0: completed 6500000 read accesses @10142894636
system.cpu1: completed 6500000 read accesses @10143875416
system.cpu7: completed 6500000 read accesses @10145185656
system.cpu5: completed 6500000 read accesses @10150092622
panic: system.cpu4: read of 10fe01 (blk 10fe00) @ cycle 10209991750
returns 68, expected c9
 @ cycle 10209991750
[completeRequest:build/ALPHA_SE/cpu/memtest/memtest.cc, line 214]
Program aborted at cycle 10209991750
Aborted (core dumped)



Ali





On Mar 15, 2008, at 9:19 PM, Ali Saidi wrote:

Fixed...

Attached is a memtest diff that makes the problem show  up in 1 hour
rather than 6.
Ali


<memtest1.diff>

On Mar 15, 2008, at 7:23 PM, Steve Reinhardt wrote:

Does anyone feel like taking a look at this?  It turns out that
there's a cache bug that some of the long gzip/bzip runs are running
in to that might be the same as the one that Sujay and Ali have
found,
but I have to roll back to before the SimPoint code to work on it
since those tests won't even start due to this other bug.

Steve

On Sun, Mar 9, 2008 at 12:32 PM, Steve Reinhardt <[EMAIL PROTECTED]>
wrote:
yup, just verified that all the errors have this same traceback.



On Sun, Mar 9, 2008 at 11:29 AM, Steve Reinhardt
<[EMAIL PROTECTED]> wrote:
Looks like it's a side effect of the simpoint stuff.  Here's
build/ALPHA_SE/tests/fast/long/70.twolf/alpha/tru64/simple-atomic/
stderr:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "build/ALPHA_SE/python/m5/main.py", line 350, in main
  execfile(sys.argv[0], scope)
File "tests/run.py", line 37, in <module>
  execfile(os.path.join(tests_root, category, name, 'test.py'))
File "tests/long/70.twolf/test.py", line 6, in <module>
  root.system.cpu.workload = workload.makeLiveProcess()
File "/n/poolfs/z/home/m5test/m5/configs/common/cpu2000.py", line
139, in make
LiveProcess
  return LiveProcess(**process_args)
File "build/ALPHA_SE/python/m5/SimObject.py", line 531, in __init__
  setattr(self, key, val)
File "build/ALPHA_SE/python/m5/SimObject.py", line 597, in
__setattr__
  value = param.convert(value)
File "build/ALPHA_SE/python/m5/params.py", line 152, in convert
  return self.ptype(value)
File "build/ALPHA_SE/python/m5/params.py", line 354, in __init__
  % type(value).__name__
TypeError: Can't convert object of type NoneType to CheckedInt
Error setting param LiveProcess.simpoint to None




On Sun, Mar 9, 2008 at 7:23 AM, nathan binkert <[EMAIL PROTECTED]>
wrote:
wow, what's up with this?  Pool probelm?  or did someone break
fast?
or do we need new values for long runs?



On Sat, Mar 8, 2008 at 11:36 PM, Cron Daemon
<[EMAIL PROTECTED]
wrote:
scons: *** [build/ALPHA_SE/tests/fast/long/70.twolf/alpha/tru64/
simple-atomic/stdout] Error 1
***** build/ALPHA_SE/tests/fast/quick/20.eio-short/alpha/eio/
simple-timing passed.
***** build/ALPHA_SE/tests/fast/quick/00.hello/alpha/tru64/
simple-atomic passed.
***** build/ALPHA_SE/tests/fast/quick/00.hello/alpha/linux/
simple-atomic passed.
scons: *** [build/ALPHA_SE/tests/fast/long/30.eon/alpha/tru64/
o3-timing/stdout] Error 1
***** build/ALPHA_SE/tests/fast/quick/20.eio-short/alpha/eio/
simple-atomic passed.
scons: *** [build/ALPHA_SE/tests/fast/long/00.gzip/alpha/tru64/
simple-timing/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/70.twolf/alpha/tru64/
simple-timing/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/30.eon/alpha/tru64/
simple-timing/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/00.gzip/alpha/tru64/
simple-atomic/stdout] Error 1
***** build/ALPHA_SE/tests/fast/quick/00.hello/alpha/linux/o3-
timing passed.
scons: *** [build/ALPHA_SE/tests/fast/long/60.bzip2/alpha/tru64/
simple-timing/stdout] Error 1
***** build/ALPHA_SE/tests/fast/quick/00.hello/alpha/tru64/
simple-timing passed.
scons: *** [build/ALPHA_SE/tests/fast/long/50.vortex/alpha/
tru64/simple-timing/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/60.bzip2/alpha/tru64/
o3-timing/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/60.bzip2/alpha/tru64/
simple-atomic/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/30.eon/alpha/tru64/
simple-atomic/stdout] Error 1
***** build/ALPHA_SE/tests/fast/quick/01.hello-2T-smt/alpha/
linux/o3-timing passed.
scons: *** [build/ALPHA_SE/tests/fast/long/00.gzip/alpha/tru64/
o3-timing/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/50.vortex/alpha/
tru64/simple-atomic/stdout] Error 1
['g++', '-o', 'build/ALPHA_FS/mem/cache/tags/iic.fo', '-c', '-
pipe', '-fno-strict-aliasing', '-Wall', '-Wscons: *** [build/
ALPHA_SE/tests/fast/long/70.twolf/alpha/tru64/o3-timing/stdout]
Error 1
***** build/ALPHA_SE/tests/fast/quick/00.hello/alpha/tru64/o3-
timing passed.
***** build/ALPHA_SE/tests/fast/quick/00.hello/alpha/linux/
simple-timing passed.
scons: *** [build/ALPHA_SE/tests/fast/long/50.vortex/alpha/
tru64/o3-timing/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/40.perlbmk/alpha/
tru64/simple-atomic/stdout] Error 1
scons: *** [build/ALPHA_SE/tests/fast/long/40.perlbmk/alpha/
tru64/simple-timing/stdout] Error 1
***** build/MIPS_SE/tests/fast/quick/00.hello/mips/linux/simple-
atomic passed.
***** build/MIPS_SE/tests/fast/quick/00.hello/mips/linux/simple-
timing passed.
***** build/ALPHA_FS/tests/fast/quick/10.linux-boot/alpha/linux/
tsunami-simple-atomic passed.
***** build/ALPHA_FS/tests/fast/quick/10.linux-boot/alpha/linux/
tsunami-simple-atomic-dual passed.
***** build/ALPHA_FS/tests/fast/quick/10.linux-boot/alpha/linux/
tsunami-simple-timing passed.
***** build/ALPHA_FS/tests/fast/quick/10.linux-boot/alpha/linux/
tsunami-simple-timing-dual passed.
***** build/SPARC_SE/tests/fast/quick/00.hello/sparc/linux/
simple-atomic passed.
scons: *** [build/SPARC_SE/tests/fast/long/70.twolf/sparc/linux/
simple-atomic/stdout] Error 1
scons: *** [build/SPARC_SE/tests/fast/long/70.twolf/sparc/linux/
simple-timing/stdout] Error 1
scons: *** [build/SPARC_SE/tests/fast/long/00.gzip/sparc/linux/
simple-timing/stdout] Error 1
***** build/SPARC_SE/tests/fast/quick/02.insttest/sparc/linux/
simple-timing passed.
scons: *** [build/SPARC_SE/tests/fast/long/00.gzip/sparc/linux/
simple-atomic/stdout] Error 1
***** build/SPARC_SE/tests/fast/quick/02.insttest/sparc/linux/
o3-timing passed.
***** build/SPARC_SE/tests/fast/quick/02.insttest/sparc/linux/
simple-atomic passed.
scons: *** [build/SPARC_SE/tests/fast/long/50.vortex/sparc/
linux/simple-atomic/stdout] Error 1
***** build/SPARC_SE/tests/fast/quick/00.hello/sparc/linux/
simple-timing passed.
scons: *** [build/SPARC_SE/tests/fast/long/00.gzip/sparc/linux/
o3-timing/stdout] Error 1
scons: *** [build/SPARC_SE/tests/fast/long/50.vortex/sparc/
linux/simple-timing/stdout] Error 1
***** build/ALPHA_SE/tests/fast/quick/50.memtest/alpha/linux/
memtest passed.
scons: *** [build/X86_SE/params/params_wrap.cc] Error 1
***** build/ALPHA_FS/tests/fast/quick/80.netperf-stream/alpha/
linux/twosys-tsunami-simple-atomic passed.
***** build/SPARC_SE/tests/fast/long/10.mcf/sparc/linux/simple-
atomic passed.
***** build/SPARC_SE/tests/fast/long/10.mcf/sparc/linux/simple-
timing passed.
***** build/SPARC_FS/tests/fast/long/80.solaris-boot/sparc/
solaris/t1000-simple-atomic passed.

See /z/m5/regression/regress-2008-03-09-03:00:01 for details.

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev


_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

_______________________________________________
 m5-dev mailing list
 [email protected]
 http://m5sim.org/mailman/listinfo/m5-dev


_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to