ShaoHe Feng has posted comments on this change.

Change subject: fix dataProgress of migration
......................................................................


Patch Set 1:

I migrate to file without full copy of disk.
the guest memory is 1G, and at last the migration file is 221548328.

I call the jobInfo per 0.3ms.
and print the process use the vdsm process formulas 100 * dataProcessed / 
dataTotal.
the result as follow:
Progress: dataProcessed = 0, dataTotal=0, 0% processed
Progress: dataProcessed = 2191547, dataTotal=1082458112, 0% processed
Progress: dataProcessed = 19430371, dataTotal=1082458112, 1% processed
Progress: dataProcessed = 23658984, dataTotal=1082458112, 2% processed
Progress: dataProcessed = 23671277, dataTotal=1082458112, 2% processed
Progress: dataProcessed = 182731925, dataTotal=1082458112, 16% processed
in the next 0.3ms the job was finished.

print the process use the libvirt process formulas 100 - 100 * dataRemaining / 
dataTotal.
the result as follow:
Progress: dataRemaining = 1008160768, dataTotal=1082458112, 7% processed
Progress: dataRemaining = 609681408, dataTotal=1082458112, 44% processed
Progress: dataRemaining = 211202048, dataTotal=1082458112, 81% processed
Progress: dataRemaining = 106823680, dataTotal=1082458112, 91% processed
Progress: dataRemaining = 42057728, dataTotal=1082458112, 97% processed
in the next 0.3ms the job was finished.

so the libvirt formulas is more reasonable

--
To view, visit http://gerrit.ovirt.org/7914
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8ff16da7a0bfb6a28cb8bae6b127bff46575d5f6
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Shu Ming <[email protected]>
Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to