Review Board 2.0.15


tests: scripts for taking checkpoint and a simple test for pd-gem5

Review Request #2915 - Created June 23, 2015 and discarded - Latest diff uploaded

Information
Mohammad Alian
gem5
default
2914
Reviewers
Default

changesets:10880:bb718472abc3
tests: scripts for taking checkpoint and a simple test for pd-gem5

Please follow these steps to start a simple experiment with pd-gem5:

1- Apply pd-gem5 patch http://reviews.gem5.org/r/2914/
(first apply dependent patch chain) to a newly downloaded gem5, then
apply this patch

2- Compile gem5

3- Download http://www.gem5.org/dist/current/arm/aarch-system-2014-10.tar.xz
and extract it under your gem5 directory

4- Modify these two lines in util/pd_gem5/pd-gem5.conf:

pd-gem5_dir= <set it to your gem5 directory>
other_command_line_options= --disk-image=<path to "aarch32-ubuntu-natty-headless.img">

5- Lanuch simulation using the script under util/pd_gem5/pd-gem5.py:
python pd-gem5.py pd-gem5.conf

6- Wait till pd-gem5 boot linux on all nodes and take checkpoint (~30min).
You will see this message at the end of simulation :
"gem5 process simulating *** is finished/killed."

7- Modify these two lines in util/pd_gem5/pd-gem5.conf to restore from the
newly taken checkpoint and run a simple ping test:

script_dir=TEST
other_command_line_options= --disk-image=<path to "aarch32-ubuntu-natty-headless.img"> --checkpoint-restore=1

8- run pd-gem5 again to restore from the checkpoint and run ping test:
python pd-gem5.py pd-gem5.conf

9- check $pd-gem5_dir/rundir/TEST/tux0/m5out/system.terminal