[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v12 13/13] Add XBZRLE statistics
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v12 13/13] Add XBZRLE statistics |
Date: |
Tue, 19 Jun 2012 13:20:11 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
On 06/19/2012 09:43 AM, Orit Wasserman wrote:
> Signed-off-by: Benoit Hudzia <address@hidden>
> Signed-off-by: Petter Svard <address@hidden>
> Signed-off-by: Aidan Shribman <address@hidden>
> Signed-off-by: Orit Wasserman <address@hidden>
> ---
> +++ b/qapi-schema.json
> @@ -263,7 +263,28 @@
> # Since: 0.14.0.
> ##
> { 'type': 'MigrationStats',
> - 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' } }
> + 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int',
> 'duplicate': 'int', 'norm': 'int' } }
What does 'norm' mean? Is there something wrong with using an actual
word instead of an abbreviation?
Should 'duplicate' and 'norm' be marked optional, to reflect the fact
that they were not always present in the output? Should the listing be:
# Since: 0.14.0, 'duplicate' and 'norm' since 1.2.
> +
> +##
> +# @CacheStats
> +#
> +# Detailed XBZRLE migration cache statistics
> +#
> +# @cache_size: XBZRLE cache size
> +#
> +# @xbzrle_bytes: amount of bytes already transferred to the target VM
> +#
> +# @xbzrle_pages: amount of pages transferred to the target VM
> +#
> +# @xbzrle_cache_miss: numer of cache miss
s/numer/number
> +#
> +# @xbzrle_overflow: number of overflows
> +#
> +# Since: 1.1
1.2
> +##
> +{ 'type': 'CacheStats',
> + 'data': {'cache_size': 'int', 'xbzrle_bytes': 'int', 'xbzrle_pages': 'int',
> + 'xbzrle_cache_miss': 'int', 'xbzrle_overflow': 'int' } }
s/_/-/g - prefer '-' over '_' in QMP
> +++ b/qmp-commands.hx
> @@ -2098,6 +2098,13 @@ The main json-object contains the following:
> - "transferred": amount transferred (json-int)
> - "remaining": amount remaining (json-int)
> - "total": total (json-int)
> +- "cache": only present if "status" and XBZRLE is active.
> + it is a json-object with the following XBZRLE information:
s/it/It/
> + - "cache size": XBZRLE cache size
> + - "xbzrle_bytes": total XBZRLE bytes transferred
> + - "xbzrle_pages": number of XBZRLE compressed pages
Alignment. Again, '-' instead of '_'.
> +5. Migration is being performed and XBZRLE is active:
> +
> +-> { "execute": "query-migrate" }
> +<- {
> + "return":{
> + "status":"active",
> + "ram":{
> + "total":1057024,
> + "remaining":1053304,
> + "transferred":3720
> + },
Where's the capabilities member?
> + "cache":{
> + "size": 1024
No TABs.
> + "xbzrle_transferred":20971520,
Especially not when you mix TAB and space indentation in the same example.
> + "xbzrle_pages":2444343,
> + "xbzrle_cache_miss:2244,
s/miss:/miss"/
> + "xbzrle_overflow":34434
> + }
> + }
> + }
> +
> EQMP
>
> {
>
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v12 02/13] Add migration capabilites, (continued)
- [Qemu-devel] [PATCH v12 05/13] Add uleb encoding/decoding functions, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 04/13] Add cache handling functions, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 06/13] Add save_block_hdr function, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 07/13] Add debugging infrastructure, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 11/13] Add XBZRLE to ram_save_block and ram_save_live, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 13/13] Add XBZRLE statistics, Orit Wasserman, 2012/06/19
- Re: [Qemu-devel] [PATCH v12 13/13] Add XBZRLE statistics,
Eric Blake <=
- [Qemu-devel] [PATCH v12 12/13] Add set_cachesize command, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 09/13] Add migration_end function, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 08/13] Change ram_save_block to return -1 if there are no more changes, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 10/13] Add xbzrle_encode_buffer and xbzrle_decode_buffer functions, Orit Wasserman, 2012/06/19