On Thu, Apr 19, 2018 at 5:03 PM, Bryce Patel <bry...@andrew.cmu.edu> wrote:
> Hello,
>
> I am very new to GEM5 and I am wondering how best to simulate thread
> migration on an asymmetric multicore system. I was thinking I could take a
> checkpoint partway through execution using the checkpoint m5op, then use the
> switchcpu m5op, and then restore the checkpoints on another CPU. My
> understanding is I would include these m5ops in the source code of the
> application I'm using. Does this sound correct, or am I misunderstanding how
> to use m5ops?
>
> Also, do you know of any example code that uses m5ops that I could use for
> reference?
>

Parsec checkpoint example:
https://github.com/arm-university/arm-gem5-rsk/blob/aa3b51b175a0f3b6e75c9c856092ae0c8f2a7cdc/parsec_patches/xcompile-patch.diff#L188

Some fs.py gotchas:
https://stackoverflow.com/questions/49011096/how-to-switch-cpu-models-in-gem5-after-restoring-a-checkpoint-and-then-observe-t/49673265#49673265

I first recommend that you first play a bit with the "m5 checkpoint"
on the m5 guest tool + the  fs.py -r option, example:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/2852fe1989a6f1ab546e9a4fa88724423b3949f5#gem5-checkpoint

> Thanks, Bryce Patel
>
> _______________________________________________
> 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