[libvirt] [PATCH 0/2] qemu: migration: show disks stats for nbd migration

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Tue Dec 20 07:05:48 UTC 2016

Current migration stats will show something like [1] when in
the process of mirroring of non shared disks. This gives very
little info on the migration progress. Likewise completed stats miss
disks mirroring info.

This patch provides disks stats in the said phase like in [2] so 
user can now understand what's going on. However data stats miss
memory stats, so data total and remaining will change when memory
migration starts.

AFAIU disks stats were available before the nbd based migration
becomes the default. So this patch returns disks stats back at
some level.

Patch 1 is just a little cleanup. Removed code uses qemuMigrationFetchJobStatus
so the patch 1 helps analysis of the patch 2.

Job type:         Unbounded   
Time elapsed:     4964         ms

Job type:         Unbounded   
Time elapsed:     4964         ms
Data processed:   146.000 MiB
Data remaining:   854.000 MiB
Data total:       1000.000 MiB
File processed:   146.000 MiB
File remaining:   854.000 MiB
File total:       1000.000 MiB

Nikolay Shirokovskiy (2):
  qemu: clean out unused migrate to unix
  qemu: migration: show disks stats for nbd migration

 docs/news.html.in         |   4 ++
 src/qemu/qemu_driver.c    |   5 +-
 src/qemu/qemu_migration.c | 128 +++++++++++++++++++++++++++++-----------------
 src/qemu/qemu_migration.h |   3 +-
 src/qemu/qemu_monitor.c   |  24 ---------
 src/qemu/qemu_monitor.h   |   4 --
 6 files changed, 90 insertions(+), 78 deletions(-)


More information about the libvir-list mailing list