cirosantilli2 / gem5-issues

This repo can be used for gem5 usage questions. If you have a bug instead, just open a ticket at: https://gem5.atlassian.net/jira/software/c/projects/GEM5/issues gem5 info is being moved to: https://cirosantilli.com/linux-kernel-module-cheat/#gem5 Alternative usage question locations are: gem5-users mailing list and Stack Overflow.
4 stars 1 forks source link

Checkpointing and modifying the disk #23

Closed andrewzigerelli closed 5 years ago

andrewzigerelli commented 5 years ago

Hi Ciro,

Do you have any idea how to force disk changes to be loaded by gem without recheckpointing?

When I change the disk in qemu and reload my checkpoint, I don't see new files. Further, if I recompile a file in qemu (need to do this for now, hope to make buildroot work later), my binaries become 0 bytes in gem. I'm using a raw disk with ubuntu.

I tried:

# sync
# echo 3 > /proc/sys/vm/drop_caches

from telnet, but cannot force gem to re-read from disk. Thanks Andrew

cirosantilli2 commented 5 years ago

Hi Andrew,

When I use QEMU with an ext4 filesystem (no initrd) and no snapshot option, it did write to disk.

I've just retested: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/550897ce1766e8df0b4ffcfdc17206f788d9f67f#disk-persistency now and it still worked.

andrewzigerelli commented 5 years ago

Thank you so much! I needed to remove snapshot..