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

Reply via email to