Hi all,

I got error "std::bad_alloc" when I run program on gem5 FS model.
the error message are :
----------------------------------------------------------------------------------

shu@shu:~/Desktop/gem5$ build/ALPHA_FS/m5.fast configs/example/ruby_fs.py -d
-n 8 --l1i_size=32kB --l1d_size=32kB --l2_size=16MB --num-l2caches=8
--topology=Crossbar --timing
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Sep 28 2011 14:19:04
gem5 started Sep 28 2011 17:39:19
gem5 executing on shu
command line: build/ALPHA_FS/m5.fast configs/example/ruby_fs.py -d -n 8
--l1i_size=32kB --l1d_size=32kB --l2_size=16MB --num-l2caches=8
--topology=Crossbar --timing
Global frequency set at 1000000000000 ticks per second
info: kernel located at: /home/shu/Desktop/linux-2.6/vmlinux
Listening for system connection on port 3457
0: system.remote_gdb.listener: listening for remote gdb on port 7008
0: system.remote_gdb.listener: listening for remote gdb on port 7009
0: system.remote_gdb.listener: listening for remote gdb on port 7010
0: system.remote_gdb.listener: listening for remote gdb on port 7011
0: system.remote_gdb.listener: listening for remote gdb on port 7012
0: system.remote_gdb.listener: listening for remote gdb on port 7013
0: system.remote_gdb.listener: listening for remote gdb on port 7014
0: system.remote_gdb.listener: listening for remote gdb on port 7015
**** REAL SIMULATION ****
info: Entering event queue @ 0.  Starting simulation...
info: Launching CPU 1 @ 755132000
info: Launching CPU 2 @ 765837000
info: Launching CPU 3 @ 776449000
info: Launching CPU 4 @ 787061000
info: Launching CPU 5 @ 797684500
info: Launching CPU 6 @ 833410500
info: Launching CPU 7 @ 856387500
warn: Prefetch instrutions is Alpha do not do anything
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Program aborted at cycle 443714976500
Aborted

----------------------------------------------------------------------------------

Is it mean my computer doesn't have enough memory?
My computer's memory size is 4GB.


I set the Benchmarks.py to:
---------------------------------
def mem(self):
        if self.memsize:
            return self.memsize
        else:
            return '2048MB'
--------------------------------

Sometimes I get the error when I test a program on gem5.(I can run gem5 FS
model successfully)
Sometimes I get the error when I start gem5.(I can run gem5 FS model)
I just use the command in gem5 tutorial page 135.

Could you please tell me what I miss?
Thanks in advance.

Shu.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to