RFC migration: auto-converge refinements for huge VM
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest10 patches 24 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | migration: Introduce structs for periodic CPU throttleinclude/ migration/ | +51 | 0 replies | |
| 2/10 | migration: Refine util functions to support periodic CPU throttleinclude/ migration/ | +147 | 0 replies | |
| 3/10 | qapi/migration: Introduce periodic CPU throttling parametersmigration/ migration/ migration/ +1 more | +97 | 0 replies | |
| 4/10 | qapi/migration: Introduce the iteration-countmigration/ migration/ migration/ +2 more | +19 | 0 replies | |
| 5/10 | migration: Introduce util functions for periodic CPU throttlemigration/ migration/ migration/ | +104 | 0 replies | |
| 6/10 | migration: Support periodic CPU throttlemigration/ | +11 | 0 replies | |
| 7/10 | tests/migration-tests: Add test case for periodic throttletests/ | +55 | 0 replies | |
| 8/10 | migration: Introduce cpu-responsive-throttle parametermigration/ migration/ migration/ +1 more | +44 | 0 replies | |
| 9/10 | migration: Support responsive CPU throttlemigration/ migration/ tests/ | +55 | 0 replies | |
| 10/10 | tests/migration-tests: Add test case for responsive CPU throttletests/ | +20 | 24 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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