Additionally, you can use the KVM CPU if you're running the same ISA on the
host and the simulator. This can get Linux boot down to about 10 seconds.

There's documentation floating around. I would start by looking at this
paper out of Uppsala:
http://uu.diva-portal.org/smash/get/diva2:705982/FULLTEXT01.pdf.

You may also find this branch of my personal gem5 helpful (it's based on
some of the Learning gem5 code so it's a little simpler than using fs.py).
https://github.com/jlpresearch/gem5/tree/jason/simplefs/configs/myconfigs

Cheers,
Jason

-----------
Jason Lowe-Power
Assistant Professor, Computer Science Department
University of California, Davis
3049 Kemper Hall
https://faculty.engineering.ucdavis.edu/lowepower/


On Fri, Dec 8, 2017 at 5:33 AM Paul Rosenfeld (prosenfeld) <
[email protected]> wrote:

> Probably what I would recommend is to use the instructions described in
> the Workload Automation page (http://www.gem5.org/WA-gem5) to set up 9P
> filesystem over VirtIO. Although it does not explicitly state how to do it,
> with a bit of work you will be able to access the host file system from
> inside gem5.
>
>
>
> After you get it set up and working, the procedure is as you describe:
> boot up to after login, create a checkpoint; restore the checkpoint, mount
> the host file system over VirtIO, copy the files you need into the guest,
> make your final checkpoint (either at the console or from inside the
> workload).
>
>
>
> Hope that helps.
>
>
>
> *From:* gem5-users [mailto:[email protected]] *On Behalf Of *Hanhwi
> Jang
> *Sent:* Friday, December 08, 2017 3:27 AM
> *To:* [email protected]
> *Subject:* [EXT] [gem5-users] Efficiently way put workloads in the full
> system image?
>
>
>
> Hi,
>
>
>
> I am fairly new to gem5 and trying to setup some workloads in a
> full-system image.
>
> The given image from the official website works fine,
>
> but my own image and kernel (ubuntu 16.04) are suffering from really slow
> booting.
>
>
>
> It is really painful to wait a system to boot every time and make
> checkpoints for a new workload.
>
> I want to make a checkpoint right after booting and reuse that checkpoint
> to setup a new workload.
>
> Is there any way to upload file to system image in the middle of
> simulation, such as,
>
> making some disk image having a workload and connecting that image to the
> simulated system as a new disk?
>
>
>
> Thanks,
>
> Hanhwi
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to