I mounted the rodinia benchmark on the x86root.img. But when I execute following:
(none) home # ./benchmarks/benchmarks/rodinia/backprop/gem5_fusion_backprop -o "16"
16"enchmarks/benchmarks/rodinia/backprop/gem5_fusion_backprop -o "
FATAL: kernel too old
gem5_fusion_bac[810]: segfault at 00002b8dc298dde0 rip 000000000041be87 rsp 00007fffffa60910 error 4
Segmentation fault
So i thought of compiling the same
(none) backprop # make gem5_fusion
make gem5_fusion
make: Warning: File `Makefile' has modification time 9e+07 s in the future
make: *** No rule to make target `gem5_fusion'. Stop.
On Tuesday, November 4, 2014 8:46:11 AM UTC-7, Joel Hestness wrote:Hi Davesh,To run benchmarks in full-system mode, they will need to be on a disk image accessible from the simulated system (i.e. the disk must be mounted by Linux or Android). You could put the benchmarks on the disk image that you're booting from if there is space. To run the benchmarks, you'll either need to use the gem5 terminal, or pass a bash-like (.rcS) script parameter to the simulation that will be executed. Check out our PARSEC on M5 tech report for details and tools for using these run scripts to run benchmarks on the disk.JoelOn Thu, Oct 30, 2014 at 10:43 PM, DAVESH SHINGARI <shingar...@gmail.com> wrote:Hi JoelI was able to run benchmark Rodinia and also Full System emulation.The webpage says "Syscall emulation mode is limited to simulating benchmarks that call a restricted subset of system calls implemented in gem5. However, gem5-gpu also support full-system simulation, which allows for booting an operating system and running multiprocess and multithreaded workloads."How to run those workloads and are there any provided in the repository.--Joel Hestness
PhD Candidate, Computer Architecture
Dept. of Computer Science, University of Wisconsin - Madison
http://pages.cs.wisc.edu/~hestness/
/gem5-gpu/gem5# mkdir full_system_images
/gem5-gpu/gem5/full_system_images# wget http://www.m5sim.org/dist/current/x86/x86-system.tar.bz2
/gem5-gpu/gem5/full_system_images# ls
x86-system.tar.bz2
ro/gem5-gpu/gem5/full_system_images# tar jxf x86-system.tar.bz2
/gem5-gpu/gem5/full_system_images# echo "export M5_PATH=/home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/" >> ~/.bashrc
/gem5-gpu/gem5/full_system_images# wget www.m5sim.org/dist/current/m5_system_2.0b3.tar.bz2
root@espresso:/home/dshingar/Simulators/gem5-gpu/gem5/full_system_images# ls
binaries disks m5_system_2.0b3.tar.bz2 x86-system.tar.bz2
/gem5-gpu/gem5/full_system_images# tar jxf m5_system_2.0b3.tar.bz2
/gem5-gpu/gem5/full_system_images# cd m5_system_2.0b3/
/gem5-gpu/gem5/full_system_images/m5_system_2.0b3# cd disks/
/gem5-gpu/gem5/full_system_images/m5_system_2.0b3/disks# ls
linux-bigswap2.img linux-latest.img
/gem5-gpu/gem5/full_system_images/m5_system_2.0b3/disks# cd ../../
/gem5-gpu/gem5/full_system_images# cp m5_system_2.0b3/disks/linux-bigswap2.img disks/
/gem5-gpu/gem5/full_system_images# cd disks/
/gem5-gpu/gem5/full_system_images/disks# mv linux-x86.img x86root.img
Now as per your suggestion I need to download the kernel from http://www.cs.utexas.edu/~parsec_m5/. But after downloading and placing it in binaries, I still get error for previous version of kernel:
/gem5-gpu/gem5# build/VI_hammer/gem5.opt ../gem5-gpu/configs/fs_fusion.py
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Oct 30 2014 20:41:50
gem5 started Nov 10 2014 10:19:49
gem5 executing on espresso
command line: build/VI_hammer/gem5.opt ../gem5-gpu/configs/fs_fusion.py
Warning: Only block size currently supported is 128B. Defaulting to 128.
Using template and command line options for gpgpusim.config
Global frequency set at 1000000000000 ticks per second
warn: system.ruby.network adopting orphan SimObject param 'int_links'
warn: system.ruby.network adopting orphan SimObject param 'ext_links'
info: kernel located at: /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
fatal: Could not load kernel file /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
@ tick 0
[System:build/VI_hammer/sim/system.cc, line 129]
Memory Usage: 2252364 KBytes
Program aborted at tick 0
Aborted (core dumped)
One more thing.
From where should complete set of binaries be downloaded as in what should be present in binaries and disk directory of full_system_images.
wget
http://www.m5sim.org/dist/current/m5_system_2.0b3.tar.bz2
Unzipping (tar jxvf)
creates
"disks" and "binaries"
folders.
I hope this helps,
Stamatis
-- Stamatis Kavvadias, PhD Research Associate TEI Crete, Greece
STEP 1:
tar jxf x86-system.tar.bz2
Creates 2 folder with binaries and disks.
Binaries
|>x86_64-vmlinux-2.6.22.9
|> x86_64-vmlinux-2.6.22.9.smp
Disk
|>linux-x86.img
When I run then error comes:
----------------------ERROR------------------------
info: kernel located at: /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
panic: Error opening /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/disks/x86root.img
STEP 2:
tar jxf m5_system_2.0b3.tar.bz2
Creates folder with 2 sub-folders name binaries and disks
Binaries
|>console
|>ts_osfpal
|>vmlinux
Disk
|>linux-bigswap2.img
|>linux-latest.img
Now I remove the previous binaries and disk folder, and when I copy only these to the full_system_images folder and run then error comes:
----------------------ERROR------------------------
info: kernel located at: /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
fatal: Could not load kernel file /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
STEP 3:
Now when both are present that is binaries and disk folders extracted from x86-system.tar.bz2 and m5_system_2.0b3.tar.bz2, then on running error comes:
----------------------ERROR------------------------
info: kernel located at: /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
0: rtc: Real-time clock set to Sun Jan 1 00:00:00 2012
panic: Error opening /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/disks/x86root.img
STEP 4:
So, now I renamed the linux-x86.img to x86root.img in the disk folder.
Now the run is successful.
STEP 5:
Now as per suggestion of Joel, I tried changing the kernel to 2.6.28.4
wget http://www.cs.utexas.edu/~parsec_m5/x86_64-vmlinux-2.6.28.4-smp
I moved it to binaries folder and now on running with explicit mentioning of parameter --kernel=./full_system_images/binaries/x86_64-vmlinux-2.6.28.4-smp
----------------------ERROR------------------------
info: kernel located at: /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/./full_system_images/binaries/x86_64-vmlinux-2.6.28.4-smp
fatal: Could not load kernel file /home/dshingar/Simulators/gem5-gpu/gem5/full_system_images/binaries/./full_system_images/binaries/x86_64-vmlinux-2.6.28.4-smp
STEP 6:
Now I downloaded the Parsec Image as wget http://www.cs.utexas.edu/~parsec_m5/x86root-parsec.img.bz2
After extracting, I copied the same to disk folder and renamed it to x86root.img and now on running it is success, but the kernel used it is 2.6.22.9. I want to know how to use the 2.6.28.4 kernel. Disk image is fine but kernel binary is creating problem.Disk:
...