Dear all,

I have got stuck somewhere regarding checkpoints. What I need to do is
running an image processing application, which takes an image as the input
and produces an image as the output, in full system mode and with X86.

I used *hack_back_ckpt.rcS* to create a checkpoint after booting Linux
using this command:

build/X86/gem5.opt configs/example/fs.py --cpu-type=atomic
--script=configs/boot/hack_back_ckpt.rcS

And to restore from that created checkpoint:

build/X86/gem5.opt configs/example/fs.py --cpu-clock="1GHz" --hit-latency=4
--caches --restore-with-cpu=DerivO3CPU -r 1 --script=configs/boot/cjpeg.rcS

I checked the simulation after 22 hours and everything looked like the day
before (The simulation was not finished yet). It seems that it has started
from the checkpoint, but it has not seen the script (cjpeg.rcS) at all...
My reason for it is that I mounted the disk image and there was no output
image created yet.

I stopped the simulation and started it again without the --script option,
the result was the same. I stopped that too and started the simulation
without --restore-with-cpu option, but nothing changed.

I think I have missed something in the way I restore from the checkpoint. I
do not know what that is. I should also mention that before creating the
checkpoint, everything was working (i.e., the simulation terminated with an
output image). The only problem was that I could not find the output image
on the disk image after the simulation was finished. So I modified
* FSConfig.py* a little before creating the checkpoint.

I have attached the simulation outputs of both creating the checkpoint and
restoring from it, as well as the terminal output of creating the
checkpoint. The terminal output file for restoring from the checkpoint was
empty.

I would appreciate any help or idea.

Best regards,
Azadeh
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Apr 22 2016 12:48:19
gem5 started Jun 29 2016 13:58:47
gem5 executing on azadeh-HP-Compaq-dc7900-Convertible-Minitower
command line: build/X86/gem5.opt configs/example/fs.py --cpu-type=atomic 
--script=configs/boot/hack_back_ckpt.rcS
Global frequency set at 1000000000000 ticks per second
info: kernel located at: fsStuff/binaries/x86_64-vmlinux-2.6.22.9
      0: rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
Listening for com_1 connection on port 3456
warn: Reading current count from inactive timer.
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
**** REAL SIMULATION ****
info: Entering event queue @ 0.  Starting simulation...
warn: Don't know what interrupt to clear for console.
warn: x86 cpuid: unknown family 0x8086
124693755000: system.pc.com_1.terminal: attach terminal 0
warn: Tried to clear PCI interrupt 14
warn: Unknown mouse command 0xe1.
warn: instruction 'wbinvd' unimplemented
Writing checkpoint
info: Entering event queue @ 5125627670500.  Starting simulation...
Exiting @ tick 5130037218500 because m5_exit instruction encountered

Attachment: checkpoint_system.pc.com_1.terminal
Description: Binary data

gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Apr 22 2016 12:48:19
gem5 started Jun 29 2016 14:07:31
gem5 executing on azadeh-HP-Compaq-dc7900-Convertible-Minitower
command line: build/X86/gem5.opt configs/example/fs.py --cpu-clock=1GHz 
--hit-latency=4 --caches --restore-with-cpu=DerivO3CPU -r 1 
--script=configs/boot/cjpeg.rcS
Global frequency set at 1000000000000 ticks per second
info: kernel located at: fsStuff/binaries/x86_64-vmlinux-2.6.22.9
      0: rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
Listening for com_1 connection on port 3456
warn: Reading current count from inactive timer.
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
Switch at curTick count:10000
info: Entering event queue @ 5125627670500.  Starting simulation...
Switched CPUS @ tick 5125627680500
switching cpus
info: Entering event queue @ 5125627680500.  Starting simulation...
info: Entering event queue @ 5125627824000.  Starting simulation...
info: Entering event queue @ 5125627855750.  Starting simulation...
**** REAL SIMULATION ****
info: Entering event queue @ 5125627865000.  Starting simulation...
5154819852000: system.pc.com_1.terminal: attach terminal 0

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to