Woo L.L.
2018-08-03 07:47:03 UTC
Dear all,
I am having a problem trying to run the second script file after restoring from checkpoint.
I have used used hack_back_ckpt.rcS to create 1st checkpoint after booting from Linux. Here is the command I have used to run the checkpointing:
./build/X86/gem5.opt ./configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS
And here is the result after checkpointing:
DMTCP:: !!!! SIMULATION IS NOT ATTACHED WITH DMTCP !!!
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Apr 12 2018 21:57:22
gem5 started Aug 3 2018 08:24:00
gem5 executing on elena-VirtualBox, pid 2854
command line: ./build/X86/gem5.opt ./configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS
Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)
Setting Entry Point
info: kernel located at: /home/elena/RTS/gemfi/x86/binaries/vmlinux
Listening for com_1 connection on port 3456
0: rtc: Real-time clock set to Sun Jan 1 00:00:00 2012
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
warn: Reading current count from inactive timer.
**** 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
warn: instruction 'wbinvd' unimplemented
warn: Tried to clear PCI interrupt 14
warn: Unknown mouse command 0xe1.
Writing checkpoint
info: Entering event queue @ 5131049520000. Starting simulation...
Exiting @ tick 5132244233500 because m5_exit instruction encountered
To run the second script file, this was what I used:
./build/X86/gem5.opt --debug-flags=FaultInjection ./configs/example/fs.py --cpu-clock=250MHz --caches -r 1 --script=./configs/boot/dijkstra.py
The result is shown as below:
DMTCP:: !!!! SIMULATION IS NOT ATTACHED WITH DMTCP !!!
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Apr 12 2018 21:57:22
gem5 started Aug 3 2018 08:33:33
gem5 executing on elena-VirtualBox, pid 2878
command line: ./build/X86/gem5.opt --debug-flags=FaultInjection ./configs/example/fs.py --cpu-clock=250MHz --caches -r 1 --script=./configs/boot/dijkstra.py
Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)
Setting Entry Point
info: kernel located at: /home/elena/RTS/gemfi/x86/binaries/vmlinux
Listening for com_1 connection on port 3456
0: rtc: Real-time clock set to Sun Jan 1 00:00:00 2012
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
0: system.fi_system: Initialized FI_System
warn: Reading current count from inactive timer.
**** REAL SIMULATION ****
5131049520000: system.fi_system: Starting FI
info: Entering event queue @ 5131049520000. Starting simulation...
warn: Don't know what interrupt to clear for console.
On the terminal, all it showed was:
Loading new script
This is the content of the 2nd script file:
#!/bin/bash
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo "Running Dijkstra benchmark now"
/sbin/m5 dumpresetstats [100, 100000]
./dijkstra_1_FI input_dijkstra10.dat
echo "Finishing now...."
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
/sbin/m5 exit
Without running checkpointing, the entire program was able to terminate and provide proper result. However, with checkpointing, it seems to be stuck at trying to read a new script.
I am not sure if I have missed any steps in between. I followed through the discussions about this issue I didnt connect my terminal during the 1st checkpointing, I view the result by tracing the terminal file. I didnt make any changes to the hack_back_ckpt.rcS file. I also tried after loading the checkpoint and leaving the script empty, I brought up the terminal to try and input the script file but only Ctrl+C made a difference. Anything other than that showed no difference. So, I am not sure where I have gone wrong. Appreciate all the help and guidance please.
Thanks.
Regards,
Elena
I am having a problem trying to run the second script file after restoring from checkpoint.
I have used used hack_back_ckpt.rcS to create 1st checkpoint after booting from Linux. Here is the command I have used to run the checkpointing:
./build/X86/gem5.opt ./configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS
And here is the result after checkpointing:
DMTCP:: !!!! SIMULATION IS NOT ATTACHED WITH DMTCP !!!
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Apr 12 2018 21:57:22
gem5 started Aug 3 2018 08:24:00
gem5 executing on elena-VirtualBox, pid 2854
command line: ./build/X86/gem5.opt ./configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS
Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)
Setting Entry Point
info: kernel located at: /home/elena/RTS/gemfi/x86/binaries/vmlinux
Listening for com_1 connection on port 3456
0: rtc: Real-time clock set to Sun Jan 1 00:00:00 2012
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
warn: Reading current count from inactive timer.
**** 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
warn: instruction 'wbinvd' unimplemented
warn: Tried to clear PCI interrupt 14
warn: Unknown mouse command 0xe1.
Writing checkpoint
info: Entering event queue @ 5131049520000. Starting simulation...
Exiting @ tick 5132244233500 because m5_exit instruction encountered
To run the second script file, this was what I used:
./build/X86/gem5.opt --debug-flags=FaultInjection ./configs/example/fs.py --cpu-clock=250MHz --caches -r 1 --script=./configs/boot/dijkstra.py
The result is shown as below:
DMTCP:: !!!! SIMULATION IS NOT ATTACHED WITH DMTCP !!!
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Apr 12 2018 21:57:22
gem5 started Aug 3 2018 08:33:33
gem5 executing on elena-VirtualBox, pid 2878
command line: ./build/X86/gem5.opt --debug-flags=FaultInjection ./configs/example/fs.py --cpu-clock=250MHz --caches -r 1 --script=./configs/boot/dijkstra.py
Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)
Setting Entry Point
info: kernel located at: /home/elena/RTS/gemfi/x86/binaries/vmlinux
Listening for com_1 connection on port 3456
0: rtc: Real-time clock set to Sun Jan 1 00:00:00 2012
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
0: system.fi_system: Initialized FI_System
warn: Reading current count from inactive timer.
**** REAL SIMULATION ****
5131049520000: system.fi_system: Starting FI
info: Entering event queue @ 5131049520000. Starting simulation...
warn: Don't know what interrupt to clear for console.
On the terminal, all it showed was:
Loading new script
This is the content of the 2nd script file:
#!/bin/bash
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo "Running Dijkstra benchmark now"
/sbin/m5 dumpresetstats [100, 100000]
./dijkstra_1_FI input_dijkstra10.dat
echo "Finishing now...."
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
/sbin/m5 exit
Without running checkpointing, the entire program was able to terminate and provide proper result. However, with checkpointing, it seems to be stuck at trying to read a new script.
I am not sure if I have missed any steps in between. I followed through the discussions about this issue I didnt connect my terminal during the 1st checkpointing, I view the result by tracing the terminal file. I didnt make any changes to the hack_back_ckpt.rcS file. I also tried after loading the checkpoint and leaving the script empty, I brought up the terminal to try and input the script file but only Ctrl+C made a difference. Anything other than that showed no difference. So, I am not sure where I have gone wrong. Appreciate all the help and guidance please.
Thanks.
Regards,
Elena