[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/25] migration: Refactor auto-converge capability logic
From: |
Juan Quintela |
Subject: |
[PULL 07/25] migration: Refactor auto-converge capability logic |
Date: |
Wed, 26 Jul 2023 14:14:41 +0200 |
From: Hyman Huang(黄勇) <yong.huang@smartx.com>
Check if block migration is running before throttling
guest down in auto-converge way.
Note that this modification is kind of like code clean,
because block migration does not depend on auto-converge
capability, so the order of checks can be adjusted.
Signed-off-by: Hyman Huang(黄勇) <yong.huang@smartx.com>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <168618975839.6361.17407633874747688653-5@git.sr.ht>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/ram.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/migration/ram.c b/migration/ram.c
index 0ada6477e8..f31de47a47 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -995,7 +995,11 @@ static void migration_trigger_throttle(RAMState *rs)
/* During block migration the auto-converge logic incorrectly detects
* that ram migration makes no progress. Avoid this by disabling the
* throttling logic during the bulk phase of block migration. */
- if (migrate_auto_converge() && !blk_mig_bulk_active()) {
+ if (blk_mig_bulk_active()) {
+ return;
+ }
+
+ if (migrate_auto_converge()) {
/* The following detection logic can be refined later. For now:
Check to see if the ratio between dirtied bytes and the approx.
amount of bytes that just got transferred since the last time
--
2.40.1
- [PULL 00/25] Migration 20230726 patches, Juan Quintela, 2023/07/26
- [PULL 01/25] migration/multifd: Rename threadinfo.c functions, Juan Quintela, 2023/07/26
- [PULL 02/25] migration/multifd: Protect accesses to migration_threads, Juan Quintela, 2023/07/26
- [PULL 04/25] qapi/migration: Introduce x-vcpu-dirty-limit-period parameter, Juan Quintela, 2023/07/26
- [PULL 05/25] qapi/migration: Introduce vcpu-dirty-limit parameters, Juan Quintela, 2023/07/26
- [PULL 12/25] migration-test: Make machine_opts regular with other options, Juan Quintela, 2023/07/26
- [PULL 08/25] migration: Put the detection logic before auto-converge checking, Juan Quintela, 2023/07/26
- [PULL 07/25] migration: Refactor auto-converge capability logic,
Juan Quintela <=
- [PULL 11/25] migration-test: Be consistent for ppc, Juan Quintela, 2023/07/26
- [PULL 19/25] qtest/migration-tests.c: use "-incoming defer" for postcopy tests, Juan Quintela, 2023/07/26
- [PULL 09/25] migration: Implement dirty-limit convergence algo, Juan Quintela, 2023/07/26
- [PULL 03/25] softmmu/dirtylimit: Add parameter check for hmp "set_vcpu_dirty_limit", Juan Quintela, 2023/07/26
- [PULL 06/25] migration: Introduce dirty-limit capability, Juan Quintela, 2023/07/26
- [PULL 21/25] migration: Change qemu_file_transferred to noflush, Juan Quintela, 2023/07/26
- [PULL 10/25] migration: Extend query-migrate to provide dirty page limit info, Juan Quintela, 2023/07/26
- [PULL 13/25] migration-test: Create arch_opts, Juan Quintela, 2023/07/26
- [PULL 14/25] migration-test: machine_opts is really arch specific, Juan Quintela, 2023/07/26
- [PULL 18/25] migration: enforce multifd and postcopy preempt to be set before incoming, Juan Quintela, 2023/07/26