Skip to content

RFC migration: auto-converge refinements for huge VM

Hyman Huang qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10migration: Introduce structs for periodic CPU throttleinclude/exec/ramblock.h migration/ram.c+51 -00 replies
2/10migration: Refine util functions to support periodic CPU throttleinclude/exec/ram_addr.h migration/ram.c+147 -190 replies
3/10qapi/migration: Introduce periodic CPU throttling parametersmigration/migration-hmp-cmds.c migration/options.c migration/options.h +1 more+97 -10 replies
4/10qapi/migration: Introduce the iteration-countmigration/migration-stats.h migration/migration.c migration/ram.c +2 more+19 -60 replies
5/10migration: Introduce util functions for periodic CPU throttlemigration/ram.c migration/ram.h migration/trace-events+104 -10 replies
6/10migration: Support periodic CPU throttlemigration/migration.c+11 -00 replies
7/10tests/migration-tests: Add test case for periodic throttletests/qtest/migration-test.c+55 -10 replies
8/10migration: Introduce cpu-responsive-throttle parametermigration/migration-hmp-cmds.c migration/options.c migration/options.h +1 more+44 -10 replies
9/10migration: Support responsive CPU throttlemigration/ram.c migration/trace-events tests/qtest/migration-test.c+55 -20 replies
10/10tests/migration-tests: Add test case for responsive CPU throttletests/qtest/migration-test.c+20 -024 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 00/10] migration: auto-converge refinements for huge VM

Currently, a huge VM with high memory overload may take a long time to increase its maximum throttle percentage. The root cause is that the current auto-converge throttle logic doesn't look like it will scale because migration_trigger_throttle() is only called for each iteration, so it won't be invoked for a long time if one iteration can take a long time.

This patchset provides two refinements aiming at the above case.

1: The periodic CPU throttle. As Peter points out, "throttle only
for each sync, sync for each iteration" may make sense in the old days, but perhaps not anymore. So we introduce perioidic CPU throttle implementation for migration, which is a trade-off between synchronization overhead and CPU throttle impact.

2: The responsive CPU throttle. We present new criteria called
"dirty ratio" to help improve the detection accuracy and hence accelerate the throttle's invocation.

The RFC version of the refinement may be a rudimentary implementation, I would appreciate hearing more feedback.

Yong, thanks.

Hyman Huang (10):
migration: Introduce structs for periodic CPU throttle
migration: Refine util functions to support periodic CPU throttle qapi/migration: Introduce periodic CPU throttling parameters qapi/migration: Introduce the iteration-count
migration: Introduce util functions for periodic CPU throttle
migration: Support periodic CPU throttle tests/migration-tests: Add test case for periodic throttle
migration: Introduce cpu-responsive-throttle parameter
migration: Support responsive CPU throttle tests/migration-tests: Add test case for responsive CPU throttle

 include/exec/ram_addr.h        | 117 ++++++++++++++++--
 include/exec/ramblock.h        |  45 +++++++
 migration/migration-hmp-cmds.c |  25 ++++
 migration/migration-stats.h    |   4 +
 migration/migration.c          |  12 ++
 migration/options.c            |  74 +++++++++++
 migration/options.h            |   3 +
 migration/ram.c                | 218 ++++++++++++++++++++++++++++++---
 migration/ram.h                |   4 +
 migration/trace-events         |   4 +
 qapi/migration.json            |  45 ++++++-
 tests/qtest/migration-test.c   |  77 +++++++++++-
 12 files changed, 600 insertions(+), 28 deletions(-)
Signature · 1 line
2.39.1