Skip to contentSkip to conversation

Question on Lazy VM Restore

DISCUSSION Prateek Sharma 3 participants 3 messages Dec 13, 2013 – Dec 18, 2013

lore
Share & tools
lore
#0 lore raw

Hello all,
I was wondering if there is an existing mechanism in Xen for
restoring a saved/checkpointed VM lazily. By that, I mean that the pages of the VM should be mapped only on access.
Currently, restoring a VM from a snapshot seems to take a long
time [~20 seconds for 2 GB].
Assuming that there is no lazy-restore functionality, what would
be a good way to implement this? Using parts of Xen-paging? Snowflock? Something else?

Thanks!
--Prateek

#1 lore raw
Quoted 10 lines · Prateek Sharma

Hello all,
I was wondering if there is an existing mechanism in Xen for
restoring a saved/checkpointed VM lazily. By that, I mean that the pages of the VM should be mapped only on access.
Currently, restoring a VM from a snapshot seems to take a long
time [~20 seconds for 2 GB].
Assuming that there is no lazy-restore functionality, what would
be a good way to implement this? Using parts of Xen-paging? Snowflock? Something else?

Quoted 2 lines

Thanks!
--Prateek

There is no current mechanism which I am aware of. I recall a few academic papers looking in to the possibility, but no code as a result.

The restoring from a shapshot has a number of large inefficiencies in the datapath in the privcmd driver. Fixing these would make quite an improvement on those 20 seconds, which I suspect might be a rather easier improvement than implementing lazy restore.

Having said that, if you are looking for a project to do, I suspect the xen-paging infrastructure would be able to be used for lazy restore, although Andres (author of xen-paging, CC'd) will likely be able to speak rather more about the feasibility of it.

~Andrew

#2 lore raw
Quoted 22 lines · Andrew Cooper
Quoted 10 lines · Prateek Sharma

Hello all,
I was wondering if there is an existing mechanism in Xen for
restoring a saved/checkpointed VM lazily. By that, I mean that the pages of the VM should be mapped only on access.
Currently, restoring a VM from a snapshot seems to take a long
time [~20 seconds for 2 GB].
Assuming that there is no lazy-restore functionality, what would
be a good way to implement this? Using parts of Xen-paging? Snowflock? Something else?

Quoted 2 lines

Thanks!
--Prateek

There is no current mechanism which I am aware of. I recall a few academic papers looking in to the possibility, but no code as a result.

The restoring from a shapshot has a number of large inefficiencies in the datapath in the privcmd driver. Fixing these would make quite an improvement on those 20 seconds, which I suspect might be a rather easier improvement than implementing lazy restore.

Quoted 5 lines

Having said that, if you are looking for a project to do, I suspect the xen-paging infrastructure would be able to be used for lazy restore, although Andres (author of xen-paging, CC'd) will likely be able to speak rather more about the feasibility of it.

Thanks Andrew. Credit where is due, Olaf Hering from Suse had most to do with xen-paging.

Prateek: yes you could use xen-paging to build a lazy restore. Snowflock has mutated/evolved into Gridcentric's commercial offering, so happy to discuss that off list.

Best,
Andres

Quoted 3 lines

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel