[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/6] migration: Stop CPU throttling conditionally
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH v4 2/6] migration: Stop CPU throttling conditionally |
Date: |
Thu, 17 Oct 2024 15:02:34 -0300 |
yong.huang@smartx.com writes:
> From: Hyman Huang <yong.huang@smartx.com>
>
> Since CPU throttling only occurs when auto-converge
> is on, stop it conditionally.
>
> Signed-off-by: Hyman Huang <yong.huang@smartx.com>
> ---
> migration/migration.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/migration/migration.c b/migration/migration.c
> index 021faee2f3..37a200a177 100644
> --- a/migration/migration.c
> +++ b/migration/migration.c
> @@ -3289,7 +3289,9 @@ static MigIterateState
> migration_iteration_run(MigrationState *s)
> static void migration_iteration_finish(MigrationState *s)
> {
> /* If we enabled cpu throttling for auto-converge, turn it off. */
> - cpu_throttle_stop();
> + if (migrate_auto_converge()) {
> + cpu_throttle_stop();
> + }
>
> bql_lock();
> switch (s->state) {
Reviewed-by: Fabiano Rosas <farosas@suse.de>
- [PATCH v4 0/6] migration: auto-converge refinements for huge VM, yong . huang, 2024/10/17
- [PATCH v4 1/6] accel/tcg/icount-common: Remove the reference to the unused header file, yong . huang, 2024/10/17
- [PATCH v4 2/6] migration: Stop CPU throttling conditionally, yong . huang, 2024/10/17
- Re: [PATCH v4 2/6] migration: Stop CPU throttling conditionally,
Fabiano Rosas <=
- [PATCH v4 3/6] migration: Move cpu-throttole.c from system to migration, yong . huang, 2024/10/17
- [PATCH v4 4/6] migration: Remove "rs" parameter in migration_bitmap_sync_precopy, yong . huang, 2024/10/17
- [PATCH v4 5/6] migration: Support periodic RAMBlock dirty bitmap sync, yong . huang, 2024/10/17
- [PATCH v4 6/6] tests/migration: Add case for periodic ramblock dirty sync, yong . huang, 2024/10/17