mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Expose additional migration statistics
RDMA migration uses the 'setup' state in QEMU to optionally lock all memory before the migration starts. The total time spent in this state is exposed as VIR_DOMAIN_JOB_SETUP_TIME. Additionally, QEMU also exports migration throughput (mbps) for both memory and disk, so let's add them too: VIR_DOMAIN_JOB_MEMORY_BPS, VIR_DOMAIN_JOB_DISK_BPS. Signed-off-by: Michael R. Hines <mrhines@us.ibm.com> Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
committed by
Jiri Denemark
parent
1cd3765ead
commit
30b24df165
@@ -5518,6 +5518,16 @@ cmdDomjobinfo(vshControl *ctl, const vshCmd *cmd)
|
||||
vshPrint(ctl, "%-17s %-.3lf %s\n", _("Memory remaining:"), val, unit);
|
||||
val = vshPrettyCapacity(info.memTotal, &unit);
|
||||
vshPrint(ctl, "%-17s %-.3lf %s\n", _("Memory total:"), val, unit);
|
||||
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams,
|
||||
VIR_DOMAIN_JOB_MEMORY_BPS,
|
||||
&value)) < 0) {
|
||||
goto save_error;
|
||||
} else if (rc && value) {
|
||||
val = vshPrettyCapacity(value, &unit);
|
||||
vshPrint(ctl, "%-17s %-.3lf %s/s\n",
|
||||
_("Memory bandwidth:"), val, unit);
|
||||
}
|
||||
}
|
||||
|
||||
if (info.fileTotal || info.fileRemaining || info.fileProcessed) {
|
||||
@@ -5527,6 +5537,16 @@ cmdDomjobinfo(vshControl *ctl, const vshCmd *cmd)
|
||||
vshPrint(ctl, "%-17s %-.3lf %s\n", _("File remaining:"), val, unit);
|
||||
val = vshPrettyCapacity(info.fileTotal, &unit);
|
||||
vshPrint(ctl, "%-17s %-.3lf %s\n", _("File total:"), val, unit);
|
||||
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams,
|
||||
VIR_DOMAIN_JOB_DISK_BPS,
|
||||
&value)) < 0) {
|
||||
goto save_error;
|
||||
} else if (rc && value) {
|
||||
val = vshPrettyCapacity(value, &unit);
|
||||
vshPrint(ctl, "%-17s %-.3lf %s/s\n",
|
||||
_("File bandwidth:"), val, unit);
|
||||
}
|
||||
}
|
||||
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams,
|
||||
@@ -5566,6 +5586,13 @@ cmdDomjobinfo(vshControl *ctl, const vshCmd *cmd)
|
||||
}
|
||||
}
|
||||
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams,
|
||||
VIR_DOMAIN_JOB_SETUP_TIME,
|
||||
&value)) < 0)
|
||||
goto save_error;
|
||||
else if (rc)
|
||||
vshPrint(ctl, "%-17s %-12llu ms\n", _("Setup time:"), value);
|
||||
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams,
|
||||
VIR_DOMAIN_JOB_COMPRESSION_CACHE,
|
||||
&value)) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user