Skip to content

migration: Downtime tracepoints

Peter Xu qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesIn review
  2. v13 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- Added two more patches (patch 4&5) to add the checkpoints too, it means it merges Joao's series into tracepoints, and extend that to dest QEMU.
- Patch 5: Prefixed checkpoints with "src-" and "dst-"

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5migration: Set downtime_start even for postcopymigration/migration.c+3 -21 reply
2/5migration: Add migration_downtime_start|end() helpersmigration/migration.c+24 -131 reply
3/5migration: Add per vmstate downtime tracepointsmigration/savevm.c migration/trace-events+47 -41 reply
4/5migration: migration_stop_vm() helpermigration/migration.c migration/migration.h+10 -31 reply
5/5migration: Add tracepoints for downtime checkpointsmigration/migration.c migration/savevm.c migration/trace-events+25 -71 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJuan Quintela
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] migration: Downtime tracepoints

v2:
- Added two more patches (patch 4&5) to add the checkpoints too, it means it merges Joao's series into tracepoints, and extend that to dest QEMU.
- Patch 5: Prefixed checkpoints with "src-" and "dst-"

This small series wants to improve ability of QEMU downtime analysis similarly to what Joao used to propose here:

https://lore.kernel.org/r/[email protected]

But with a few enhancements:

- Nothing exported yet to qapi, all tracepoints so far

- Besides major checkpoints, finer granule by providing downtime measurements for each vmstate (I made microsecond to be the unit to be accurate) alongside.

- Trace dest QEMU too for either the checkpoints or vmsd load()s

For the last bullet: consider the case where a device save() can be super fast, while load() can actually be super slow. Both of them will contribute to the ultimate downtime, but not a simple addition: when src QEMU is save()ing on device1, dst QEMU can logically be load()ing on device2. So they can run in parallel. However the only way to figure all components of the downtime is to record both.

Please have a look, thanks.

Peter Xu (5):
migration: Set downtime_start even for postcopy
migration: Add migration_downtime_start|end() helpers
migration: Add per vmstate downtime tracepoints
migration: migration_stop_vm() helper
migration: Add tracepoints for downtime checkpoints

 migration/migration.h  |  2 ++
 migration/migration.c  | 63 +++++++++++++++++++++++++++++++-----------
 migration/savevm.c     | 63 ++++++++++++++++++++++++++++++++++++------
 migration/trace-events |  4 ++-
 4 files changed, 106 insertions(+), 26 deletions(-)
Signature · 1 line
2.41.0