[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH QEMU v7 8/9] migration: Extend query-migrate to provide dirty
From: |
Markus Armbruster |
Subject: |
Re: [PATCH QEMU v7 8/9] migration: Extend query-migrate to provide dirty page limit info |
Date: |
Thu, 06 Jul 2023 17:08:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
~hyman <hyman@git.sr.ht> writes:
> From: Hyman Huang(黄勇) <yong.huang@smartx.com>
>
> Extend query-migrate to provide throttle time and estimated
> ring full time with dirty-limit capability enabled, through which
> we can observe if dirty limit take effect during live migration.
>
> Signed-off-by: Hyman Huang(黄勇) <yong.huang@smartx.com>
> Reviewed-by: Markus Armbruster <armbru@redhat.com>
> Reviewed-by: Juan Quintela <quintela@redhat.com>
[...]
> diff --git a/qapi/migration.json b/qapi/migration.json
> index cc51835cdd..ebc15e2782 100644
> --- a/qapi/migration.json
> +++ b/qapi/migration.json
> @@ -250,6 +250,18 @@
> # blocked. Present and non-empty when migration is blocked.
> # (since 6.0)
> #
> +# @dirty-limit-throttle-time-per-round: Maximum throttle time (in
> microseconds) of virtual
> +# CPUs each dirty ring full round,
> which shows how
> +# MigrationCapability dirty-limit
> affects the guest
> +# during live migration. (since 8.1)
> +#
> +# @dirty-limit-ring-full-time: Estimated average dirty ring full time (in
> microseconds)
> +# each dirty ring full round, note that the
> value equals
Period instead of comma, please.
> +# dirty ring memory size divided by average
> dirty page rate
> +# of virtual CPU, which can be used to observe
> the average
of the virtual CPU
> +# memory load of virtual CPU indirectly. Note
> that zero
again
> +# means guest doesn't dirty memory (since 8.1)
> +#
Please format like
# @dirty-limit-throttle-time-per-round: Maximum throttle time (in
# microseconds) of virtual CPUs each dirty ring full round, which
# shows how MigrationCapability dirty-limit affects the guest
# during live migration. (since 8.1)
#
# @dirty-limit-ring-full-time: Estimated average dirty ring full time
# (in microseconds) each dirty ring full round. Note that the
# value equals dirty ring memory size divided by average dirty
# page rate of the virtual CPU, which can be used to observe the
# average memory load of the virtual CPU indirectly. Note that
# zero means guest doesn't dirty memory (since 8.1)
to blend in with recent commit a937b6aa739 (qapi: Reformat doc comments
to conform to current conventions).
Might want to scratch "Note that" both times.
> # Since: 0.14
> ##
> { 'struct': 'MigrationInfo',
> @@ -267,7 +279,9 @@
> '*postcopy-blocktime' : 'uint32',
> '*postcopy-vcpu-blocktime': ['uint32'],
> '*compression': 'CompressionStats',
> - '*socket-address': ['SocketAddress'] } }
> + '*socket-address': ['SocketAddress'],
> + '*dirty-limit-throttle-time-per-round': 'uint64',
> + '*dirty-limit-ring-full-time': 'uint64'} }
>
> ##
> # @query-migrate:
[...]
- [PATCH QEMU v7 0/9] migration: introduce dirtylimit capability, ~hyman, 2023/07/05
- [PATCH QEMU v7 2/9] qapi/migration: Introduce x-vcpu-dirty-limit-period parameter, ~hyman, 2023/07/05
- [PATCH QEMU v7 1/9] softmmu/dirtylimit: Add parameter check for hmp "set_vcpu_dirty_limit", ~hyman, 2023/07/05
- [PATCH QEMU v7 6/9] migration: Put the detection logic before auto-converge checking, ~hyman, 2023/07/05
- [PATCH QEMU v7 4/9] migration: Introduce dirty-limit capability, ~hyman, 2023/07/05
- [PATCH QEMU v7 5/9] migration: Refactor auto-converge capability logic, ~hyman, 2023/07/05
- [PATCH QEMU v7 8/9] migration: Extend query-migrate to provide dirty page limit info, ~hyman, 2023/07/05
- Re: [PATCH QEMU v7 8/9] migration: Extend query-migrate to provide dirty page limit info,
Markus Armbruster <=
- [PATCH QEMU v7 3/9] qapi/migration: Introduce vcpu-dirty-limit parameters, ~hyman, 2023/07/05
- [PATCH QEMU v7 9/9] tests: Add migration dirty-limit capability test, ~hyman, 2023/07/05
- [PATCH QEMU v7 7/9] migration: Implement dirty-limit convergence algo, ~hyman, 2023/07/05