[gem5-users] Getting segfault upon restoring a startup of arm-detailed Full system simulation
Hi All, I am checkpointing the startup for arm_detailed full system simulation using hack_back_ckpt.rcS script. I can see that the checkpoint is created successfully, but the restore fails with a seg fault. : system.remote_gdb.listener: listening for remote gdb on port 7006 0: system.remote_gdb.listener: listening for remote gdb on port 7007 Switch at curTick count:1 info: Entering event queue @ 3748342464000. Starting simulation... Switched CPUS @ tick 3748342474000 switching cpus info: Entering event queue @ 3748342474000. Starting simulation... Segmentation fault (core dumped) The command to take checkpoint is *M5_PATH=$(pwd)/.. ./build/ARM/gem5.fast configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS --cpu-type=arm_detailed --caches -n 4 --l1d_size=32kB --l1i_size=32kB --machine-type=VExpress_EMM --kernel=../linux-linaro-tracking-gem5/vmlinux --dtb-filename=../linux-linaro-tracking-gem5/arch/arm/boot/dts/vexpress-v2p-ca15-tc1-gem5_dvfs_per_core_4cpus.dtb --disk-image=../disks/arm-ubuntu-natty-headless.img --cpu-clock=\['1 GHz','750 MHz','500 MHz'\]* The command to restore is *M5_PATH=$(pwd)/.. ./build/ARM/gem5.fast configs/example/fs.py --checkpoint-restore=1 --restore-with-cpu arm_detailed --caches -n 4 --l1d_size=32kB --l1i_size=32kB --machine-type=VExpress_EMM --kernel=../linux-linaro-tracking-gem5/vmlinux --dtb-filename=../linux-linaro-tracking-gem5/arch/arm/boot/dts/vexpress-v2p-ca15-tc1-gem5_dvfs_per_core_4cpus.dtb --disk-image=../disks/arm-ubuntu-natty-headless.img --cpu-clock=\['1 GHz','750 MHz','500 MHz'\]* Am I giving some wrong option either while checkpointing or restoring? Can you please help me here? Regards Rahul ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Modelling command bus contention in DRAM controller
Hello Andreas, Thanks for your reply. Prathap On Mon, Nov 9, 2015 at 1:27 PM, Andreas Hanssonwrote: > Hi Prathap, > > Command-bus contention is intentionally not modelled. The main reason for > this is to keep the model performant. Moreover, in real devices the command > bus is typically designed to _not_ be a bottleneck. Admittedly this choice > could be reassessed if needed. > > Andreas > > From: gem5-users on behalf of Prathap > Kolakkampadath > Reply-To: gem5 users mailing list > Date: Monday, 9 November 2015 at 18:25 > To: gem5 users mailing list > Subject: [gem5-users] Modelling command bus contention in DRAM controller > > > Hello Users, > > After closely looking at the doDRAMAccess() of dram controller > implementation in GEM5, i suspect that the current implementation may not > be taking in to account the command bus contention that could happen if > DRAM timing constraints take particular values. > > For example in the below scenario, the queue has two closed requests one > to Bank1 and other to Bank2. > > Request1@Bank1 (PRE-ACT-CAS) --> Request2@Bank2 (PRE-ACT-CAS) > > Lets say tRP(8cycles), tRCD(8cycles), tCL(8cycles), and tRRD(8 cycles). In > this case ACT of R2 and CAS of R1 becomes active at the same time. > At this point one command needs to be delayed by one clock cycle. I don't > see how simulator is handling this? If the simulator is handling this, > could someone please point me to the code snippet where this is handled. > > > Thanks, > Prathap > > > -- > > -- 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 > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[gem5-users] Modelling command bus contention in DRAM controller
Hello Users, After closely looking at the doDRAMAccess() of dram controller implementation in GEM5, i suspect that the current implementation may not be taking in to account the command bus contention that could happen if DRAM timing constraints take particular values. For example in the below scenario, the queue has two closed requests one to Bank1 and other to Bank2. Request1@Bank1 (PRE-ACT-CAS) --> Request2@Bank2 (PRE-ACT-CAS) Lets say tRP(8cycles), tRCD(8cycles), tCL(8cycles), and tRRD(8 cycles). In this case ACT of R2 and CAS of R1 becomes active at the same time. At this point one command needs to be delayed by one clock cycle. I don't see how simulator is handling this? If the simulator is handling this, could someone please point me to the code snippet where this is handled. Thanks, Prathap ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Modelling command bus contention in DRAM controller
Hi Prathap, Command-bus contention is intentionally not modelled. The main reason for this is to keep the model performant. Moreover, in real devices the command bus is typically designed to _not_ be a bottleneck. Admittedly this choice could be reassessed if needed. Andreas From: gem5-users> on behalf of Prathap Kolakkampadath > Reply-To: gem5 users mailing list > Date: Monday, 9 November 2015 at 18:25 To: gem5 users mailing list > Subject: [gem5-users] Modelling command bus contention in DRAM controller Hello Users, After closely looking at the doDRAMAccess() of dram controller implementation in GEM5, i suspect that the current implementation may not be taking in to account the command bus contention that could happen if DRAM timing constraints take particular values. For example in the below scenario, the queue has two closed requests one to Bank1 and other to Bank2. Request1@Bank1 (PRE-ACT-CAS) --> Request2@Bank2 (PRE-ACT-CAS) Lets say tRP(8cycles), tRCD(8cycles), tCL(8cycles), and tRRD(8 cycles). In this case ACT of R2 and CAS of R1 becomes active at the same time. At this point one command needs to be delayed by one clock cycle. I don't see how simulator is handling this? If the simulator is handling this, could someone please point me to the code snippet where this is handled. Thanks, Prathap -- 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 gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Getting segfault upon restoring a startup of arm-detailed Full system simulation
Hi All, Some of the links suggested that checkpoint should be created using the default CPU and without any cache configuration as input. I made the suggested changes in the command, but it still, on restoring, I am getting the same error. Following is the command that I am executing to take checkpoint ./build/ARM/gem5.fast configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS -n 4 --machine-type=VExpress_EMM --kernel=../linux-linaro-tracking-gem5/vmlinux --dtb-filename=../linux-linaro-tracking-gem5/arch/arm/boot/dts/vexpress-v2p-ca15-tc1-gem5_dvfs_per_core_4cpus.dtb --disk-image=../disks/arm-ubuntu-natty-headless.img --cpu-clock=[1 GHz,750 MHz,500 MHz] Could you please shed some light? Regards Rahul On Mon, Nov 9, 2015 at 6:51 PM, rahul shrivastavawrote: > Hi All, > > I am checkpointing the startup for arm_detailed full system simulation > using hack_back_ckpt.rcS script. I can see that the checkpoint is created > successfully, but the restore fails with a seg fault. > > : system.remote_gdb.listener: listening for remote gdb on port 7006 > 0: system.remote_gdb.listener: listening for remote gdb on port 7007 > Switch at curTick count:1 > info: Entering event queue @ 3748342464000. Starting simulation... > Switched CPUS @ tick 3748342474000 > switching cpus > info: Entering event queue @ 3748342474000. Starting simulation... > Segmentation fault (core dumped) > > > The command to take checkpoint is > *M5_PATH=$(pwd)/.. ./build/ARM/gem5.fast configs/example/fs.py > --script=./configs/boot/hack_back_ckpt.rcS --cpu-type=arm_detailed --caches > -n 4 --l1d_size=32kB --l1i_size=32kB --machine-type=VExpress_EMM > --kernel=../linux-linaro-tracking-gem5/vmlinux > --dtb-filename=../linux-linaro-tracking-gem5/arch/arm/boot/dts/vexpress-v2p-ca15-tc1-gem5_dvfs_per_core_4cpus.dtb > --disk-image=../disks/arm-ubuntu-natty-headless.img --cpu-clock=\['1 > GHz','750 MHz','500 MHz'\]* > > The command to restore is > *M5_PATH=$(pwd)/.. ./build/ARM/gem5.fast configs/example/fs.py > --checkpoint-restore=1 --restore-with-cpu arm_detailed --caches -n 4 > --l1d_size=32kB --l1i_size=32kB --machine-type=VExpress_EMM > --kernel=../linux-linaro-tracking-gem5/vmlinux > --dtb-filename=../linux-linaro-tracking-gem5/arch/arm/boot/dts/vexpress-v2p-ca15-tc1-gem5_dvfs_per_core_4cpus.dtb > --disk-image=../disks/arm-ubuntu-natty-headless.img --cpu-clock=\['1 > GHz','750 MHz','500 MHz'\]* > > > > Am I giving some wrong option either while checkpointing or restoring? > Can you please help me here? > > > Regards > Rahul > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Contents of gem5-users digest..Re linux-bigswap2.img not found on path
Yes , Set the path to full_system_images/disks. We have youtube video showing gem5 full system installation for ARM . Here is the link : https://www.youtube.com/watch?v=gd_DtxQD5kc You can change it to X86 accordingly. On Tue, Nov 10, 2015 at 6:49 AM, Kassan Undawrote: > also check the name of the file if its different then rename it to > linux-x86.img > > On Mon, Nov 9, 2015 at 8:16 PM, Kassan Unda wrote: > >> You need to set the path to the fullsystem_disk_images where ever they >> are.. >> either set the M5_PATH >> by doing something like >> sudo echo “M5_PATH=/home/kassan/full_system_images/” >> ~./bashrc >> >> or go into the syspaths.py and at the end of the file you can insert the >> paths >> >> On Mon, Nov 9, 2015 at 7:53 PM, AMEYA KATHAPURKAR >> wrote: >> >>> Hello, >>> >>> Message: 5 >>> Date: Mon, 9 Nov 2015 16:52:32 +0530 >>> From: Parvathy N >>> To: gem5 users mailing list >>> Subject: Re: [gem5-users] linux-bigswap2.img not on path >>> Message-ID: >>> >> c...@mail.gmail.com> >>> Content-Type: text/plain; charset="utf-8" >>> >>> Hi >>> I guess Error "IOError: Can't find file 'linux-bigswap2.img' on >>> path." is because in line no: 506 in gem5/configs/common/FSConfig.py we >>> have to change linux-bigswap2.img to linux-x86.img ( which is in >>> fullsystem/disks) >>> >>> On Mon, Nov 9, 2015 at 4:32 PM, AMEYA KATHAPURKAR >>> wrote: >>> >>> > Hello, >>> > >>> > I am using GEM5 ISA X86 architecture and running full system >>> simulation I >>> > am getting following traceback, >>> > >>> > Traceback (most recent call last): >>> > File "", line 1, in >>> > File "/opt/gem5/src/python/m5/main.py", line 389, in main >>> > exec filecode in scope >>> > File "./configs/example/fs.py", line 327, in >>> > test_sys = build_test_system(np) >>> > File "./configs/example/fs.py", line 96, in build_test_system >>> > options.ruby, cmdline=cmdline) >>> > File "/opt/gem5/configs/common/FSConfig.py", line 580, in >>> > makeLinuxX86System >>> > makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) >>> > File "/opt/gem5/configs/common/FSConfig.py", line 506, in >>> makeX86System >>> > disk2.childImage(disk('linux-bigswap2.img')) >>> > File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk >>> > return searchpath(disk.path, filename) >>> > File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath >>> > raise IOError, "Can't find file '%s' on path." % filename >>> > IOError: Can't find file 'linux-bigswap2.img' on path. >>> > >>> > >>> > Please help me resolve this, >>> > >>> > Sincere Regards, >>> >>> >>> I tried solution said by Parvathy N but now I am getting following error, >>> >>> command line: ./build/X86/gem5.opt ./configs/example/fs.py >>> --cpu-type=timing --disk-image=/opt/gem5/disks/linux-x86.img >>> >>> Traceback (most recent call last): >>> File "", line 1, in >>> File "/opt/gem5/src/python/m5/main.py", line 389, in main >>> exec filecode in scope >>> File "./configs/example/fs.py", line 327, in >>> test_sys = build_test_system(np) >>> File "./configs/example/fs.py", line 96, in build_test_system >>> options.ruby, cmdline=cmdline) >>> File "/opt/gem5/configs/common/FSConfig.py", line 580, in >>> makeLinuxX86System >>> makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) >>> File "/opt/gem5/configs/common/FSConfig.py", line 506, in makeX86System >>> disk2.childImage(disk('linux-x86.img')) >>> File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk >>> return searchpath(disk.path, filename) >>> File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath >>> raise IOError, "Can't find file '%s' on path." % filename >>> IOError: Can't find file 'linux-x86.img' on path. >>> accomplisher@SuccessOnBoard:/opt/gem5$ >>> >>> Please let me know how many images does x86 require beacuse in >>> FSConfig.py they say there two linux images one is linux-x86.img and other >>> is linux-bigswap2.img and can you please guideme with the full system >>> simulation for x86 full system simulation on GEM5 too. >>> >>> My Sincere Regards, >>> Ameya >>> >>> >>> >>> ___ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> > > ___ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] linux-bigswap2.img not on path
Hello, I am using GEM5 ISA X86 architecture and running full system simulation I am getting following traceback, Traceback (most recent call last): File "", line 1, in File "/opt/gem5/src/python/m5/main.py", line 389, in main exec filecode in scope File "./configs/example/fs.py", line 327, in test_sys = build_test_system(np) File "./configs/example/fs.py", line 96, in build_test_system options.ruby, cmdline=cmdline) File "/opt/gem5/configs/common/FSConfig.py", line 580, in makeLinuxX86System makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) File "/opt/gem5/configs/common/FSConfig.py", line 506, in makeX86System disk2.childImage(disk('linux-bigswap2.img')) File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk return searchpath(disk.path, filename) File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath raise IOError, "Can't find file '%s' on path." % filename IOError: Can't find file 'linux-bigswap2.img' on path. Please help me resolve this, Sincere Regards, ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Modelling command bus contention in DRAM controller
Hello Andreas, One problem could be when there is a Miss request followed by a Hit request. Taking the below example, initially queue has only one request R1(Miss), as soon as the this request is selected there is another request in the queue R2(Hit). Here CAS of R2 is ready and can be issued right away in the next clock cycle. However, i believe in the simulator, while it computes the ready time of R1, it also recomputes the next CAS that can be issued to other Banks. Thus the CAS of R2 can now be issued only after the CAS of R1. If i am right, this could be a problem? Request1@Bank1 (PRE-ACT-CAS) --> Request2@Bank2 (CAS) Thanks, Prathap On Mon, Nov 9, 2015 at 1:27 PM, Andreas Hanssonwrote: > Hi Prathap, > > Command-bus contention is intentionally not modelled. The main reason for > this is to keep the model performant. Moreover, in real devices the command > bus is typically designed to _not_ be a bottleneck. Admittedly this choice > could be reassessed if needed. > > Andreas > > From: gem5-users on behalf of Prathap > Kolakkampadath > Reply-To: gem5 users mailing list > Date: Monday, 9 November 2015 at 18:25 > To: gem5 users mailing list > Subject: [gem5-users] Modelling command bus contention in DRAM controller > > > Hello Users, > > After closely looking at the doDRAMAccess() of dram controller > implementation in GEM5, i suspect that the current implementation may not > be taking in to account the command bus contention that could happen if > DRAM timing constraints take particular values. > > For example in the below scenario, the queue has two closed requests one > to Bank1 and other to Bank2. > > Request1@Bank1 (PRE-ACT-CAS) --> Request2@Bank2 (PRE-ACT-CAS) > > Lets say tRP(8cycles), tRCD(8cycles), tCL(8cycles), and tRRD(8 cycles). In > this case ACT of R2 and CAS of R1 becomes active at the same time. > At this point one command needs to be delayed by one clock cycle. I don't > see how simulator is handling this? If the simulator is handling this, > could someone please point me to the code snippet where this is handled. > > > Thanks, > Prathap > > > -- > > -- 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 > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Contents of gem5-users digest..Re linux-bigswap2.img not found on path
Hello, Message: 5 Date: Mon, 9 Nov 2015 16:52:32 +0530 From: Parvathy NTo: gem5 users mailing list Subject: Re: [gem5-users] linux-bigswap2.img not on path Message-ID: Content-Type: text/plain; charset="utf-8" Hi I guess Error "IOError: Can't find file 'linux-bigswap2.img' on path." is because in line no: 506 in gem5/configs/common/FSConfig.py we have to change linux-bigswap2.img to linux-x86.img ( which is in fullsystem/disks) On Mon, Nov 9, 2015 at 4:32 PM, AMEYA KATHAPURKAR wrote: > Hello, > > I am using GEM5 ISA X86 architecture and running full system simulation I > am getting following traceback, > > Traceback (most recent call last): > File "", line 1, in > File "/opt/gem5/src/python/m5/main.py", line 389, in main > exec filecode in scope > File "./configs/example/fs.py", line 327, in > test_sys = build_test_system(np) > File "./configs/example/fs.py", line 96, in build_test_system > options.ruby, cmdline=cmdline) > File "/opt/gem5/configs/common/FSConfig.py", line 580, in > makeLinuxX86System > makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) > File "/opt/gem5/configs/common/FSConfig.py", line 506, in makeX86System > disk2.childImage(disk('linux-bigswap2.img')) > File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk > return searchpath(disk.path, filename) > File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath > raise IOError, "Can't find file '%s' on path." % filename > IOError: Can't find file 'linux-bigswap2.img' on path. > > > Please help me resolve this, > > Sincere Regards, I tried solution said by Parvathy N but now I am getting following error, command line: ./build/X86/gem5.opt ./configs/example/fs.py --cpu-type=timing --disk-image=/opt/gem5/disks/linux-x86.img Traceback (most recent call last): File "", line 1, in File "/opt/gem5/src/python/m5/main.py", line 389, in main exec filecode in scope File "./configs/example/fs.py", line 327, in test_sys = build_test_system(np) File "./configs/example/fs.py", line 96, in build_test_system options.ruby, cmdline=cmdline) File "/opt/gem5/configs/common/FSConfig.py", line 580, in makeLinuxX86System makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) File "/opt/gem5/configs/common/FSConfig.py", line 506, in makeX86System disk2.childImage(disk('linux-x86.img')) File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk return searchpath(disk.path, filename) File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath raise IOError, "Can't find file '%s' on path." % filename IOError: Can't find file 'linux-x86.img' on path. accomplisher@SuccessOnBoard:/opt/gem5$ Please let me know how many images does x86 require beacuse in FSConfig.py they say there two linux images one is linux-x86.img and other is linux-bigswap2.img and can you please guideme with the full system simulation for x86 full system simulation on GEM5 too. My Sincere Regards, Ameya ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Contents of gem5-users digest..Re linux-bigswap2.img not found on path
You need to set the path to the fullsystem_disk_images where ever they are.. either set the M5_PATH by doing something like sudo echo “M5_PATH=/home/kassan/full_system_images/” >> ~./bashrc or go into the syspaths.py and at the end of the file you can insert the paths On Mon, Nov 9, 2015 at 7:53 PM, AMEYA KATHAPURKARwrote: > Hello, > > Message: 5 > Date: Mon, 9 Nov 2015 16:52:32 +0530 > From: Parvathy N > To: gem5 users mailing list > Subject: Re: [gem5-users] linux-bigswap2.img not on path > Message-ID: > c...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi > I guess Error "IOError: Can't find file 'linux-bigswap2.img' on > path." is because in line no: 506 in gem5/configs/common/FSConfig.py we > have to change linux-bigswap2.img to linux-x86.img ( which is in > fullsystem/disks) > > On Mon, Nov 9, 2015 at 4:32 PM, AMEYA KATHAPURKAR > wrote: > > > Hello, > > > > I am using GEM5 ISA X86 architecture and running full system simulation I > > am getting following traceback, > > > > Traceback (most recent call last): > > File "", line 1, in > > File "/opt/gem5/src/python/m5/main.py", line 389, in main > > exec filecode in scope > > File "./configs/example/fs.py", line 327, in > > test_sys = build_test_system(np) > > File "./configs/example/fs.py", line 96, in build_test_system > > options.ruby, cmdline=cmdline) > > File "/opt/gem5/configs/common/FSConfig.py", line 580, in > > makeLinuxX86System > > makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) > > File "/opt/gem5/configs/common/FSConfig.py", line 506, in > makeX86System > > disk2.childImage(disk('linux-bigswap2.img')) > > File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk > > return searchpath(disk.path, filename) > > File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath > > raise IOError, "Can't find file '%s' on path." % filename > > IOError: Can't find file 'linux-bigswap2.img' on path. > > > > > > Please help me resolve this, > > > > Sincere Regards, > > > I tried solution said by Parvathy N but now I am getting following error, > > command line: ./build/X86/gem5.opt ./configs/example/fs.py > --cpu-type=timing --disk-image=/opt/gem5/disks/linux-x86.img > > Traceback (most recent call last): > File "", line 1, in > File "/opt/gem5/src/python/m5/main.py", line 389, in main > exec filecode in scope > File "./configs/example/fs.py", line 327, in > test_sys = build_test_system(np) > File "./configs/example/fs.py", line 96, in build_test_system > options.ruby, cmdline=cmdline) > File "/opt/gem5/configs/common/FSConfig.py", line 580, in > makeLinuxX86System > makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) > File "/opt/gem5/configs/common/FSConfig.py", line 506, in makeX86System > disk2.childImage(disk('linux-x86.img')) > File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk > return searchpath(disk.path, filename) > File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath > raise IOError, "Can't find file '%s' on path." % filename > IOError: Can't find file 'linux-x86.img' on path. > accomplisher@SuccessOnBoard:/opt/gem5$ > > Please let me know how many images does x86 require beacuse in FSConfig.py > they say there two linux images one is linux-x86.img and other is > linux-bigswap2.img and can you please guideme with the full system > simulation for x86 full system simulation on GEM5 too. > > My Sincere Regards, > Ameya > > > > ___ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Contents of gem5-users digest..Re linux-bigswap2.img not found on path
also check the name of the file if its different then rename it to linux-x86.img On Mon, Nov 9, 2015 at 8:16 PM, Kassan Undawrote: > You need to set the path to the fullsystem_disk_images where ever they > are.. > either set the M5_PATH > by doing something like > sudo echo “M5_PATH=/home/kassan/full_system_images/” >> ~./bashrc > > or go into the syspaths.py and at the end of the file you can insert the > paths > > On Mon, Nov 9, 2015 at 7:53 PM, AMEYA KATHAPURKAR > wrote: > >> Hello, >> >> Message: 5 >> Date: Mon, 9 Nov 2015 16:52:32 +0530 >> From: Parvathy N >> To: gem5 users mailing list >> Subject: Re: [gem5-users] linux-bigswap2.img not on path >> Message-ID: >> > c...@mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Hi >> I guess Error "IOError: Can't find file 'linux-bigswap2.img' on >> path." is because in line no: 506 in gem5/configs/common/FSConfig.py we >> have to change linux-bigswap2.img to linux-x86.img ( which is in >> fullsystem/disks) >> >> On Mon, Nov 9, 2015 at 4:32 PM, AMEYA KATHAPURKAR >> wrote: >> >> > Hello, >> > >> > I am using GEM5 ISA X86 architecture and running full system simulation >> I >> > am getting following traceback, >> > >> > Traceback (most recent call last): >> > File "", line 1, in >> > File "/opt/gem5/src/python/m5/main.py", line 389, in main >> > exec filecode in scope >> > File "./configs/example/fs.py", line 327, in >> > test_sys = build_test_system(np) >> > File "./configs/example/fs.py", line 96, in build_test_system >> > options.ruby, cmdline=cmdline) >> > File "/opt/gem5/configs/common/FSConfig.py", line 580, in >> > makeLinuxX86System >> > makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) >> > File "/opt/gem5/configs/common/FSConfig.py", line 506, in >> makeX86System >> > disk2.childImage(disk('linux-bigswap2.img')) >> > File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk >> > return searchpath(disk.path, filename) >> > File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath >> > raise IOError, "Can't find file '%s' on path." % filename >> > IOError: Can't find file 'linux-bigswap2.img' on path. >> > >> > >> > Please help me resolve this, >> > >> > Sincere Regards, >> >> >> I tried solution said by Parvathy N but now I am getting following error, >> >> command line: ./build/X86/gem5.opt ./configs/example/fs.py >> --cpu-type=timing --disk-image=/opt/gem5/disks/linux-x86.img >> >> Traceback (most recent call last): >> File "", line 1, in >> File "/opt/gem5/src/python/m5/main.py", line 389, in main >> exec filecode in scope >> File "./configs/example/fs.py", line 327, in >> test_sys = build_test_system(np) >> File "./configs/example/fs.py", line 96, in build_test_system >> options.ruby, cmdline=cmdline) >> File "/opt/gem5/configs/common/FSConfig.py", line 580, in >> makeLinuxX86System >> makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) >> File "/opt/gem5/configs/common/FSConfig.py", line 506, in makeX86System >> disk2.childImage(disk('linux-x86.img')) >> File "/opt/gem5/configs/common/SysPaths.py", line 45, in disk >> return searchpath(disk.path, filename) >> File "/opt/gem5/configs/common/SysPaths.py", line 41, in searchpath >> raise IOError, "Can't find file '%s' on path." % filename >> IOError: Can't find file 'linux-x86.img' on path. >> accomplisher@SuccessOnBoard:/opt/gem5$ >> >> Please let me know how many images does x86 require beacuse in >> FSConfig.py they say there two linux images one is linux-x86.img and other >> is linux-bigswap2.img and can you please guideme with the full system >> simulation for x86 full system simulation on GEM5 too. >> >> My Sincere Regards, >> Ameya >> >> >> >> ___ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users