With your suggestions, the syscall emulation works as desired when the cache sizes are specified:
bpayne@bpayne-VirtualBox64:~/gem5$ build/X86/gem5.opt configs/example/se.py --clock=2.8GHz --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=256kB --l3_size=8192kB -c tests/test-progs/hello/bin/x86/linux/hello gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 compiled Oct 16 2012 15:04:38 gem5 started Nov 1 2012 16:48:46 gem5 executing on bpayne-VirtualBox64 command line: build/X86/gem5.opt configs/example/se.py --clock=2.8GHz --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=256kB --l3_size=8192kB -c tests/test-progs/hello/bin/x86/linux/hello Global frequency set at 1000000000000 ticks per second 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000 **** REAL SIMULATION **** info: Entering event queue @ 0. Starting simulation... warn: instruction 'fnstcw_Mw' unimplemented warn: instruction 'fldcw_Mw' unimplemented Hello world! hack: be nice to actually delete the event here Exiting @ tick 3907365 because target called exit() Where can I get more information about the other options available? the -h isn't very descriptive. I didn't see anything helpful on http://gem5.org/Running_gem5 or http://gem5.org/Simulation_Scripts_Explained For instance, what are valid values for l2_assoc? http://gem5.org/wiki/index.php?title=Special%3ASearch&search=l2_assoc bpayne@bpayne-VirtualBox64:~/gem5$ build/X86/gem5.opt configs/example/se.py --clock=2.8GHz --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=256kB --l3_size=8192kB --l2_assoc=0 -c tests/test-progs/hello/bin/x86/linux/hello gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 compiled Oct 16 2012 15:04:38 gem5 started Nov 1 2012 16:51:12 gem5 executing on bpayne-VirtualBox64 command line: build/X86/gem5.opt configs/example/se.py --clock=2.8GHz --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=256kB --l3_size=8192kB --l2_assoc=0 -c tests/test-progs/hello/bin/x86/linux/hello Global frequency set at 1000000000000 ticks per second Floating point exception (core dumped) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andreas Hansson Sent: Thursday, November 01, 2012 3:44 PM To: gem5 users mailing list Subject: Re: [gem5-users] L1, L2, L3 cache sizes not being used? You seem to be running without caches. Try --caches and --l2cache Andreas On 01/11/2012 19:36, "Payne, Benjamin" <[email protected]> wrote: >Hello, > >I am running gem5 in syscall emulation mode and specifying the cache >sizes. This appears to work as desired. > >bpayne@bpayne-VirtualBox64:~/gem5$ build/X86/gem5.opt >configs/example/se.py --clock=2.8GHz --l1d_size=32K --l1i_size=32K >--l2_size=256K --l3_size=8192K -c >tests/test-progs/hello/bin/x86/linux/hello >gem5 Simulator System. http://gem5.org >gem5 is copyrighted software; use the --copyright option for details. >command line: build/X86/gem5.opt configs/example/se.py --clock=2.8GHz >--l1d_size=32K --l1i_size=32K --l2_size=256K --l3_size=8192K -c >tests/test-progs/hello/bin/x86/linux/hello >Global frequency set at 1000000000000 ticks per second >0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000 >**** REAL SIMULATION **** >info: Entering event queue @ 0. Starting simulation... >warn: instruction 'fnstcw_Mw' unimplemented >warn: instruction 'fldcw_Mw' unimplemented Hello world! >hack: be nice to actually delete the event here Exiting @ tick 3907365 >because target called exit() > > >However, the same output is produced when I intentionally give invalid >values for the cache size units: > >bpayne@bpayne-VirtualBox64:~/gem5$ build/X86/gem5.opt >configs/example/se.py --clock=2.8GHz --l1d_size=32asdf >--l1i_size=32qwer --l2_size=256K --l3_size=8192K -c >tests/test-progs/hello/bin/x86/linux/hello >gem5 Simulator System. http://gem5.org >gem5 is copyrighted software; use the --copyright option for details. >gem5 compiled Oct 16 2012 15:04:38 >gem5 started Nov 1 2012 15:17:21 >gem5 executing on bpayne-VirtualBox64 >command line: build/X86/gem5.opt configs/example/se.py --clock=2.8GHz >--l1d_size=32asdf --l1i_size=32qwer --l2_size=256K --l3_size=8192K -c >tests/test-progs/hello/bin/x86/linux/hello >Global frequency set at 1000000000000 ticks per second >0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000 >**** REAL SIMULATION **** >info: Entering event queue @ 0. Starting simulation... >warn: instruction 'fnstcw_Mw' unimplemented >warn: instruction 'fldcw_Mw' unimplemented Hello world! >hack: be nice to actually delete the event here Exiting @ tick 3907365 >because target called exit() bpayne@bpayne-VirtualBox64:~/gem5$ > > >Therefore I suspect the specified cache values are not actually being >used. Is my concern valid? Why is this occuring? > > >Kindly, > > >Ben Payne >http://mst.edu/~bhpxc9/ >Laboratory for Physical Sciences >http://www.lps.umd.edu/ > > >_______________________________________________ >gem5-users mailing list >[email protected] >http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
