Arik Hadas has uploaded a new change for review. Change subject: reduce the time VM is paused in snapshot with RAM creation ......................................................................
reduce the time VM is paused in snapshot with RAM creation By using libvirt's VIR_DOMAIN_SNAPSHOT_CREATE_LIVE flag we minimize the time the VM is switched to paused state while creating live snapshot with RAM. Without this flag the VM is switched to pause state for the whole process of dumping the memory, and with this flag the VM is switched to pause state only for a short time. Change-Id: Ieff4196e4514c15551aae5a2afe7e814b63f150c Signed-off-by: Arik Hadas <aha...@redhat.com> --- M vdsm/vm.py 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/96/19296/1 diff --git a/vdsm/vm.py b/vdsm/vm.py index 92d274e..6dece1f 100644 --- a/vdsm/vm.py +++ b/vdsm/vm.py @@ -3668,6 +3668,8 @@ memoryVol = memoryParams['dst'] memoryVolPath = self.cif.prepareVolumePath(memoryVol) snap.appendChild(_memorySnapshot(memoryVolPath)) + + snapFlags |= libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_LIVE else: snapFlags |= libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY -- To view, visit http://gerrit.ovirt.org/19296 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ieff4196e4514c15551aae5a2afe7e814b63f150c Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Arik Hadas <aha...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches