[libvirt] [PATCH v2 00/12] qemu: migration: show disks stats for nbd migration

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Wed Dec 28 14:39:09 UTC 2016

diff from v1:
1. patch  "qemu: clean out unused migrate to unix" is dropped
  as it is already pushed.
2. a lot of refactoring patches added, namely all except 
  the last patch.
3. fetching mirroring stats is done separately from getting
  migration status. Generally speaking refactorings patches
  removes the function to fetch migrations status altogether.

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.

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 (12):
  qemu: qemuDomainJobInfoToParams drop unused code
  qemu: introduce qemu domain job status
  qemu: drop excessive zero-out in qemuMigrationFetchJobStatus
  qemu: drop fetch and update status functions
  qemu: simplify getting completed job stats
  qemu: drop unused code in qemuDomainGetJobStatsInternal
  qemu: drop fetch flag in qemuDomainGetJobStatsInternal
  qemu: split getting stats for migration and others
  qemu: show disks stats for nbd migration

 docs/news.html.in         |   4 +
 src/qemu/qemu_domain.c    |  32 ++++++--
 src/qemu/qemu_domain.h    |  13 +++-
 src/qemu/qemu_driver.c    | 100 ++++++++++++++----------
 src/qemu/qemu_migration.c | 195 ++++++++++++++++++++++++++--------------------
 src/qemu/qemu_migration.h |   8 +-
 src/qemu/qemu_process.c   |   6 +-
 7 files changed, 214 insertions(+), 144 deletions(-)


More information about the libvir-list mailing list