Re: [gem5-users] Changing configuration between checkpoint and restore

2020-01-06 Thread Shehab Elsayed
Thanks, Ciro! This makes sense. So I guess one example for things that
shouldn't change between checkpointing and restoring is the number of cores
while the cache sizes should be OK to change.

On Mon, Jan 6, 2020 at 11:50 AM Ciro Santilli 
wrote:

> On Mon, Jan 6, 2020 at 4:09 PM Shehab Elsayed 
> wrote:
> >
> > Hello All,
> >
> > I was wondering which configuration parameters are safe to change
> between taking a checkpoint and restoring from the same checkpoint. For
> example, cache configuration, core configuration, number of LLC banks,
> number of cores, 
> >
> > Also, Is there a way to tell whether a configuration can be safely
> changed between checkpointing and restoring?
> >
>
> I'm not 100% sure, but I believe that in general things which are not
> architecturally visible can be switched safely.
>
> If it is visible, you have to be careful that the software might
> expect one state previously read, but now the hardware suddenly
> changed to a new one.
>
> Also note that cache sizes are not currently exposed to the guest:
>
> https://stackoverflow.com/questions/49008792/why-doesnt-the-linux-kernel-see-the-cache-sizes-in-the-gem5-emulator-in-full-sy
>
> > Thank you very much in advance.
> >
> > Best Regards,
> > Shehab
> > ___
> > 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

Re: [gem5-users] Changing configuration between checkpoint and restore

2020-01-06 Thread Ciro Santilli
On Mon, Jan 6, 2020 at 4:09 PM Shehab Elsayed  wrote:
>
> Hello All,
>
> I was wondering which configuration parameters are safe to change between 
> taking a checkpoint and restoring from the same checkpoint. For example, 
> cache configuration, core configuration, number of LLC banks, number of 
> cores, 
>
> Also, Is there a way to tell whether a configuration can be safely changed 
> between checkpointing and restoring?
>

I'm not 100% sure, but I believe that in general things which are not
architecturally visible can be switched safely.

If it is visible, you have to be careful that the software might
expect one state previously read, but now the hardware suddenly
changed to a new one.

Also note that cache sizes are not currently exposed to the guest:
https://stackoverflow.com/questions/49008792/why-doesnt-the-linux-kernel-see-the-cache-sizes-in-the-gem5-emulator-in-full-sy

> Thank you very much in advance.
>
> Best Regards,
> Shehab
> ___
> 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