Discussion:
[gem5-users] Questions about checkpoint
Yunxia Zhu
2018-08-29 13:27:32 UTC
Permalink
Hello everyone,

I failed to create checkpoint in gem5 FS mode. My kernel is linux 4.8.13-64
and my image is ubuntu-16.04.1-server-amd64. And I used three ways which
are showed below to create a checkpoint.

*Create checkpoint:*
***@zhu-Vostro-3560 ~/gem5_FS_64/gem5 $ /build/X86/gem5.opt
configs/example/fs.py --script=/configs/boot/hack_back_ckpt.rcS
2.gem5$ /build/X86/gem5.opt -d m5out/cpt_general configs/example/fs.py
--script=configs/boot/hack_back_ckpt.rcS
3. create checkpoint.rcS :
cat checkpoint.rcS
m5 checkpoint
m5 exit
And /build/X86/gem5.opt -d m5out/cpt_general configs/example/fs.py
--script=[path to file checkpoint.rcS]

However, no matter which methods I use, they show the same result shown
below(even it ran for one night) and I also use another terminal to telnet
localhost 3456:
***@zhu-Vostro-3560 ~/gem5_FS_64/gem5 $ ./build/X86/gem5.opt
configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Aug 8 2018 11:04:48
gem5 started Aug 29 2018 13:10:20
gem5 executing on zhu-Vostro-3560, pid 9457
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)
info: kernel located at:
/home/zhu/gem5_FS_64/gem5/full_system_sample/x86-system/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: listening for remote gdb on port 7000
warn: Reading current count from inactive timer.
**** REAL SIMULATION ****
info: Entering event queue @ 0. Starting simulation...
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: instruction 'fninit' unimplemented
warn: Don't know what interrupt to clear for console.
61670863500: system.pc.com_1.device: attach terminal 0
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: Tried to clear PCI interrupt 14
warn: Write to unknown i8042 (keyboard controller) command port.
warn: instruction 'prefetch_nta' unimplemented
warn: instruction 'fwait' unimplemented
warn: instruction 'prefetch_t1' unimplemented
warn: instruction 'prefetch_t2' unimplemented
warn: instruction 'prefetch_nta' unimplemented



It seems like it ignores the script. I didn't see any key words such as
"writing checkpoint", "checkpoint simulation" or others. The simulation
even can't end. It will stay like that. Could anyone give me some ideas
about how to create checkpoint? Or is there something wrong with my
command? Or does it need much more time? Thank you very much.


with best regards
Yunxia Zhu
Ciro Santilli
2018-08-29 14:35:54 UTC
Permalink
If you don't know this already, first learn how `m5 checkpoint` and `m5
readfile` work on a interactive terminal without using any init script.

Then once you are familiar with that, you will be able to understand
hack_back_chpt.

This setup and documentation sections may help you:

-
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/83b36867cf06ffdca3ce04296a8568d4f37ea13b#gem5-getting-started
-
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/83b36867cf06ffdca3ce04296a8568d4f37ea13b#gem5-run-benchmark
-
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/83b36867cf06ffdca3ce04296a8568d4f37ea13b#gem5-checkpoint
Post by Yunxia Zhu
Hello everyone,
I failed to create checkpoint in gem5 FS mode. My kernel is linux
4.8.13-64 and my image is ubuntu-16.04.1-server-amd64. And I used three
ways which are showed below to create a checkpoint.
*Create checkpoint:*
configs/example/fs.py --script=/configs/boot/hack_back_ckpt.rcS
2.gem5$ /build/X86/gem5.opt -d m5out/cpt_general configs/example/fs.py
--script=configs/boot/hack_back_ckpt.rcS
cat checkpoint.rcS
m5 checkpoint
m5 exit
And /build/X86/gem5.opt -d m5out/cpt_general configs/example/fs.py
--script=[path to file checkpoint.rcS]
However, no matter which methods I use, they show the same result shown
below(even it ran for one night) and I also use another terminal to telnet
configs/example/fs.py --script=./configs/boot/hack_back_ckpt.rcS
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Aug 8 2018 11:04:48
gem5 started Aug 29 2018 13:10:20
gem5 executing on zhu-Vostro-3560, pid 9457
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)
/home/zhu/gem5_FS_64/gem5/full_system_sample/x86-system/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: listening for remote gdb on port 7000
warn: Reading current count from inactive timer.
**** REAL SIMULATION ****
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: instruction 'fninit' unimplemented
warn: Don't know what interrupt to clear for console.
61670863500: system.pc.com_1.device: attach terminal 0
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: x86 cpuid family 0x0000: unimplemented function 6
warn: Tried to clear PCI interrupt 14
warn: Write to unknown i8042 (keyboard controller) command port.
warn: instruction 'prefetch_nta' unimplemented
warn: instruction 'fwait' unimplemented
warn: instruction 'prefetch_t1' unimplemented
warn: instruction 'prefetch_t2' unimplemented
warn: instruction 'prefetch_nta' unimplemented
It seems like it ignores the script. I didn't see any key words such as
"writing checkpoint", "checkpoint simulation" or others. The simulation
even can't end. It will stay like that. Could anyone give me some ideas
about how to create checkpoint? Or is there something wrong with my
command? Or does it need much more time? Thank you very much.
with best regards
Yunxia Zhu
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...