Hello Serhat Gesoglu,

I didn't get any error and I didn't get "checkpoint simulation" either. My
output is as same as the output when I simulate gem5 OS without script. And
it is attached below.

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 28 2018 13:21:05
gem5 executing on zhu-Vostro-3560, pid 4114
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.
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


I don't know why it happens. Is it possible that it needs a lot of time to
create checkpoint? It has already run for one hour. Could you give me some
advice? Thank you

with best regards
Yunxia Zhu


On Tue, 28 Aug 2018 at 11:53, Serhat Gesoglu <
serhat.geso...@manchester.ac.uk> wrote:

> Hello,
> Do you get an error after running the first command? ($ build/X86/gem5.opt
> configs/example/fs.py  --script=configs/boot/hack_back_ckpt.rcS). The
> output should say something like "Checkpointing simulation...". This
> command should create a folder starting with "cpt" in your m5out folder.
> And then you should be able to use it with "-r 1 --script=[your script]".
>
> If you are using "hack_back_ckpt.rcS" you don't need to use "m5
> checkpoint".
> Otherwise you can use it in a script file (to be loaded with
> --script=[path/to/file/checkpoint.rcS]) for instance:
> $ cat runscripts/checkpoint.rcS
> m5 checkpoint
> m5 exit
>
> This will create a checkpoint and exit. But be aware that when you use a
> script like this, this same script will be loaded to your system and it
> will just exit when you restore from this checkpoint (this was my mistake
> when I first used checkpoints).
> So you need to put the commands you want to simulate between the last two
> commands:
>
> m5 checkpoint
> ./test.sh
> m5 exit
>
> Kind regards
> Serhat
>
> ________________________________________
> From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Yunxia Zhu [
> emilia...@gmail.com]
> Sent: 28 August 2018 10:28
> To: gem5 users mailing list
> Subject: Re: [gem5-users] Create Checkpoint
>
> Hello Serhat Gesoglu,
>
> I used m5 commands but I still failed to create checkpoint.
> Here it is details:
>
> Create checkpoint:
> gem5 $ build/X86/gem5.opt configs/example/fs.py
> --script=configs/boot/hack_back_ckpt.rcS
>
> Restore checkpoint:
> gem5 $ build/X86/gem5.opt configs/example/fs.py -r 1
>
> Then it shows "checkpoint 1 not found"
>
> And I am also confused where to add "m5 checkpoint". Could you show me the
> command? Thank you  very much.
>
> with best regards
> Yunxia Zhu
>
>
>
>
> On Tue, 21 Aug 2018 at 17:05, Serhat Gesoglu <
> serhat.geso...@manchester.ac.uk<mailto:serhat.geso...@manchester.ac.uk>>
> wrote:
> Hello,
> gem5-gpu is the combination of gem5 and gpgpu-sim. You may find more
> information here: https://gem5-gpu.cs.wisc.edu/wiki/
> If you are not planning to simulate gpus sticking to gem5 might be a
> better idea.
>
> To create checkpoints you have two options.
> One is the command line option "--checkpoint-at-end". This will create a
> checkpoint when your simulation ends.
>
> The second way is to use use m5 commands (which I think the easier way).
> There is a script file: "configs/boot/hack_back_ckpt.rcS" to see more on
> this.
> You need to run the simulation with this script first. It creates a
> checkpoint and stops. The second time (when restored from a checkpoint),
> you use your own script.
>
> Kind regards
> Serhat Gesoglu
>
> ________________________________________
> From: gem5-users [gem5-users-boun...@gem5.org<mailto:
> gem5-users-boun...@gem5.org>] on behalf of Yunxia Zhu [emilia...@gmail.com
> <mailto:emilia...@gmail.com>]
> Sent: 21 August 2018 15:45
> To: gem5 users mailing list
> Subject: [gem5-users] Create Checkpoint
>
> Hello everyone,
>
> I  want to create a checkpoint to speed up startup of the gem5 OS, but I
> have some doubts.
> 1. When I search it online, someone use gem5.gpu to create checkpoint.
> What is the difference between gem5 and gem5-gpu? In my opinion they are
> different simulators.
> 2. After checking some document I still have no idea about the checkpoint.
> I don't know how to start to create it. Could anyone give me any idea to do
> it?
>
> Thanks for your time and reply.
>
> with best regards
> Yunxia Zhu
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org<mailto:gem5-users@gem5.org>
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to